Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp43251imw; Mon, 4 Jul 2022 05:03:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sBkpUDiXbTVWwgNeWwEBUqRpaKSTTju6j1UAkyIvvDDui6ViIY6BTe94KOBeHj2CU+x9eo X-Received: by 2002:a17:906:7790:b0:722:e6cf:126 with SMTP id s16-20020a170906779000b00722e6cf0126mr27711226ejm.244.1656936181973; Mon, 04 Jul 2022 05:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656936181; cv=none; d=google.com; s=arc-20160816; b=r3+v8y0KF9XpCQspBEWJlJhlL1nyhUT9POZ5qo8hUeVzX/hvotqGgrTfhQtJXq5y9y NDI2cnJoZrRmyHUjieNtkH5UuzhsG5jXoG0K4tzFp8IhbhfVPS93rzb8LdkRAv9+DY/5 ySP6NgLKcdwKw55yXIlaeILaH6KW7IELt6iNA+RI5MH8FjNAlwgUickwUdiSWjXbofBg bfOWRlnIq+FA4J+M8Kbh2spKz8qPJqBrWSDQTMZQCTNlMpcO84WfVfxSu+XomonBBsVD yTJ9/Ot+MeNDR+n6xzsKaScHWFLp6gMZGWWXli1ew5k+Vh6WGUc9n4XJ7ej10usWw6Vz fZUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=V9v59YFFyo3AufQvZHXuj/p/xpJf/6ZSKHbq4+xBRxE=; b=CuYp0KdHi9p3mxMut6wCKxMrPk0cJWOnqdI8xNCd8MUPLSJk6a2bG1MXrZOnm2iU9T EOq0V0aelSf2DqAnHWDAh+W6Ri5SDH0AUn6c3ifBtWEcfxhXkd9RE/4gYSzBGQapWUeM sJQNPrNExrlRMldi4X1GIvq6rPgHsdtvIty9RTU1Uj7gfcBV5tz8wh92Xqj6ACoiizoo 24tTFhXYsur6rpE/wJZqDMfRVRDg/PLlPnjY1Pjzndsy7xWxc2HEauL69c57lt8OJ8e6 EkMkcbOQR5jj10Eys+SWfRxFViXMdVHnS7ugu8KdfpW25JPaOW9Y1/huvA3CpUOQorhI /EjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y1-20020a056402358100b004359f471717si11538436edc.0.2022.07.04.05.02.34; Mon, 04 Jul 2022 05:03:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234362AbiGDLgV (ORCPT + 99 others); Mon, 4 Jul 2022 07:36:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233857AbiGDLgH (ORCPT ); Mon, 4 Jul 2022 07:36:07 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5FD010FC9; Mon, 4 Jul 2022 04:36:02 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Lc3f90WZ5z4xYY; Mon, 4 Jul 2022 21:36:00 +1000 (AEST) From: Michael Ellerman To: Christophe Leroy , Paul Mackerras , Michael Ellerman , Benjamin Herrenschmidt Cc: stable@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <0c33b96317811edf691e81698aaee8fa45ec3449.1656427391.git.christophe.leroy@csgroup.eu> References: <0c33b96317811edf691e81698aaee8fa45ec3449.1656427391.git.christophe.leroy@csgroup.eu> Subject: Re: [PATCH] powerpc/ptdump: Fix display of RW pages on FSL_BOOK3E Message-Id: <165693441432.9954.15776721624339561101.b4-ty@ellerman.id.au> Date: Mon, 04 Jul 2022 21:33:34 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Jun 2022 16:43:35 +0200, Christophe Leroy wrote: > On FSL_BOOK3E, _PAGE_RW is defined with two bits, one for user and one > for supervisor. As soon as one of the two bits is set, the page has > to be display as RW. But the way it is implemented today requires both > bits to be set in order to display it as RW. > > Instead of display RW when _PAGE_RW bits are set and R otherwise, > reverse the logic and display R when _PAGE_RW bits are all 0 and > RW otherwise. > > [...] Applied to powerpc/next. [1/1] powerpc/ptdump: Fix display of RW pages on FSL_BOOK3E https://git.kernel.org/powerpc/c/dd8de84b57b02ba9c1fe530a6d916c0853f136bd cheers