Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp907054rwi; Wed, 26 Oct 2022 08:34:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4kQAWquuymnKweYT7jm5YfIZKbzzKVH2+S/mmXYbjUCz5LeKkKHQlI3w3pwrtCxszoYiYo X-Received: by 2002:a17:90b:f06:b0:212:cb07:fb82 with SMTP id br6-20020a17090b0f0600b00212cb07fb82mr4744039pjb.221.1666798458612; Wed, 26 Oct 2022 08:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666798458; cv=none; d=google.com; s=arc-20160816; b=s7eidA8X1TVWAhiOdHyGxBsgbgQy4/9K7gtwKW5q5S9gsyhomHUZtyqa4+6d4zXZvm eBGvlbJSjKm4ywHeiL6uVYOIrVyRivc+rWluoEdE2rB6s3/zwV29aXRDHtpJUB3cpXx/ Khmm9T+kBjzpR6tvt6hWMnFYs+cXmt8M27r/GUNtQQT8PcH9ZQPayuXf/Pub0HzA9eBZ GvKsBbCafBVDuDh+Kj3tyiYVEaCt2Vl2uQ7gtpTOxeyvw3zltGuHrUnEiQ+TYi6UuW1V c/sHI3ru5gZAdvwA15ye2SFOadEQw70riUMZlnN3cHJm48dkf6mAq7BJMRugdUPwI7pn 3uOQ== 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=zL13S/Vo8zGFddaEbc+vPfS8BU38YmYu2VY29DMgRvE=; b=uksLkSiELHYux6gRl/bEhWwTnFiL3kYRclIiv+DpvonC/3ipsq6Myqkvr8gTTWAS+g Vtm2Ivrs/AiNplZy3UuGGWB2YaEY4Hr9xA/MmOOjPlOWUeQG3bwHApfPNiggQgLHMfEj LcwtHeBgGSBZOukSuyWH/9qjcQ3ZnDP58eW3XX+vHmtMeUx+CftrdN30VhZxFK1+jGfs vFA1ggGxDUPmG/p1yzebmbdMeP8ho9gmyRAftPcrmjCWs81wx1c091ap4UB9XM2/z4Bv kJYuYW/6DUogSmhhy9oArEO0+kkd94f0JDuua231QzvbG7giy2ywfdBi9nUkIynyLg93 2BWw== 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 n15-20020a63b44f000000b004639c6797bdsi7279247pgu.307.2022.10.26.08.33.50; Wed, 26 Oct 2022 08:34:18 -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 S233665AbiJZOms (ORCPT + 99 others); Wed, 26 Oct 2022 10:42:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233767AbiJZOmg (ORCPT ); Wed, 26 Oct 2022 10:42:36 -0400 Received: from out199-18.us.a.mail.aliyun.com (out199-18.us.a.mail.aliyun.com [47.90.199.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3716EE1979; Wed, 26 Oct 2022 07:42:34 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=xianting.tian@linux.alibaba.com;NM=1;PH=DS;RN=24;SR=0;TI=SMTPD_---0VT7dcpZ_1666795345; Received: from localhost.localdomain(mailfrom:xianting.tian@linux.alibaba.com fp:SMTPD_---0VT7dcpZ_1666795345) by smtp.aliyun-inc.com; Wed, 26 Oct 2022 22:42:26 +0800 From: Xianting Tian To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, anup@brainfault.org, heiko@sntech.de, guoren@kernel.org, mick@ics.forth.gr, alexandre.ghiti@canonical.com, bhe@redhat.com, vgoyal@redhat.com, dyoung@redhat.com, corbet@lwn.net, Conor.Dooley@microchip.com, bagasdotme@gmail.com Cc: kexec@lists.infradead.org, linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, crash-utility@redhat.com, heinrich.schuchardt@canonical.com, k-hagio-ab@nec.com, hschauhan@nulltrace.org, yixun.lan@gmail.com, Xianting Tian Subject: [PATCH V5 2/2] Documentation: kdump: describe VMCOREINFO export for RISCV64 Date: Wed, 26 Oct 2022 22:42:08 +0800 Message-Id: <20221026144208.373504-3-xianting.tian@linux.alibaba.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221026144208.373504-1-xianting.tian@linux.alibaba.com> References: <20221026144208.373504-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_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, 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 The following interrelated definitions and ranges are needed by the kdump crash tool, which are exported by "arch/riscv/kernel/crash_core.c": VA_BITS, PAGE_OFFSET, phys_ram_base, KERNEL_LINK_ADDR, MODULES_VADDR ~ MODULES_END, VMALLOC_START ~ VMALLOC_END, VMEMMAP_START ~ VMEMMAP_END, Document these RISCV64 exports above. Reviewed-by: Bagas Sanjaya Signed-off-by: Xianting Tian --- .../admin-guide/kdump/vmcoreinfo.rst | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Documentation/admin-guide/kdump/vmcoreinfo.rst b/Documentation/admin-guide/kdump/vmcoreinfo.rst index 6726f439958c..86fd88492870 100644 --- a/Documentation/admin-guide/kdump/vmcoreinfo.rst +++ b/Documentation/admin-guide/kdump/vmcoreinfo.rst @@ -595,3 +595,32 @@ X2TLB ----- Indicates whether the crashed kernel enabled SH extended mode. + +RISCV64 +======= + +VA_BITS +------- + +The maximum number of bits for virtual addresses. Used to compute the +virtual memory ranges. + +PAGE_OFFSET +----------- + +Indicates the virtual kernel start address of the direct-mapped RAM region. + +phys_ram_base +------------- + +Indicates the start physical RAM address. + +MODULES_VADDR|MODULES_END|VMALLOC_START|VMALLOC_END|VMEMMAP_START|VMEMMAP_END|KERNEL_LINK_ADDR +---------------------------------------------------------------------------------------------- + +Used to get the correct ranges: + + * MODULES_VADDR ~ MODULES_END : Kernel module space. + * VMALLOC_START ~ VMALLOC_END : vmalloc() / ioremap() space. + * VMEMMAP_START ~ VMEMMAP_END : vmemmap space, used for struct page array. + * KERNEL_LINK_ADDR : start address of Kernel link and BPF -- 2.17.1