Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3813178rwn; Sat, 10 Sep 2022 21:53:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR6rZz2jKVtX754fB52HNZvAWZ1GzFuwMXS+N7XFGHjjQV32nJcJ6HCLZMRarYB7y3adYM96 X-Received: by 2002:a65:64d0:0:b0:434:e318:801 with SMTP id t16-20020a6564d0000000b00434e3180801mr18326712pgv.550.1662871995094; Sat, 10 Sep 2022 21:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662871995; cv=none; d=google.com; s=arc-20160816; b=l7nrsDzMnlJKUWwWsIp4VpWEJ2aCMX7mzZQZ1U+KAQQcTtDTiJ6SQ7Ikd457HiMepg 4RIlAY+WYqlibZbOpFvvV1iYePIlNvpyqJuZd2Mfq3eJll33xpHblLagBMrjR1IZNHj0 cAGWGN3IySLBx0r7RfQdDFW3EEfVvyJ08/NH6efA2zws0rrni4b+gcIo+8cf7fUrnxwK AyBSmQG/WS7UEcRApNsRQ0iCyhRV4iGVBbABbhLDl4+Ci/7zBkAjFZt17qSTheXEPgV5 fIpJplxyks/TooSNjw9WQ7LHGSKhHsKu5XIE5Je4Th4u/yEVrvejBYg9s+/a4k4aiZLL 1Q4w== 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 :message-id:date:subject:cc:to:from; bh=ha3Y/SZz/VuuJ1jHukz92yfi3dfKO8TNUQ/L5Tqx1OI=; b=DnkBCmmLXlR12b9GQlWmGXV29W4kcl+h6MrZwqb1lITlPZgl76+Masa2qOIe4I/QQ9 p0l8+LuqPO2CqM0ZF97lBzwkUo3KtUl5uHgrD/ZxOIngc9TgqYcArWTSJhnrZwxAscfz zVFzlktqWQ4j3Dh4QelL3gndxvr7TITj4nlEcCZydMxmcBmJ/zYG60MFrMFkNjjr1vFa cdWcNrscvul3dfvInc1+EY4M3cYPb6DN/d8kWMg2qBJNqr5s273H8SUxCYADDBVsSXbh nAvGISdoFsW5v//Oc0Ia1cxJkpjZPcwrNzqzAqIO1jjGWDxFurlFNzOV9iINfdttuf9+ Ec0A== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a170902f28b00b0017811e39246si4953613plc.397.2022.09.10.21.53.03; Sat, 10 Sep 2022 21:53:15 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229853AbiIKEh1 (ORCPT + 99 others); Sun, 11 Sep 2022 00:37:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbiIKEhZ (ORCPT ); Sun, 11 Sep 2022 00:37:25 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A50E7419B9 for ; Sat, 10 Sep 2022 21:37:23 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MQH005tTRzNm8V; Sun, 11 Sep 2022 12:32:48 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sun, 11 Sep 2022 12:37:21 +0800 Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sun, 11 Sep 2022 12:37:21 +0800 From: Kefeng Wang To: Russell King CC: Mike Rapoport , Andrew Morton , , , Kefeng Wang Subject: [PATCH v2 1/2] ARM: ptdump: Fix wrong pg_level in walk_pmd() Date: Sun, 11 Sep 2022 12:41:27 +0800 Message-ID: <20220911044128.138458-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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 After ARM supports p4d page tables, the pg_level for note_page() in walk_pmd() should be 4, not 3, fix it. Fixes: 84e6ffb2c49c ("arm: add support for folded p4d page tables") Signed-off-by: Kefeng Wang --- v2: update changlog a bit and add patch to dump pagetable arch/arm/mm/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/dump.c b/arch/arm/mm/dump.c index fb688003d156..712da6a81b23 100644 --- a/arch/arm/mm/dump.c +++ b/arch/arm/mm/dump.c @@ -346,7 +346,7 @@ static void walk_pmd(struct pg_state *st, pud_t *pud, unsigned long start) addr = start + i * PMD_SIZE; domain = get_domain_name(pmd); if (pmd_none(*pmd) || pmd_large(*pmd) || !pmd_present(*pmd)) - note_page(st, addr, 3, pmd_val(*pmd), domain); + note_page(st, addr, 4, pmd_val(*pmd), domain); else walk_pte(st, pmd, addr, domain); -- 2.35.3