Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp612614imw; Wed, 13 Jul 2022 05:02:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vTkBneSMaz/oM7Z2rHVPf4LqKOOcUlISwLYIIWIYTvHeJJgxXrF6VAPMaNK01gCq3ZyqSI X-Received: by 2002:a17:903:c5:b0:16b:d8d5:5f14 with SMTP id x5-20020a17090300c500b0016bd8d55f14mr2845602plc.18.1657713741356; Wed, 13 Jul 2022 05:02:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657713741; cv=none; d=google.com; s=arc-20160816; b=xNME9g/9K8hwGLzyQ/Iu/aHxPe1XZqtpje1gFbJrdFvH8hMLfga+I2yc5GDF+hNIjd fOx0Dhls1MuvjL1tktUZbGuJXB5rjGu2CddFnD2EYSdddnMl6+QdzXWYzk4EHwiN/nN5 TDQV352AuUg4wh9EqqXm0kQqbVLZ4YNLL0IsbKMjpufkSRdE0fc2ZRDFBv+eeSqqFgLg stDA2aKFbUafUN1zSHzVVTUfV5NWyFQaRM2MVIF4nMud6fOif1DSlFQYB5sZOvYQkqKf h1FNpBr1eauGQdtyjNMUxjIBLiTSPR/QaG7FKiDjOipPTFbqQrsqqTga2789hO+xgDt9 +onQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=oWUvFXhI9+rzK0Or7MkyUHf7KLIjpRm9/eKVAi9Rd2Y=; b=e6gBuzUoHmyE+O6wJBlCCJ/HAkPK1zm2gMSNAddZG+Bkb+Q0Rflvve8mMxlA+W+lUl Cgc0J1/cmqrpO8uzg5EaJoWpxiWJgJyQ2H625FbmwnurO9eMd/+JoZGzJxLU1ermRGJ4 vynGkUPybAFypzc6oypkOzJrUmNhujpZz7HRblTbPPPBfusnaTS3+Rsx7CAGtF4XO2al K6LwRgwCZE0NFFR1PgYpgKvIjrtMiqrhmpHHjNmf9/FsODS5JUbWcJ2hHs8UVovcQUgs nCLdrsROiCrn5DOx3sL0e8wR3FZ8uAKHSR4dhYSf5zrfveODX1yUs+Y0hoLgpOf9lm52 NmCg== 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=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g11-20020a170902934b00b001615a62cf93si15552491plp.544.2022.07.13.05.02.07; Wed, 13 Jul 2022 05:02:21 -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=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236297AbiGMLzg (ORCPT + 99 others); Wed, 13 Jul 2022 07:55:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236089AbiGMLzd (ORCPT ); Wed, 13 Jul 2022 07:55:33 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A51B3F54D7 for ; Wed, 13 Jul 2022 04:55:32 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R591e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=xianting.tian@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0VJDrRM9_1657713328; Received: from localhost(mailfrom:xianting.tian@linux.alibaba.com fp:SMTPD_---0VJDrRM9_1657713328) by smtp.aliyun-inc.com; Wed, 13 Jul 2022 19:55:28 +0800 From: Xianting Tian To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, alexandre.ghiti@canonical.com, guoren@kernel.org, anup@brainfault.org, mick@ics.forth.gr, rppt@kernel.org, heiko@sntech.de Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, huanyi.xj@alibaba-inc.com, Xianting Tian Subject: [PATCH 2/2] riscv: Add modules to virtual kernel memory layout dump Date: Wed, 13 Jul 2022 19:55:23 +0800 Message-Id: <20220713115523.357817-3-xianting.tian@linux.alibaba.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220713115523.357817-1-xianting.tian@linux.alibaba.com> References: <20220713115523.357817-1-xianting.tian@linux.alibaba.com> X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 Modules always live before the kernel, MODULES_END is fixed but MODULES_VADDR isn't fixed, it depends on the kernel size. Let's add it to virtual kernel memory layout dump. eg, MODULES_VADDR - MODULES_END 0xffffffff01133000 - 0xffffffff80000000 Signed-off-by: Xianting Tian --- arch/riscv/mm/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index d466ec670e1f..bffab94f02d3 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -135,6 +135,8 @@ static void __init print_vm_layout(void) (unsigned long)VMEMMAP_END); print_ml("vmalloc", (unsigned long)VMALLOC_START, (unsigned long)VMALLOC_END); + print_ml("modules", (unsigned long)MODULES_VADDR, + (unsigned long)MODULES_END); print_ml("lowmem", (unsigned long)PAGE_OFFSET, (unsigned long)high_memory); if (IS_ENABLED(CONFIG_64BIT)) { -- 2.17.1