Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1070124rdb; Tue, 19 Sep 2023 20:59:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcALuqjwl2O7seWwWdrR/C/U63mz79s0ix1ETyxN3W3EmiU+OV/UGCM5yxImTzRQ8BQIpp X-Received: by 2002:a05:6871:6a7:b0:187:e563:77b9 with SMTP id l39-20020a05687106a700b00187e56377b9mr1514729oao.45.1695182369176; Tue, 19 Sep 2023 20:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695182369; cv=none; d=google.com; s=arc-20160816; b=0slxLSxEZRT3PrDZnINhZMmT15UxZPJDJ3YuNgpFiqOYoYRfiiBE17+XVf5hDwfe9C 0UivQRKuNAvXxOqGXK1BYrPERNnOaFU/TF25LWxTixGou2QzfSrq1r1kWKgoHq1AOMim zVwbh71cul4X9AOM9EYsamb17a0xW1xdOPDiENL+8p2I1jsELFTRJs7K0sxd3uEsvLwk FvbgNt2oRCi1ZoaxFrjvf4msMjyFhKJAGgAED4J/mUHOBf3gMNc0c/S29cbWS18gsMMq k33c5FHBXie/kBds3Ax6gXsDtAquETOmDZX92w/wn3Y1X8PWwCmWYFaICUDKLAdDqU3d 7vgw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=nuB1NLyguRhQkZUhbJROW4qbpTtebfcSTR1fLLtWBy8=; fh=KurLJqq2XfuewB6RNJWlRN2u09Gks5pj0rZr7I72NxA=; b=xX8YHLpue2bkgKfp/kvssTXMV0TxfOrc5HjvBCIzPg5w2OSpqJxEsMJ2YVYz4yXyFB X+PQea4vOkv5R1SRDF2iqlWKxXP5Q9dn6Qi5fbqSlRUbGhJjo3aBHUU9/yBKC9ApXYgZ CZanenfLCa2zYUVTFtI+sXL2asQl22bN/CyuU8lHkJ4zeECmOCKFhpKbUg5L396/stQB 17eV5wgcacN+LAksLgpZnzjqBt65bxiYcFyVr9j5Sw2boAzwLRaL8h36p0SJrbN1++68 ed3Kj/yo+e4picC9tmBYZWAntLFOK5lAq26Y2BVay/QrvX8Tc9r+vz50vQfQBzHSHTHG JyFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id s5-20020a656445000000b0056c4189d6d9si1279584pgv.836.2023.09.19.20.59.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 20:59:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 309A182AE91A; Tue, 19 Sep 2023 20:57:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232836AbjITD51 (ORCPT + 99 others); Tue, 19 Sep 2023 23:57:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233037AbjITD5F (ORCPT ); Tue, 19 Sep 2023 23:57:05 -0400 Received: from Atcsqr.andestech.com (60-248-80-70.hinet-ip.hinet.net [60.248.80.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65EDB1B6 for ; Tue, 19 Sep 2023 20:55:58 -0700 (PDT) Received: from mail.andestech.com (ATCPCS16.andestech.com [10.0.1.222]) by Atcsqr.andestech.com with ESMTP id 38K3tokQ069459; Wed, 20 Sep 2023 11:55:50 +0800 (+08) (envelope-from peterlin@andestech.com) Received: from atctrx.andestech.com (10.0.15.173) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.498.0; Wed, 20 Sep 2023 11:55:46 +0800 From: Yu Chien Peter Lin To: , , , , , , , , CC: , Yu Chien Peter Lin Subject: [PATCH v3 3/3] riscv: Introduce NAPOT field to PTDUMP Date: Wed, 20 Sep 2023 11:55:22 +0800 Message-ID: <20230920035522.3180558-3-peterlin@andestech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230920035522.3180558-1-peterlin@andestech.com> References: <20230920035522.3180558-1-peterlin@andestech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.0.15.173] X-DNSRBL: X-SPAM-SOURCE-CHECK: pass X-MAIL: Atcsqr.andestech.com 38K3tokQ069459 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 20:57:36 -0700 (PDT) This patch introduces the NAPOT field to PTDUMP, allowing it to display the letter "N" for pages that have the 63rd bit set. Signed-off-by: Yu Chien Peter Lin --- Changes v1 -> v3 - no change --- arch/riscv/mm/ptdump.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/riscv/mm/ptdump.c b/arch/riscv/mm/ptdump.c index 13997cf3fe36..b71f08b91e53 100644 --- a/arch/riscv/mm/ptdump.c +++ b/arch/riscv/mm/ptdump.c @@ -136,6 +136,10 @@ struct prot_bits { static const struct prot_bits pte_bits[] = { { #ifdef CONFIG_64BIT + .mask = _PAGE_NAPOT, + .set = "N", + .clear = ".", + }, { .mask = _PAGE_MTMASK_SVPBMT, .set = "MT(%s)", .clear = " .. ", -- 2.34.1