Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp823459rwb; Wed, 26 Jul 2023 03:34:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlGtOYC2hfb9q/fJHxcoKbv2IZDoTZgIsuWdhT+YuBcJEmtjYX4Gs1T3hqvDjziuuH3dzEun X-Received: by 2002:a17:906:32d6:b0:994:4f08:2bad with SMTP id k22-20020a17090632d600b009944f082badmr1256183ejk.69.1690367663059; Wed, 26 Jul 2023 03:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690367663; cv=none; d=google.com; s=arc-20160816; b=bDphhEiPnBLtEfrSvN4slXu4rrpVDTdBynMwxlj47D9FtgnKUAzvfgGpJf4/YIK8Ei q6xoDvspUWf/O1gSIL5Jgvij8SLbYVnhNDom2m+sONQ6GbG+ETvWT9DFq++Gq9VmtD5f B3CH2Mmau+W7SHw9wumapJmpnGhi4dSqW2Tku9FjAeyptM20ijk4zkHHsWUlToMwc9RK YwgBO9kAKE0ttt7CCUta7iG9ivr/0RWV6BRD5EOIbzhvY/SNcrORJEFFFXzjUX/hvL1Y 54Dcroias3shmFs0M5oAjeKuaJ5VMxoXPBQsmqz1VWYt2+PdWmxESyJ+pDURBj/DM8U9 Cc8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6NrkSvDdE4cdjpoTJxD+Lnito5LDpS0282P7ZLa36EE=; fh=ipkUpDI4ZoETUNKxz9BflhyzOBrY4p14IBmAimKVsK4=; b=Ju5+NA3yPUm3bqcuf2hba0Qy0cLYgIaHka2Q8tRpYfwRG1d7eDDnLBZ9I7T+0kcbKX rxJo5DSP1H0I7Qz6zEp4DinCIM4ROzO8pMSTyjG4LaK3xonx73d9f88Im+QAzOPawrVY EnOas3ipS/bSXs2MiTRICGakJzdECYMcBO+wGe/b8Yu6OhFt3sXZTZBG1V6J3LEs3Wpx 9cvBQ95B/6T2nE0+nBkGVvL5KBqQINafvGA8jP2Q+n96bYI3pXJ1LQEE6a1ZAHv0SOtW lkUGftCOTpdDa9Euv8Zc+De9hAnuzOYgRaqtx/SyBlofCPMAgSG3Cpt9+pi3+tTJnZhE NnDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=R2TWdPew; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k1-20020a1709065fc100b0099b7a166dccsi6324985ejv.308.2023.07.26.03.33.57; Wed, 26 Jul 2023 03:34:23 -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=@redhat.com header.s=mimecast20190719 header.b=R2TWdPew; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233811AbjGZK0Y (ORCPT + 99 others); Wed, 26 Jul 2023 06:26:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233800AbjGZK0U (ORCPT ); Wed, 26 Jul 2023 06:26:20 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCC09212D for ; Wed, 26 Jul 2023 03:25:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690367130; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6NrkSvDdE4cdjpoTJxD+Lnito5LDpS0282P7ZLa36EE=; b=R2TWdPewKP10KWNQWVBtXPSZgHLKfZS+FK2+9KKR7HnNvKQvaMA6GKmkp0rq/u6v1Oz073 9tV8mm0H0gElNeM2RfqNKLjLo0OcjJYj8iiMlfHD/scE9rKy9m6OjZOQcoHLHVbq4thsCn rQw24ti5UE3/gMSOo6ejeeBDnuR2npc= Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-597-jrcLmOGXMXWtWFE-eZtxUw-1; Wed, 26 Jul 2023 06:25:24 -0400 X-MC-Unique: jrcLmOGXMXWtWFE-eZtxUw-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8E81B1C31C49; Wed, 26 Jul 2023 10:25:23 +0000 (UTC) Received: from localhost (ovpn-12-99.pek2.redhat.com [10.72.12.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E202646A3A7; Wed, 26 Jul 2023 10:25:22 +0000 (UTC) Date: Wed, 26 Jul 2023 18:25:19 +0800 From: Baoquan He To: Chen Jiahao Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, kexec@lists.infradead.org, linux-doc@vger.kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, conor.dooley@microchip.com, guoren@kernel.org, heiko@sntech.de, bjorn@rivosinc.com, alex@ghiti.fr, akpm@linux-foundation.org, atishp@rivosinc.com, thunder.leizhen@huawei.com, horms@kernel.org Subject: Re: [PATCH -next v9 2/2] docs: kdump: Update the crashkernel description for riscv Message-ID: References: <20230726175000.2536220-1-chenjiahao16@huawei.com> <20230726175000.2536220-3-chenjiahao16@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230726175000.2536220-3-chenjiahao16@huawei.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 On 07/26/23 at 05:50pm, Chen Jiahao wrote: > 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. Acked-by: Baoquan He > > Signed-off-by: Chen Jiahao > Reviewed-by: Guo Ren > Reviewed-by: Simon Horman > Reviewed-by: Zhen Lei > --- > 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 a1457995fd41..bd519749968f 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -862,7 +862,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. > @@ -875,14 +875,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 > @@ -893,6 +893,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.34.1 >