Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp122019pxy; Wed, 28 Apr 2021 00:27:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0IMw9HYKqDqsFNv86FFP0m9Kw8s/axWm7Cj7O+jYMmeMcHs07q4pJlUUSFKv7UGY2Bnh1 X-Received: by 2002:a17:902:6b05:b029:e9:2810:7e59 with SMTP id o5-20020a1709026b05b02900e928107e59mr29199231plk.76.1619594822172; Wed, 28 Apr 2021 00:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619594822; cv=none; d=google.com; s=arc-20160816; b=s/LZzyu3uvWXSbYOxBgyziFOEgeHYHMl33zdtFSpg6pK5aPB7vxpXw6UQIG7x50MRe CeWGIfdyWxZAfbi1DCfGYVVUgnNQ+qv5XSnsXKAGp8EolB+atvDiO/lQp0LnNI2W4YGQ 0hGtBdQW3Ia7Z5KFh9IqMSgfiYEUIPUwZCRVy3hVniRqoIk61JJPLLsMgzHgt19Y0unz Ry0tYlMjSa7DB4MDQKcFzl9ULvMzI8aEM0Odtb99vIprDLg2R+4cDXI/MHxYtNaW1gJr WIh6ei46J5utp0E4jftnCqvAcBCnw/eIt2Ddh5oVt2EJrPVVF0MOm2scNgRRMGtgIIs3 oZcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=TM3MLp65499hHGiMocNpxl8i6ouKKivsOfe7ydtxibI=; b=WkkO4cb37IIPlVH0ORlkptoAZP0KmK6g9mEedk0Vm/FdQwl8VYYm50NKICeGqFd06g EgjrTAlHUvLicge2sxW5DJGatAP72+snlcO3EPa5cpF02111dN0jh9MAEjNAbs1RAbgK H72pgYJPHTUnSByAtpCSgmLjVFDu9jVsYUQLiqIJfw66WTGrq8plgsv17F7UNsdPGZGg A1IrzyLYd8iMyrrQhR0hKWe3cVJi1Qnc3k3+8O4X03OrU8mj9PGSNiTFg/KoLyzgWiTJ nwR3rkf+ijQ8gXj+PrvekDaxIEghLKLtjzOE0eJbHrf5TOAlBDbCRfO8geUR1mFpvdaK 2Qcg== 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 t63si6436427pfb.267.2021.04.28.00.26.49; Wed, 28 Apr 2021 00:27:02 -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 S236143AbhD1H0z (ORCPT + 99 others); Wed, 28 Apr 2021 03:26:55 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:57461 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbhD1H0x (ORCPT ); Wed, 28 Apr 2021 03:26:53 -0400 Received: from [192.168.1.100] (lfbn-lyo-1-457-219.w2-7.abo.wanadoo.fr [2.7.49.219]) (Authenticated sender: alex@ghiti.fr) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 90F6624000F; Wed, 28 Apr 2021 07:26:03 +0000 (UTC) Subject: Re: [PATCH] riscv: Remove 32b kernel mapping from page table dump To: Anup Patel , Palmer Dabbelt Cc: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Arnd Bergmann , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , linux-doc@vger.kernel.org, linux-riscv , "linux-kernel@vger.kernel.org List" , kasan-dev@googlegroups.com, linux-arch , Linux Memory Management List References: <20210418112856.15078-1-alex@ghiti.fr> From: Alex Ghiti Message-ID: <16cd2359-2453-8184-cf96-2c02800abe8a@ghiti.fr> Date: Wed, 28 Apr 2021 03:26:02 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Palmer, Le 4/20/21 à 12:19 AM, Anup Patel a écrit : > On Sun, Apr 18, 2021 at 4:59 PM Alexandre Ghiti wrote: >> >> 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 > > Looks good to me. > > Reviewed-by: Anup Patel > > Regards, > Anup > >> --- >> 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 >> Do you think you can take this patch too on for-next? Thanks, Alex