Message ID | 20230724100917.309061-2-suagrfillet@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1707641vqg; Mon, 24 Jul 2023 03:38:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlGyQcl1sXWAPl76RZIyUHe/ZY3YmKx85F224zV/rv9hFuQaytJI6Wc9NFwTjZs9wFAvxcz5 X-Received: by 2002:aa7:c0cb:0:b0:522:21a1:4245 with SMTP id j11-20020aa7c0cb000000b0052221a14245mr4002468edp.27.1690195082388; Mon, 24 Jul 2023 03:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690195082; cv=none; d=google.com; s=arc-20160816; b=azynasqbjRcNZb7qERLbWQ466LPNHruUP+1Q9wuEs9HkHlz7J03KEFIQxSoA77AREo x8vS71qjtFT1gnAoj+IC6BdsscWYvJsK0xinUPMc61MF5Y77cloAB/ANCuHTpSnV/ao9 T5+EoABGLo1QzxsYhDVT/LC6ey2ZuG1b4nXsgDYL1fQCgHFp2Naxi93FjBU8CYv1cwFA 50HNK0eqVfknUwMEAFXD9Su0MRdDa3QCrydB3YzJPcwzB9dS4sj05BZM9inJRa7duQGO xt3/bMNti3OW805jHkZnvYq7mgRzyLNqjhtOqc6ByoJ7Ih/2MriKGYtr8Z+jL3JKVc6x KyeA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Vwxb4dr9ed/m5CEyUxwJ1RrHPJUl/WASFTIF6qacv2g=; fh=RlSjNsDiYZ1kvNfMK4OlBVuDVxPB3sSmCG5dgPZgDgw=; b=JEappRHULIPWp9PILYOtas5R7oMYX8qQGiJELxg6p/aMFr7iJqA7VXoaRZ8/tOJJcd DEN0c+RXzUCJRGOnXy5hCjX8IxLvaTKoKkrsRmNNPgahCAjsMVGa1/VEONnWluwE0Igg rFvB+6IS47MIJSMb96YTDTLSmFx9DkzqmwpC6YXpudCnLRdRaGdsXBQBfCVqXvNt1G2P ROYxIQBuva8j6cYIuzHKdrDPM1XjpGeu+tkP9dyV+Z1cZf4nIWaKkBUdW0fEUJGBe0M/ 5AasPiMSpnSFFZa4+NcE1f5MlsvCShmCe6vWWHfmrEfohg/hDiNJfu2Lj8siH7v7992Y R63A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=VD0Nxzaw; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf24-20020a0564021a5800b005221f404a63si2646785edb.380.2023.07.24.03.37.37; Mon, 24 Jul 2023 03:38:02 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=VD0Nxzaw; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231591AbjGXKTK (ORCPT <rfc822;kautuk.consul.80@gmail.com> + 99 others); Mon, 24 Jul 2023 06:19:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231556AbjGXKRd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Jul 2023 06:17:33 -0400 Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E58C8A47; Mon, 24 Jul 2023 03:09:48 -0700 (PDT) Received: by mail-il1-x12c.google.com with SMTP id e9e14a558f8ab-34884a8f285so24131625ab.0; Mon, 24 Jul 2023 03:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690193387; x=1690798187; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Vwxb4dr9ed/m5CEyUxwJ1RrHPJUl/WASFTIF6qacv2g=; b=VD0NxzawoiPeT3noLpC6aX3MxiFFLuHuf3NInzssCr435rIpjai1Q9BKajTHw377io aXSypTdyUU+RFfzj2Zr9fY4+fYt5SJX0e+Vyy+XxqgO3jmXJEByYRFRtziGQzbao7+EF lA6e/r7AXXdNRbfFEaN7L4pzWHV9yf3b4SstMGls2JQpxcPFJZZPqG4VrKwfmUQkRsRr oTtZ4iW7aj1br5A6e/Y/BP1G4KeI4pUH+Pahde61X+gUa/GdrUCSMcFV6VgBciamhSP2 z/1aqxOd8/QuVJJsh34jNZnDBMwHRpa4bgSn/smjgD3YFNYeixnDN1ipAKBxBFRwj+TT kMQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690193387; x=1690798187; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Vwxb4dr9ed/m5CEyUxwJ1RrHPJUl/WASFTIF6qacv2g=; b=UlcC3O/LMKyeIGmEDnebtK9EReQyEEK1DGJxCWIRSUOQE5DdtWl8xDbQAyLhCZK69B cf5Ncr1TgHYDEXet1UaTq/ZqpbF6OXUC6Of1dlnGYm2nkdQYg05Om2wLhgBVGzNbZhXy +SLReRLg+jh6UYOXX7bhouvbj2hfc3hx1QGRXtWHTqepfn1bp+7Ckv/luzPmzDEtuIdd lX5XUO30tzutLauX3xGZmHvKn0mEN2HTfG3uenhceQ3ET58WRgq4V9uycG1s1gJEhAvd +sFvC3vg9VZbjMzt6hYeAd3Azm2j2vHgF42DGZHbw93QFpkJA6/dIWU5H46MTNFglXS8 8I2A== X-Gm-Message-State: ABy/qLYLzm9iZSwlE2X2pIN8PbbpjRATkqyVQZi7F+iOqrUQSqcnr/wX DbB+tLiSMeA6Vp2SruZ0eU4= X-Received: by 2002:a05:6e02:20e1:b0:346:e96:7cbb with SMTP id q1-20020a056e0220e100b003460e967cbbmr9064158ilv.30.1690193387442; Mon, 24 Jul 2023 03:09:47 -0700 (PDT) Received: from localhost.localdomain ([2408:843e:c90:2347:5782:34b7:c2b6:16d2]) by smtp.gmail.com with ESMTPSA id t29-20020a63b25d000000b0051b8172fa68sm8272826pgo.38.2023.07.24.03.09.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 03:09:47 -0700 (PDT) From: Song Shuai <suagrfillet@gmail.com> To: bhe@redhat.com, vgoyal@redhat.com, dyoung@redhat.com, corbet@lwn.net, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, xianting.tian@linux.alibaba.com, suagrfillet@gmail.com, anup@brainfault.org, robh@kernel.org, ajones@ventanamicro.com, alexghiti@rivosinc.com, conor.dooley@microchip.com Cc: kexec@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [RESEND PATCH -fixes 2/2] Documentation: kdump: Add va_kernel_pa_offset for RISCV64 Date: Mon, 24 Jul 2023 18:09:17 +0800 Message-Id: <20230724100917.309061-2-suagrfillet@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230724100917.309061-1-suagrfillet@gmail.com> References: <20230724100917.309061-1-suagrfillet@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772297998648343046 X-GMAIL-MSGID: 1772297998648343046 |
Series |
[-fixes,1/2] riscv: Export va_kernel_pa_offset in vmcoreinfo
|
|
Commit Message
Song Shuai
July 24, 2023, 10:09 a.m. UTC
RISC-V Linux exports "va_kernel_pa_offset" in vmcoreinfo to help
Crash-utility translate the kernel virtual address correctly.
Here adds the definition of "va_kernel_pa_offset".
Fixes: 3335068f8721 ("riscv: Use PUD/P4D/PGD pages for the linear mapping")
Link: https://lore.kernel.org/linux-riscv/20230724040649.220279-1-suagrfillet@gmail.com/
Signed-off-by: Song Shuai <suagrfillet@gmail.com>
---
Documentation/admin-guide/kdump/vmcoreinfo.rst | 6 ++++++
1 file changed, 6 insertions(+)
Comments
On 24/07/2023 12:09, Song Shuai wrote: > RISC-V Linux exports "va_kernel_pa_offset" in vmcoreinfo to help > Crash-utility translate the kernel virtual address correctly. > > Here adds the definition of "va_kernel_pa_offset". > > Fixes: 3335068f8721 ("riscv: Use PUD/P4D/PGD pages for the linear mapping") > Link: https://lore.kernel.org/linux-riscv/20230724040649.220279-1-suagrfillet@gmail.com/ > Signed-off-by: Song Shuai <suagrfillet@gmail.com> > --- > Documentation/admin-guide/kdump/vmcoreinfo.rst | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/admin-guide/kdump/vmcoreinfo.rst b/Documentation/admin-guide/kdump/vmcoreinfo.rst > index c18d94fa6470..f8ebb63b6c5d 100644 > --- a/Documentation/admin-guide/kdump/vmcoreinfo.rst > +++ b/Documentation/admin-guide/kdump/vmcoreinfo.rst > @@ -624,3 +624,9 @@ Used to get the correct ranges: > * 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 > + > +va_kernel_pa_offset > +------------------- > + > +Indicates the offset between the kernel virtual and physical mappings. > +Used to translate virtual to physical addresses. You can add: Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Thanks, Alex
diff --git a/Documentation/admin-guide/kdump/vmcoreinfo.rst b/Documentation/admin-guide/kdump/vmcoreinfo.rst index c18d94fa6470..f8ebb63b6c5d 100644 --- a/Documentation/admin-guide/kdump/vmcoreinfo.rst +++ b/Documentation/admin-guide/kdump/vmcoreinfo.rst @@ -624,3 +624,9 @@ Used to get the correct ranges: * 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 + +va_kernel_pa_offset +------------------- + +Indicates the offset between the kernel virtual and physical mappings. +Used to translate virtual to physical addresses.