Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3801537rwl; Mon, 27 Mar 2023 20:58:38 -0700 (PDT) X-Google-Smtp-Source: AKy350bZCTxkwWEbbxMpANEvUmWwlkNM1ZA48mYeBxuY/sTBOLoZav3Tto3llzXW9ngEDHxhY05D X-Received: by 2002:a17:906:b159:b0:93d:b767:9fea with SMTP id bt25-20020a170906b15900b0093db7679feamr13153449ejb.31.1679975918503; Mon, 27 Mar 2023 20:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679975918; cv=none; d=google.com; s=arc-20160816; b=ZPh8EHej0eaPA8o6VFILktvM6gSWXnaGEH4e3/xuDsrP1vQFfayp0+jpjEwctgvOIU YRw1t92uWtKRFCEiU8v7F/yh3VUuibbSR4/7yLUBiOq7J5lWL7DsRIfk321FKQeEyEsa 0GN95Gv6+CghDoqj7i+jL4DquvaanCflc/0xbamX+CkI2YnIW4hRT2MSTl0sTWQ6rR7D LgYmlj9IxgVTP522jqiXOrAkbl6bP8PmYXUq0kAPrSXPy1D2rKFtyr5RbJbxA0s7djwj M/HdKY9TgmZ73jfXmGR75zuTuhfoaWbNWmu8bPuZKuMZ1zejidvct95FX6vcMsBA81gM ocWw== 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=XbdLHznSuuL+sKcVvgRgRpgSHvfQoF64zwucpQipNJI=; b=M1H4JfLiy8aq6O8/2Cidnj376CTzo1CM/d0ztG+g7oCEi/poRLb8kS+08tPFt2ZW+s qcxA4odI5xm7xdbWobitPE813QeBt7gbNw5y/4C6tmoXTb/8mtmAeJ9l7bRI8cYN+9QJ +u6XsGww1HjVho/obFr4g529X022nVzmGvyn25/bgUnJa40k3NPmPdw3c0inUtMllSZ/ 40dfWkQhMKOatYAX6N84PfBuFdGxxzq4EDT/LYWegvSm0oXXSwOMnxPYgUgLzk7MD65E tpC04eHGiFx6KnA4IlFhGeTJWBmP2fiRp3qKMFUXMrPwpyero/dEgUYRyMzvbItExxGj SVaA== 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 c14-20020a170906170e00b0092be7ac7e2csi27340193eje.211.2023.03.27.20.58.13; Mon, 27 Mar 2023 20:58:38 -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 S232378AbjC1Dzu (ORCPT + 99 others); Mon, 27 Mar 2023 23:55:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232487AbjC1Dz0 (ORCPT ); Mon, 27 Mar 2023 23:55:26 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E016199A; Mon, 27 Mar 2023 20:55:20 -0700 (PDT) Received: from dggpemm500016.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Plwmp43LRzKpkX; Tue, 28 Mar 2023 11:54:50 +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.21; Tue, 28 Mar 2023 11:55:18 +0800 From: Chen Jiahao To: , , , , , , , , , , , CC: , , , Subject: [PATCH -next v2 2/2] docs: kdump: Update the crashkernel description for riscv Date: Tue, 28 Mar 2023 19:51:50 +0800 Message-ID: <20230328115150.2700016-3-chenjiahao16@huawei.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230328115150.2700016-1-chenjiahao16@huawei.com> References: <20230328115150.2700016-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: dggems704-chm.china.huawei.com (10.3.19.181) 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 9bc3813bce8f..a947d3d7c85c 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