Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3014069pxb; Mon, 19 Apr 2021 21:20:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUxsiaVXuUhhoFeGsoBGVOje4cwAhmqzl8qhIJmSFqXWWNICEDP3xkqFwqpNy9+CPUgXtQ X-Received: by 2002:a17:90a:4085:: with SMTP id l5mr2818039pjg.104.1618892436139; Mon, 19 Apr 2021 21:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618892436; cv=none; d=google.com; s=arc-20160816; b=wzlOfFJv+LGoZjZr41Ac04J5/isYP6ua1hUs8QVS4pE2vwCIEEti381z+sVQHDq0Vo bpXJ3MpHS2qWntIp/Px0TdcVQSr3jfvdJf0t+M5/oogKT8gqGZZDOWRCrqQ7f4doTY86 tBbPJfbA7nLP9zspMVDB/MlmZWq5bxaJI1RFSB13xFLjFaZRdaaTWZwLepl/eVs2WBtF JFLxFMP3coTTZsMOytdImYH0Us7AeH3W091jhzQV7EOW+YYt+/lgOfASHAU1DNgOzxZw NzgXPs9RMuYMPeLRW6qMGK+ETiuRwuI9n0fNDL2O36HsrfL4H0lSXY/hDQJpnIRtHjGd s4ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6tOKXOtetoB5l502f6CwFsHmwD7mexR6F47nan+OthU=; b=JlLkABOQ8TCQPRmL6gLOIVe0mg/t2OjYEdy1os9DRxKVPC2gY00pu2ldvnmS1x6IjR HWojPZDd33+8VYVflpHckSRoqC21fwS7aFl29DbHnR8z7R87OADQrh+vVPD0BzjTC3l0 u39X/ai/Vsyop8jXSEDdYO8S2QjlYgqu3kzLuyn5xKhgDkUmbK/Gigyr3Z2y3iLSvI+M NjJeOpfANPr+GoBlHZmfHCV+2dhLewWSn9tb7p3m2/tgvaI0vE0Qgd2x5X8J1q8HCShi 2cHfwPxIK0meOWwghErrt2ZdrpSY12Clh0xK0E/Rzt3IKb3kjf37VBep8Jrtrw7dxOpA pD8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=zPHU77GK; 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 k15si21209408pgt.20.2021.04.19.21.20.24; Mon, 19 Apr 2021 21:20:36 -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; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=zPHU77GK; 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 S229775AbhDTEUM (ORCPT + 99 others); Tue, 20 Apr 2021 00:20:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229609AbhDTEUD (ORCPT ); Tue, 20 Apr 2021 00:20:03 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B24AC06138A for ; Mon, 19 Apr 2021 21:19:31 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id e7so27136055wrs.11 for ; Mon, 19 Apr 2021 21:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6tOKXOtetoB5l502f6CwFsHmwD7mexR6F47nan+OthU=; b=zPHU77GKMzPEi4Z3USHsG2BRW0Zi4R9HfLDI9y7k4FXV1enRHFnEnDFpNblWfiBxmr do3ZkVZLdc8LojasG7YWO1dNz1M+r0AXaX9ZjzoEKYFZ8Z/wAxvxyRXTF1NwWMyZJd9B O5fNW1Sjd0U6Odjk1x3B8z6uEpc+pHXeBW7ltTAEQu0DpyfIOYhv/0zch1Kw6bX4oIQ1 a7pVpXyJGsbA3HHIEyJnKH9+kMYJpHy7mGu0VNnpNFdJDPOJmwTEBmrQfuWaCldrzMNy nrk1Cd5+0YuXB7qga8FtlY298hCzN0WhhpVElJvtFP5cQ9ghiUqvfTB/LzYFPYwxnETO 5Ymw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6tOKXOtetoB5l502f6CwFsHmwD7mexR6F47nan+OthU=; b=MeUEdymY4mKKwPN3DPT/FfKbIWL2u4Y1rycpZDIf2eZLlwocAfA+aRFj5CKyfw/vFu 9YK4DIWkuiooR8c5H2dJRjBmpklCokopwTy/qmiFg1DrInpZz+7EcOQosvFnVsWEIwZT XLtriUEvUbxdVf0PaCGTcygEOku17UPso7G7GjSTlWenFGZNb+vqgSYOn6z+SWkJKroo 6kA0oIsb7tPTf3H+z67Vo3i5NK67hs4NjaifOAgi6dTyZ03uocr7hb8gKF768gDUXOeZ T5ckg7Rx4YIgJNITQqvsWX7vTQl2rkIzGde9ny2m4iYqt/VHkiVkwvkkV1aj3GG2KYdy AmEg== X-Gm-Message-State: AOAM530+55ep4R14kdpObtGrTg9N6Q03oztFh2Zmk2rY9wzukICXqkvX HpeQrh5vedxnPgf9rSgflpu4l6kd+qWTvO6VlbAdnQ== X-Received: by 2002:adf:dfc2:: with SMTP id q2mr17850344wrn.128.1618892370130; Mon, 19 Apr 2021 21:19:30 -0700 (PDT) MIME-Version: 1.0 References: <20210418112856.15078-1-alex@ghiti.fr> In-Reply-To: <20210418112856.15078-1-alex@ghiti.fr> From: Anup Patel Date: Tue, 20 Apr 2021 09:49:18 +0530 Message-ID: Subject: Re: [PATCH] riscv: Remove 32b kernel mapping from page table dump To: Alexandre Ghiti 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 >