Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp612970pxk; Thu, 3 Sep 2020 08:15:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXeAf4YEgd1JASdtTnM71+eA7iLLWqnFfEhLU0gg0dZeXx5XxRA6Kd/mgeratILk2YO+Ie X-Received: by 2002:a17:906:6a52:: with SMTP id n18mr2608311ejs.58.1599146104218; Thu, 03 Sep 2020 08:15:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599146104; cv=none; d=google.com; s=arc-20160816; b=Pu/5QBDKZkmF/nSfKyc/d5UO7DmqXzTgIkweIqyTPKHOn8e0R406JIz9tzNw8jelH5 nOqbstlqckXvlSp+RIhX2kiRct8teNQ7nTZa2KbClURDAvSs5qNtHAPg3Tyk25t7dKvp gu7LOuoRzbBER7ZG2isFs1PfVUzTCTWBFG8zd2dj0Cv5nLtg4m7vB6PYGlw23UWVC1G2 BE3Lnj+3xbgKztML9nbBoXNjIwDJlIHUVMsqBLDa2urzWiX00y6SRNOrSf5J1d0OvePI kkqH+6SUSm3GBji3cZ/6A51tDlUWPVc3h9zisS8rTQWGPYqrGlYBupOMswWa+RKfth0k 8I0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=GH0UZTOTNFTbtXOES88o8ul77k+XIVbJEeuEP43Cbp4=; b=ALamgnV32s6aHO3TIYzI2lr3hCqU9rCmh+LYJ3uEoMpHTLbRoMK9ihUZy/HF8DQNh8 6dxM9+eYFEfzNA94OlEJsWBed4E0GavcOIydlKyMvlnBy2eLyRyBudoN6Ty8Pjq3ql/W jqwlBon48T1pQaeVrykjEaRSmsJkHvdFYXuh6gRxQ5SoJOHH/dI5g+nKJU8vO5obEhqO RDt4doH3iZEtGdMb1YyLO1ErYMF0oUuUpwK/sK+2MU7J6FK0DfnyVc/sLzvMjmfeMcCy geb22foDVAZJtp5qt5YiojDAuFlDSdIprCoQwJ76L0aVMJqiiRSQA6w9h6JKzKDp1Nly nbrA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lc19si2321191ejb.192.2020.09.03.08.14.38; Thu, 03 Sep 2020 08:15:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728776AbgICMDm (ORCPT + 99 others); Thu, 3 Sep 2020 08:03:42 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:55842 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728718AbgICL4W (ORCPT ); Thu, 3 Sep 2020 07:56:22 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 491F1DC3B52B4ED5FE93; Thu, 3 Sep 2020 19:56:21 +0800 (CST) Received: from [127.0.0.1] (10.174.176.220) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Thu, 3 Sep 2020 19:56:10 +0800 Subject: Re: [PATCH v11 5/5] kdump: update Documentation about crashkernel To: Catalin Marinas References: <20200801130856.86625-1-chenzhou10@huawei.com> <20200801130856.86625-6-chenzhou10@huawei.com> <20200902171341.GC16673@gaia> CC: , , , , , , , , , , , , , , , , , , , , , From: chenzhou Message-ID: <84bb1cbb-c19e-9006-07b5-044eac5ecd4f@huawei.com> Date: Thu, 3 Sep 2020 19:56:09 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20200902171341.GC16673@gaia> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.176.220] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/9/3 1:13, Catalin Marinas wrote: > On Sat, Aug 01, 2020 at 09:08:56PM +0800, Chen Zhou wrote: >> diff --git a/Documentation/admin-guide/kdump/kdump.rst b/Documentation/admin-guide/kdump/kdump.rst >> index 2da65fef2a1c..4b58f97351d5 100644 >> --- a/Documentation/admin-guide/kdump/kdump.rst >> +++ b/Documentation/admin-guide/kdump/kdump.rst >> @@ -299,7 +299,15 @@ Boot into System Kernel >> "crashkernel=64M@16M" tells the system kernel to reserve 64 MB of memory >> starting at physical address 0x01000000 (16MB) for the dump-capture kernel. >> >> - On x86 and x86_64, use "crashkernel=64M@16M". >> + On x86 use "crashkernel=64M@16M". >> + >> + On x86_64, use "crashkernel=X" to select a region under 4G first, and >> + fall back to reserve region above 4G. >> + We can also use "crashkernel=X,high" to select a region above 4G, which >> + also tries to allocate at least 256M below 4G automatically and >> + "crashkernel=Y,low" can be used to allocate specified size low memory. >> + Use "crashkernel=Y@X" if you really have to reserve memory from specified >> + start address X. >> >> On ppc64, use "crashkernel=128M@32M". >> >> @@ -316,8 +324,15 @@ Boot into System Kernel >> kernel will automatically locate the crash kernel image within the >> first 512MB of RAM if X is not given. >> >> - On arm64, use "crashkernel=Y[@X]". Note that the start address of >> - the kernel, X if explicitly specified, must be aligned to 2MiB (0x200000). >> + On arm64, use "crashkernel=X" to try low allocation in ZONE_DMA, and >> + fall back to high allocation if it fails. And go for high allocation >> + directly if the required size is too large. If crash_base is outside > I wouldn't mention crash_base in the admin guide. That's an > implementation detail really and admins are not supposed to read the > source code to make sense of the documentation. ZONE_DMA is also a > kernel internal, so you'd need to define what it is for arm64. At least > the DMA and DMA32 zones are printed during kernel boot. Ok, i will fix this in next version. > >> + ZONE_DMA, try to allocate at least 256M in ZONE_DMA automatically. >> + "crashkernel=Y,low" can be used to allocate specified size low memory. >> + For non-RPi4 platforms, change ZONE_DMA memtioned above to ZONE_DMA32. >> + Use "crashkernel=Y@X" if you really have to reserve memory from >> + specified start address X. Note that the start address of the kernel, >> + X if explicitly specified, must be aligned to 2MiB (0x200000).