Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1876358rwn; Fri, 9 Sep 2022 05:32:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR4i3youDGiqjLpSd9CxRdO20GJ4JR+mo7Hv+LOk8Dr8EFOt0FsqAaOOG+Z3JQP8DZ2kQLO4 X-Received: by 2002:a63:a501:0:b0:434:ff77:1fda with SMTP id n1-20020a63a501000000b00434ff771fdamr10216094pgf.310.1662726777858; Fri, 09 Sep 2022 05:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662726777; cv=none; d=google.com; s=arc-20160816; b=I5KMtYHkDQsr/K+wg+0Jz4PrMjEjri0eCTCRmot+yKxbjOKtI6qQFUlDuVHM5AlZCn sDzEyDxvdt22lSweAG44vlUi1AILwq1pYhTCEn+2JYZzqC8qCPPXA3gEBnaQMFW97bBM SmGSxD52XE7gF3Ga54QsdPHNgU4scyHTmphlrNIypFDB6RYchtqaXUUs5Nesr6rWbCOk wZPstg5VjEtwLdDkkyX8auITuXoPWpNrLvukPJ7EX/tC0fJQeL8bAviBWLtIVSJJx777 Mj1O81Xu5YhT0Alhz+D9On1BBxYGBP8u5PaZjW/c8/QJ4SlbGr6HMOh78QyePvMUF6w5 aodw== 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=EMUq2h8kO80Zq0QHr4bSm5csXR+GZwxGr/KJdJzMddw=; b=Iz0m/KEJF2+fuM4nOmxTp/kn4CDtcWfGG7fe3YvYqavhmWmvueinvbJRqefsKi3E/g UjaCOcsUFpuZcZsG5WvEwj+yct7DNyykyQJ1t+VaGELnmXNty92sUZWx7GRZDPMELRg8 t5WgaCb0+lHW1YtKuckwLqplNEmKxBuvLPCbJ7jT0gcRqNwhAoVf69MmrY/RdrzjVmG5 RjoPcegY6gxn1qJamZtn/5cUEYPaAxsR6wi4AnpgLuEj5cE/9me1cUEUyNaNBbzUJtto wNq1CrAUkATNjtzDp2/+XNp3PGs3D944GAo5a8PABI2bxaws+543LY+UfgHmqanrKHQS DopQ== 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 w19-20020a627b13000000b0052ad3d43859si450183pfc.23.2022.09.09.05.32.38; Fri, 09 Sep 2022 05:32:57 -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 S231725AbiIIMVg (ORCPT + 99 others); Fri, 9 Sep 2022 08:21:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229550AbiIIMU7 (ORCPT ); Fri, 9 Sep 2022 08:20:59 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A23A217A98 for ; Fri, 9 Sep 2022 05:19:46 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MPFMW0Bq2zmVCT; Fri, 9 Sep 2022 20:16:07 +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; Fri, 9 Sep 2022 20:19:45 +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; Fri, 9 Sep 2022 20:19:44 +0800 From: Kefeng Wang To: Russell King CC: Mike Rapoport , Andrew Morton , , , Kefeng Wang Subject: [PATCH] ARM: ptdump: Fix wrong pg_level in walk_pmd() Date: Fri, 9 Sep 2022 20:24:09 +0800 Message-ID: <20220909122409.123440-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: dggems701-chm.china.huawei.com (10.3.19.178) 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 The pg_level should be 4, not 3, after ARM supports p4d page tables, fix it. Fixes: 84e6ffb2c49c ("arm: add support for folded p4d page tables") Signed-off-by: Kefeng Wang --- 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