Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3614198rdb; Wed, 13 Sep 2023 18:41:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBB5OLtMoBmvzrodZg4TTxiWlssTOzLMLVL2ZX5hjf5AzPcwx1Y8EQ/onYgXvwV9xGVD/i X-Received: by 2002:a05:6870:581a:b0:1bb:6792:4787 with SMTP id r26-20020a056870581a00b001bb67924787mr4787198oap.40.1694655707294; Wed, 13 Sep 2023 18:41:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694655707; cv=none; d=google.com; s=arc-20160816; b=A36DssgUl/HDjUGJDGnl/J8SnyJtnja0zTZoL6jTSPqasWfMKt+pwSZJ2iF30/MIhh 9+C21EpBWsCAPpX35Sgo5gMY5oJJ16qOLyDnwCoRwfjtkPC0QTkiKedDn755uUdelKDQ tqLzn/wVgi8/jpC7/4DSbEs4Xzbz2oUaa3VWwBItXHabYvdMYVOJqDSF64jdVahZ6+Mj VLKFCCeAJUcXiZatItpBia9d6fBT4/uxlxgEwMrtOXem6PRZQcPmtRmDlX7lW2N0arK+ jDRXRu8heHwB774N/TAFgiDpaRJTvkig/W1nY0IaqmfLZsX5v/Anq0QQ0yIMDMYmVpML gB3w== 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=hWIJax//MH832d02ttsMP/fG3sR9EAFjZTEr0nLX4cU=; fh=v+TWoTDZBRK/EiEjVs/yF6epfLq71Wy8o9JoPx8xgF8=; b=dJ4zZaQh78TfmmtO2rccG5F6vuvLoQQKj2M94Yoe+SLeKC1zToahg1mF7vid72rSOZ wkea0VLohlrk3nuVgA6P4wi+3DGKRcZVom4Zvc2SfKJi+vAFZdxElbed2/+bBgrQLlfD fSDaU+gGuadJaP3rUJsqsSbuiBDUwIKwnNG2J7umcCk9LTuZMoG8CFMwB2160yUQaoRr qETKr4AQ/bHxn1Q4EiYmf5Ua+PWfLe92B8dkhpsG63hjlRwKhrYJHaEpnCdgM50oDtXT 7Tx5aTa/pXims9LJmfZUrDan47xzsQ+07FGkmZkvHaUkIDRVapqRNOttwGt6DcrKGEYi 3m/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id l62-20020a633e41000000b0055fdd303745si421180pga.421.2023.09.13.18.41.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 18:41:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 EBBB382696C7; Wed, 13 Sep 2023 18:41:13 -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 S233919AbjINBlH (ORCPT + 99 others); Wed, 13 Sep 2023 21:41:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233878AbjINBk6 (ORCPT ); Wed, 13 Sep 2023 21:40:58 -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 22AD71BD4 for ; Wed, 13 Sep 2023 18:40:53 -0700 (PDT) Received: from mail.andestech.com (ATCPCS16.andestech.com [10.0.1.222]) by Atcsqr.andestech.com with ESMTP id 38E1egwU060623; Thu, 14 Sep 2023 09:40:42 +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; Thu, 14 Sep 2023 09:40:38 +0800 From: Yu Chien Peter Lin To: , , , , , , , , CC: , Yu Chien Peter Lin Subject: [PATCH v2 3/3] riscv: Introduce NAPOT field to PTDUMP Date: Thu, 14 Sep 2023 09:40:27 +0800 Message-ID: <20230914014027.273002-3-peterlin@andestech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230914014027.273002-1-peterlin@andestech.com> References: <20230914014027.273002-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 38E1egwU060623 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]); Wed, 13 Sep 2023 18:41:14 -0700 (PDT) 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 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 --- 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 b5026fc867e8..387bed809b4f 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