Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1570252rwl; Fri, 7 Apr 2023 19:54:27 -0700 (PDT) X-Google-Smtp-Source: AKy350YZR3m7mnl0WGG4e59KLead5Kq5IMZQ5g3WSTvtj60Du6JgYVKxetKvI4LOPtKwM592/AH1 X-Received: by 2002:a17:90a:e2d1:b0:23d:3383:1d68 with SMTP id fr17-20020a17090ae2d100b0023d33831d68mr4696495pjb.35.1680922467240; Fri, 07 Apr 2023 19:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680922467; cv=none; d=google.com; s=arc-20160816; b=C+ShmYfQamzZDJo2mBnRNAm3qyGAp0K6trXMhtJSAktzprhaGtUzTuQ1mSwcrCMyoV 4PlQNRaXZ2O5yiVpXvCkWzwDvw+MGqkxkuB2OPXcNFsp5oFSVCIQMElL2Mqm3YqYbyBs HwNOfqSzr44LJQEDRz6sdpOMBTaQrGqmNqMdhlCX3BL3h40AhDafSs52dq46/yheWhXB 6e25jIqEY9kG1EQin5182opfYs3ksJ//u9TJMu/xUHbgyPtoJHnYgH0gXj7JQWgmqiKG 1DYo3fgUKZBvll36lhtIuZoQ6Ejo6/Fjt+qf+PzyN86J1heKooSqrflDXywtrCKP2Qxa N+Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=iHEN9kc45gljEplO2kuZQ7nfe3wUFsFu19WO1aRZ4ZY=; b=SZYHS9bLx8c8zXRMmav3bJ2rVGBt5DiO1VK5sqZpmpbisyaqAnclwBkxRSuktSBF/v s+H+at6BFbbKEwjO0jDz1GPdm5L3DOgza1gMBYedLtJXH+DXs/AaCs+9xyW4t19Lf8ea E3Qc2uUH366MfAvyCVEwgUFxUr7521po4pKj/xUwVVCzkwpnELAqxAfcx+aKAjKBDeu4 FRdCGC6kDDXvMewQGI3gerTBTFgIRJFVqp2O6Q/ZAhH3USrMubzdfdMuNgOm0jv9q6+q 99mNHWALucPwYMmd08bNKiZIuoZS/HmOSNox0Kp6peclVTLh1G+gx9qHzmH9d8otlx35 8QkQ== 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 z19-20020a17090acb1300b002449259314esi5312679pjt.158.2023.04.07.19.54.13; Fri, 07 Apr 2023 19:54:27 -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 S229847AbjDHCBe (ORCPT + 99 others); Fri, 7 Apr 2023 22:01:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjDHCBc (ORCPT ); Fri, 7 Apr 2023 22:01:32 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 622A2E06C; Fri, 7 Apr 2023 19:01:31 -0700 (PDT) Received: from dggpemm500006.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Ptdfw3sYTznYd8; Sat, 8 Apr 2023 09:58:00 +0800 (CST) Received: from [10.174.178.55] (10.174.178.55) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sat, 8 Apr 2023 10:01:28 +0800 Subject: Re: [PATCH -next v3 2/2] docs: kdump: Update the crashkernel description for riscv To: Chen Jiahao , , , , CC: , , , , , , , , , , References: <20230406220206.3067006-1-chenjiahao16@huawei.com> <20230406220206.3067006-3-chenjiahao16@huawei.com> From: "Leizhen (ThunderTown)" Message-ID: Date: Sat, 8 Apr 2023 10:01:28 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20230406220206.3067006-3-chenjiahao16@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.55] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.3 required=5.0 tests=NICE_REPLY_A, 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 On 2023/4/7 6:02, 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. Reviewed-by: Zhen Lei > > 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. > -- Regards, Zhen Lei