From patchwork Wed Oct 19 10:36:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianting Tian X-Patchwork-Id: 338 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp288284wrs; Wed, 19 Oct 2022 05:13:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7sgVzjQK/ZuHbC7BVv6tRCYj63VW1KRgSibf0P+jfaY9NfC1JFnv2EGsezBo8oa7dQKoSA X-Received: by 2002:a50:fe0a:0:b0:458:dce8:2b6b with SMTP id f10-20020a50fe0a000000b00458dce82b6bmr7110719edt.84.1666181583938; Wed, 19 Oct 2022 05:13:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666181583; cv=none; d=google.com; s=arc-20160816; b=bzzwh7x091CKltAKDg3zPOR2pJxbdXvipAhnCFvX7ZQxiRl0ZolBMCVkwrWpORXOMk VDeXzG94wvQbdyW61oyr3YBV0r2zQpAqJ0K+bzyPZrkDutyCGvA3dIaCRmnTPQXGPOpO lyzix5bOPasMhm13b7JPmmKHEY+IFfRGwxwtZEpjuCjPLIOPLoCGESCXRqrInU1nzhJw aGSra/X1RmdfIqWT8jW2oS3ZEykZebfA0k+lViuA1QnH3xvuXL2RZ9yTEQdRRhMmYemr 4XEDsgYRhlHiXSvqvVgRM+Sm79/FcqEwFwBouYNmKNbTMRcBv8HoKEHOp510PxPr1rCG Zjrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=x8YFP5Z8/e7becZi6n/DqVqA9pSUpMGP6C3spckSkMg=; b=pDbjbu7N21vZ2qqaX7Jy3z9I/qJnjPSsx+jLz18SyWS9J7LckOzSt8lm7Vits0LkK3 AgXr+d/bFHboP1fzErDYGK5hFkqGXcdTnRuHDPzZKbxyVNDVjGs+lZnJs11bUsQtj90L 5rdzHjo2iQOt22zCG/5sXuRoByQ9P5lPB3dOBZS/LehndaZ6V2+NMqPklvqY6iM0AMPD F1b1iUqa4VSs42CkBDessEMym3CZTL+fcoa2AVnKXpxc8DnQ6d2RXFsWbuLoh04QZPuh EvsQDFz99usflsFYFdjvaoCFY38lUVl0w1ZdVtn0nsAugcQQ3LsHfvT/0WBjiOGXatP8 LhXA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cb2-20020a0564020b6200b0043e5ca9a0e2si11854072edb.628.2022.10.19.05.12.36; Wed, 19 Oct 2022 05:13:03 -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 S232718AbiJSMLX (ORCPT + 99 others); Wed, 19 Oct 2022 08:11:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232499AbiJSMKl (ORCPT ); Wed, 19 Oct 2022 08:10:41 -0400 Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73B9810F881; Wed, 19 Oct 2022 04:45:56 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=xianting.tian@linux.alibaba.com;NM=1;PH=DS;RN=25;SR=0;TI=SMTPD_---0VSaNslb_1666175784; Received: from localhost.localdomain(mailfrom:xianting.tian@linux.alibaba.com fp:SMTPD_---0VSaNslb_1666175784) by smtp.aliyun-inc.com; Wed, 19 Oct 2022 18:36:34 +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, k-hagio-ab@nec.com, lijiang@redhat.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, hschauhan@nulltrace.org, yixun.lan@gmail.com, Xianting Tian Subject: [PATCH V4 0/2] Support VMCOREINFO export for RISCV64 Date: Wed, 19 Oct 2022 18:36:21 +0800 Message-Id: <20221019103623.7008-1-xianting.tian@linux.alibaba.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747118020533047837?= X-GMAIL-MSGID: =?utf-8?q?1747118020533047837?= As disscussed in below patch set, the patch of 'describe VMCOREINFO export in Documentation' need to update according to Bagas's comments. https://lore.kernel.org/linux-riscv/22AAF52E-8CC8-4D11-99CB-88DE4D113444@kernel.org/ As others patches in above patch set already applied, so this patch set only contains below two patches. ------ Changes: Fix commit message in patch 2: use "Document these RISCV64 exports above" instead of "This patch just add the description of VMCOREINFO export for RISCV64." V1 -> V2: Remove unnecessary overline above header text in patch 2. V2 -> V3: Fix commit message in patch 1,2; Use 'space' instead of 'region' for vmemmap description in patch 2. V3 -> V4: Remove unnecessary kernel space export: KASAN_SHADOW_START ~ KASAN_SHADOW_END, ADDRESS_SPACE_END Xianting Tian (2): RISC-V: Add arch_crash_save_vmcoreinfo support Documentation: kdump: describe VMCOREINFO export for RISCV64 .../admin-guide/kdump/vmcoreinfo.rst | 30 ++++++++++++++++++ arch/riscv/kernel/Makefile | 1 + arch/riscv/kernel/crash_core.c | 29 +++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 arch/riscv/kernel/crash_core.c