Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2202337rwl; Thu, 6 Apr 2023 07:11:49 -0700 (PDT) X-Google-Smtp-Source: AKy350YBlqeqlPO8BrN8frC4/yTGcwL5WUHgmWdQ2kmwPoXBQ+Uk+EdKgB4AMhQ1gMcVsx3Bjr9r X-Received: by 2002:a17:906:5942:b0:946:a1c8:e000 with SMTP id g2-20020a170906594200b00946a1c8e000mr6263732ejr.44.1680790308633; Thu, 06 Apr 2023 07:11:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680790308; cv=none; d=google.com; s=arc-20160816; b=v3meNq+CHvE+LFQ6TJJS6pmGW1Pnhgk19Rh23CcHUcYSJ1k0FsKm0EDdY3JP2NbSxw nJ5cRAVFYEieKXXnBjSg16jkcTiepbJzEFhwdqQbuTdaKcpZLDpcJLkDntqywiSjkUMj k4e+bSzMU356FDzpF39KrJ4Xe1FTldUXYV13uzysgXTJapLLR22BfXo0p9bTmgfmjFmQ f77uEizS9mMnJ0sKNBmm/EafPNo9j70kcU16thKBQ/lnEAEpefxFAK5nsDVEH9/3+YZX XaoJMDB7B+c0kA+LHS2Eal88rs9ld3gLB0321M7DLfCsjR0yH0+fG0XDIsQ8VbE7//6e M+fA== 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; bh=EvPVldKkR6lO/5GBDCS0OrkkRQ15ZpcA2PsZoWaZEsI=; b=SV/CbICU4cdw1vjzAdhWZbYbivj/5Hr4XfzhlAef0GIMyj5GGvTVbhEv0BDym5oZSz 0I6U8vvn+Jdk5hmIuCWBrAYesnqUzAn0TQApMZV02HJePk5LnXhv9ArivSXpNIFdWtBz 7w8xJDmu2EgppUkV2mfmhI3rPn5sK4kdK9OAHCZSW2ArGD79z2tgPWh/EOWzxJcTUxVx jKd16QIQzNy2E0idvq0hokCgHYqyNAhjaHebZDoz0YeeAQazMITSTgqQhRNl6UFwOrPW mY8GcZTAQtEfbeNzTG0xTk29obmQ1ZP8mmPiB/xnNSh6jNWU8cNYiloJZ4j0aM8Iigfq zQ3w== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qc27-20020a170906d8bb00b00930f903a752si1039742ejb.177.2023.04.06.07.11.19; Thu, 06 Apr 2023 07:11:48 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238993AbjDFOGd (ORCPT + 99 others); Thu, 6 Apr 2023 10:06:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238976AbjDFOGX (ORCPT ); Thu, 6 Apr 2023 10:06:23 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7CF7903B; Thu, 6 Apr 2023 07:05:56 -0700 (PDT) Received: from dggpemm500016.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Psjrj4KHPzKx4d; Thu, 6 Apr 2023 22:03:17 +0800 (CST) Received: from huawei.com (10.67.174.205) by dggpemm500016.china.huawei.com (7.185.36.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 6 Apr 2023 22:05:47 +0800 From: Chen Jiahao To: , , , CC: , , , , , , , , , , , Subject: [PATCH -next v3 2/2] docs: kdump: Update the crashkernel description for riscv Date: Fri, 7 Apr 2023 06:02:06 +0800 Message-ID: <20230406220206.3067006-3-chenjiahao16@huawei.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230406220206.3067006-1-chenjiahao16@huawei.com> References: <20230406220206.3067006-1-chenjiahao16@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.205] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500016.china.huawei.com (7.185.36.25) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Now "crashkernel=" parameter on riscv has been updated to support crashkernel=X,[high,low]. Through which we can reserve memory region above/within 32bit addressible DMA zone. Here update the parameter description accordingly. Signed-off-by: Chen Jiahao --- Documentation/admin-guide/kernel-parameters.txt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 54702bd488eb..41865aae9eaa 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -866,7 +866,7 @@ memory region [offset, offset + size] for that kernel image. If '@offset' is omitted, then a suitable offset is selected automatically. - [KNL, X86-64, ARM64] Select a region under 4G first, and + [KNL, X86-64, ARM64, RISCV] Select a region under 4G first, and fall back to reserve region above 4G when '@offset' hasn't been specified. See Documentation/admin-guide/kdump/kdump.rst for further details. @@ -879,14 +879,14 @@ Documentation/admin-guide/kdump/kdump.rst for an example. crashkernel=size[KMG],high - [KNL, X86-64, ARM64] range could be above 4G. Allow kernel - to allocate physical memory region from top, so could - be above 4G if system have more than 4G ram installed. - Otherwise memory region will be allocated below 4G, if - available. + [KNL, X86-64, ARM64, RISCV] range could be above 4G. + Allow kernel to allocate physical memory region from top, + so could be above 4G if system have more than 4G ram + installed. Otherwise memory region will be allocated + below 4G, if available. It will be ignored if crashkernel=X is specified. crashkernel=size[KMG],low - [KNL, X86-64, ARM64] range under 4G. When crashkernel=X,high + [KNL, X86-64, ARM64, RISCV] range under 4G. When crashkernel=X,high is passed, kernel could allocate physical memory region above 4G, that cause second kernel crash on system that require some amount of low memory, e.g. swiotlb @@ -897,6 +897,7 @@ size is platform dependent. --> x86: max(swiotlb_size_or_default() + 8MiB, 256MiB) --> arm64: 128MiB + --> riscv: 128MiB This one lets the user specify own low range under 4G for second kernel instead. 0: to disable low allocation. -- 2.31.1