Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1660411ybb; Thu, 26 Mar 2020 05:07:25 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu5zZiBYhjgqT8WwT9gdCmxboV518WJx/6VsYu2qj3m/Y4aMFGvnRvFmzOkqInsc3SwHBPo X-Received: by 2002:aca:4991:: with SMTP id w139mr1517173oia.145.1585224445062; Thu, 26 Mar 2020 05:07:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585224445; cv=none; d=google.com; s=arc-20160816; b=sLucZ6pSdUzLSK3lHtiIhF41qQh2QnUxLCltHfdW/2RzP+GPiFfOiE4LGW6plkt3hl LosKo6yP7w+V8WgcnX5WPUTbThiQHVg+P/UF8Xbhpbs1JahMmFpuGThUIFNvyZu07o0u PvxV+UhEiWdblVK1kYt9KcgWXfqljwxgvfsY3VCXIoQtBZDLEf7yW/3WmEKX2h1l1l6c q+GofKpZwdW3PQanJHcZ3pYWyqMfYfVau/GVytTRh7y9gBlK3OFHYW1dZGOlLZx5G3WC 8PeMUxb8o2aahWMrHGJXubj480Pi8WG10ayhoC+dJ8ih77YwNXqXksuAma3rDpvD0R3Y xedA== 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=eFj9+LRdrxG/mRfUl28vrYOZie5/80Qfe1Hw3zk+g9I=; b=0DKOf6id+f4hILM6DI5SHdZtGyY3hm1mpbk6zA2sHbwPP6wMQZkim1DZwklWUJK5jA UWWRWj27dNHIAgvYgJAEtVMe6y0IBGkEZ1LJOpdkuo28AXJ8gkSg6xF75ECUzL8TXw5i DDCvArX9kxgF3oHnqwSesY0R0vT7Qgfv7qMIknvoXyU7CwbXg7Mo7eWR8s+RGvMJAGiC NGaykw5BvZwRKDRSyLkebc3fuEbgLQZh5eao4AucQ1E1/e5K2ikNZ9jHg1SZ9y3PdBOM lntLA+UiDS8KSsnN5KrBX0URGF9JjerELfkC0LMPN6alOt4sH+GZfmRlKZCW4+LvGV4q h/+Q== 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 c67si1064554oif.5.2020.03.26.05.07.12; Thu, 26 Mar 2020 05:07:25 -0700 (PDT) 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 S1728271AbgCZMGo (ORCPT + 99 others); Thu, 26 Mar 2020 08:06:44 -0400 Received: from ozlabs.org ([203.11.71.1]:53377 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727948AbgCZMGn (ORCPT ); Thu, 26 Mar 2020 08:06:43 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 48p3cd3rbBz9sRY; Thu, 26 Mar 2020 23:06:41 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 697ece78f8f749aeea40f2711389901f0974017a In-Reply-To: To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] powerpc/32s: reorder Linux PTE bits to better match Hash PTE bits. Message-Id: <48p3cd3rbBz9sRY@ozlabs.org> Date: Thu, 26 Mar 2020 23:06:41 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-03-10 at 17:29:12 UTC, Christophe Leroy wrote: > Reorder Linux PTE bits to (almost) match Hash PTE bits. > > RW Kernel : PP = 00 > RO Kernel : PP = 00 > RW User : PP = 01 > RO User : PP = 11 > > So naturally, we should have > _PAGE_USER = 0x001 > _PAGE_RW = 0x002 > > Today 0x001 and 0x002 and _PAGE_PRESENT and _PAGE_HASHPTE which > both are software only bits. > > Switch _PAGE_USER and _PAGE_PRESET > Switch _PAGE_RW and _PAGE_HASHPTE > > This allows to remove a few insns. > > Signed-off-by: Christophe Leroy Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/697ece78f8f749aeea40f2711389901f0974017a cheers