Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1708204pxb; Sun, 18 Apr 2021 04:32:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsW2Yimns4iEZ1qo5ZJd2xEzU2n0K1lHvipoDVH/9YcjRfNPRafTgShFO6nDxsksh7JMDV X-Received: by 2002:a17:907:b1b:: with SMTP id h27mr17292030ejl.421.1618745565463; Sun, 18 Apr 2021 04:32:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618745565; cv=none; d=google.com; s=arc-20160816; b=PP4SfQuzcapbE34nkp6ALHrfe6A6WmX7BUxhXuGEoKkOEmlNT4pvb/tSchehBYtxi8 9t7SqTGMoI4rfkNLAfDFOusASBph3vIA79NvSqU5WsabDqTqc1rjJ6EqPkOqOjktwPUC nmyPb9eMUKpqCFiW7ViA0D4QOEi0bmLakp1VpZ6VZm/A7ft2ZMNK8J5J1T3PiZ61ujYG LjheUze514Zhz5cMZ1vSo/zUnNqaGqBdSPIMKa5ZDBs4W/1S6UYtxGbqyTslqk8h9FgT aPje8hvy2v2SW6dpe0ITTuqfmwakYWU/U72G3if3yl8XHK863R+52AsrrTNNFmV7Pk0g c0pQ== 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=9e0Dh+gsBlpwN6nZZnwDrLbnEg5H80vgwABnfJ7+VYw=; b=Q0XK6JyikZ2qlRKFlmgsrrXDPEI73hvPhe/ZGJwMEAjYlULRSgCFByjOnubNgcAElx VyPKiTP9GsV9mfBgcSyHa76kPfchE95DKqyzQe20wV7ZNULM3o+dbHM7JLBMRsodV4SJ cg0BzUOTVR2+0XddeTbnqjKR+kg/03keoVQmv/dToXzgSd8jP6QQa5EQxgopPAelEeV8 5KNcWBoirRNeDWzMf4vttprUTV2qYIbw6Up9FSPOMt7KmLMnZT+dMB+VTVb9xomlwDWF QBxOB4vo1oiYsQYdx2WVkiiIHlINHYRpH7HwUUHsJSrchvegpsUxF7MQ8a70Y2S3SSfz sQRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d26si8915050ejt.459.2021.04.18.04.32.22; Sun, 18 Apr 2021 04:32:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230320AbhDRL3a (ORCPT + 99 others); Sun, 18 Apr 2021 07:29:30 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:57065 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230193AbhDRL3a (ORCPT ); Sun, 18 Apr 2021 07:29:30 -0400 X-Originating-IP: 2.7.49.219 Received: from debian.home (lfbn-lyo-1-457-219.w2-7.abo.wanadoo.fr [2.7.49.219]) (Authenticated sender: alex@ghiti.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 782E0240002; Sun, 18 Apr 2021 11:28:57 +0000 (UTC) From: Alexandre Ghiti To: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Arnd Bergmann , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-arch@vger.kernel.org, linux-mm@kvack.org Cc: Alexandre Ghiti Subject: [PATCH] riscv: Remove 32b kernel mapping from page table dump Date: Sun, 18 Apr 2021 07:28:56 -0400 Message-Id: <20210418112856.15078-1-alex@ghiti.fr> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 32b kernel mapping lies in the linear mapping, there is no point in printing its address in page table dump, so remove this leftover that comes from moving the kernel mapping outside the linear mapping for 64b kernel. Fixes: e9efb21fe352 ("riscv: Prepare ptdump for vm layout dynamic addresses") Signed-off-by: Alexandre Ghiti --- arch/riscv/mm/ptdump.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/riscv/mm/ptdump.c b/arch/riscv/mm/ptdump.c index 0aba4421115c..a4ed4bdbbfde 100644 --- a/arch/riscv/mm/ptdump.c +++ b/arch/riscv/mm/ptdump.c @@ -76,8 +76,8 @@ enum address_markers_idx { PAGE_OFFSET_NR, #ifdef CONFIG_64BIT MODULES_MAPPING_NR, -#endif KERNEL_MAPPING_NR, +#endif END_OF_SPACE_NR }; @@ -99,8 +99,8 @@ static struct addr_marker address_markers[] = { {0, "Linear mapping"}, #ifdef CONFIG_64BIT {0, "Modules mapping"}, -#endif {0, "Kernel mapping (kernel, BPF)"}, +#endif {-1, NULL}, }; @@ -379,8 +379,8 @@ static int ptdump_init(void) address_markers[PAGE_OFFSET_NR].start_address = PAGE_OFFSET; #ifdef CONFIG_64BIT address_markers[MODULES_MAPPING_NR].start_address = MODULES_VADDR; -#endif address_markers[KERNEL_MAPPING_NR].start_address = kernel_virt_addr; +#endif kernel_ptd_info.base_addr = KERN_VIRT_START; -- 2.20.1