Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2661830imm; Thu, 18 Oct 2018 19:52:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV61b2Cj3ffD0MrKg2+sR5/guGTgbKUhnq3tXMFMdPN1RoGArbBjB7NhVKYUjr8fgeSbtaMI8 X-Received: by 2002:a62:1ccb:: with SMTP id c194-v6mr32529473pfc.203.1539917531196; Thu, 18 Oct 2018 19:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539917531; cv=none; d=google.com; s=arc-20160816; b=BnZ4oL8IkaetZye6r9shX99SbmxEjZPSUA/CYi8a12xWp/ry9cE4Ww8ElnfjcRGrGM STnDqRioUJiefS8N7HDtvbe5MsIUuSDOIi1ef7w78ii0BHjEaUgpj81+eq1ptulgW3Da ve3CH+xIlloN4HWPEcpcs8Ris5Ceeo8nWpOaXyN3PMKKFA5QG1SE0NI1/BqlJv4PBM/Y xBj80s5Kjfyrqw3Pl+S6Q3cvkpFASCGk2bcyaxL0+y+gN6JdNEf832Qdb3zcCYGvzxdP UqomGIKgFSbUQAdo/7sWYEtS16OC+yfxGl5yaemtR4VDzQ4tWkfhOjzVUQ+FAG1lHtEG vwCg== 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=yHQHgPO+OJleZHe8z2VOsSsz6tkhoNWj3b2HNqD/Wj8=; b=zKmTTY0Zew1lVL8ZBZNqqGr/TwWqMbVMW3G21NtoVkeTNpvqjScE67dAgMk0D8k0u7 nZc/ox1I3b5HEX2XBWN1A2acSDjiEE9U6pBZd2AJxZ5aSEb6PdhLlr+2PjpRAs4m1LOn RQe0skBmcu9xEnT71/nLu+1r7Pv5W12pOLcfZgxres4Q0NffxVGWqDjmq4E0q4t9iIMc jMZGNMdITTYt/WcyRvmWLXVl/G2cE2ebrDIfM455WCrnZ0fmku1RrlHBvraYv4UdeOjO EQv3Ieiqdj4fhf/7ZrT7UXHX0PL0/zzS6cYTdGkUER7jr2jEqp/RlSpct3f14Q+uXEHe sOvg== 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 j24-v6si20644954pff.42.2018.10.18.19.51.56; Thu, 18 Oct 2018 19:52:11 -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 S1726977AbeJSKzc (ORCPT + 99 others); Fri, 19 Oct 2018 06:55:32 -0400 Received: from ozlabs.org ([203.11.71.1]:45339 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726960AbeJSKzc (ORCPT ); Fri, 19 Oct 2018 06:55:32 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 42br5r4gvTzB4NJ; Fri, 19 Oct 2018 13:51:28 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: bde1a1335c5031758d3917d83dd5b85b761bbebd In-Reply-To: <19885260cc71182f8c03840204e2553ef42acb67.1539781367.git.christophe.leroy@c-s.fr> To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , aneesh.kumar@linux.ibm.com From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: powerpc/book3e: redefine pte_mkprivileged() and pte_mkuser() Message-Id: <42br5r4gvTzB4NJ@ozlabs.org> Date: Fri, 19 Oct 2018 13:51:28 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-10-17 at 13:03:22 UTC, Christophe Leroy wrote: > Book3e defines both _PAGE_USER and _PAGE_PRIVILEGED, so the nohash > default pte_mkprivileged() and pte_mkuser() are not usable. > > This patch redefines them for book3e. > > In theorie, only pte_mkprivileged() needs to be redefined because > _PAGE_USER includes _PAGE_PRIVILEGED, but it is less confusing > to redefine both. > > Fixes: a0da4bc166f2 ("powerpc/mm: Allow platforms to redefine some helpers") > Signed-off-by: Christophe Leroy Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/bde1a1335c5031758d3917d83dd5b8 cheers