Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1361157imp; Fri, 22 Feb 2019 01:50:58 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ5xSCO+u8RmVsT59BOJR9OU7IPmz+FH94Bc5M8SijxgKCNQCQd3xNUcgAQwKNNqvy1IlDh X-Received: by 2002:a62:6f06:: with SMTP id k6mr3276831pfc.257.1550829058057; Fri, 22 Feb 2019 01:50:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550829058; cv=none; d=google.com; s=arc-20160816; b=0wK/CdVaFW/bRfJvghIWWEjBulyCezQaZUbBXwBMlLfTSnorGiLk0WULMXFaA2U65s 2NIsUO+1svLDP4MO0b/XM7BnM2r+SomJaub/CgXhhfcY4J2ggrdZpMOjd02WvLMrkqgt xXojwRU2rm8vtD8jLr2g6RYAFcGdegQiVILwDBQbFkWRTj2odW92z5/CB0GtCUzYqKTH HcZ49QiNqeyIJFDL8OVGc/a3m3EcX9muL0HHlTNLVhEFSXT4G4zApO6s9ncSxet2EJlF mFkfIfaPXZdorQW1hqwKA1K9loP7VCCCD5Zcgw38+D0cQSpNTI2OZsM2rjzTUQq1GYU4 IKqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to; bh=OF8olQg7VlierLo6jvhC7YSKRpoWruO0YpxGsdDWLn4=; b=UQl0NF0QRjazPaHTiFLhz6oSTLpnQlw4TI74loAw3HntmLJmtXpm0v8cRMMHsUognB FcsUjo2l/1q6fMMMawl9wAEsBD334qnB5UzXaOK0UnoPA/nicT0hyatE0hiv5cbsZcWb r2K2fNvA+cnePPQ3/4MR1tRwCO9As8WoCG9wqc5gGmDPrT0ryFWwHRtFb+0SoL8OvS1p nUbD7S9l7F/UYepH/ef9T9h7Sjd6oUIQEskw5/o/A7na9a/0l8qpvfIZvBxErOfDdK0E LMAx1sI0D8bcPd1qdQuOZeklAg4jAiXawZyPpb5B5RYxoIWZXW2rTiFWGlhuEYqx6FcM eG9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x67si971011pfb.255.2019.02.22.01.50.42; Fri, 22 Feb 2019 01:50:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726218AbfBVJsj (ORCPT + 99 others); Fri, 22 Feb 2019 04:48:39 -0500 Received: from ozlabs.org ([203.11.71.1]:40729 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbfBVJrq (ORCPT ); Fri, 22 Feb 2019 04:47:46 -0500 Received: by ozlabs.org (Postfix, from userid 1034) id 445RN035Q4z9sBp; Fri, 22 Feb 2019 20:47:43 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 78ca1108b10927b3d068c8da91352b0f4cd01fc5 X-Patchwork-Hint: ignore In-Reply-To: To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , joakim.tjernlund@infinera.com From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [10/10] powerpc/book3s32: Reorder _PAGE_XXX flags to simplify TLB handling Message-Id: <445RN035Q4z9sBp@ozlabs.org> Date: Fri, 22 Feb 2019 20:47:43 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-01-25 at 12:34:20 UTC, Christophe Leroy wrote: > For pages without _PAGE_USER, PP field is 00 > For pages with _PAGE_USER, PP field is 10 for RW and 11 for RO. > > This patch sets _PAGE_USER to 0x002 and _PAGE_RW to 0x001 > is order to simplify TLB handling by reducing amount of shifts. > > The location of _PAGE_PRESENT and _PAGE_HASHPTE doesn't matter > as they are only SW related flags. > > Signed-off-by: Christophe Leroy Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/78ca1108b10927b3d068c8da91352b0f cheers