Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp867818pxa; Thu, 27 Aug 2020 19:00:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVHCWJIL22ul7KB1D0wChQzuEQx9hj1hbp/jIsQQUiU8sxzg5UR0JvgLMQfyJ7hQupeQs4 X-Received: by 2002:a17:906:f142:: with SMTP id gw2mr10157545ejb.90.1598580027434; Thu, 27 Aug 2020 19:00:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598580027; cv=none; d=google.com; s=arc-20160816; b=agvmCOmEdHNsR+EK0XlQWweK8zdK0mfHtOFKituKf8MKoRRei+VNV1UMm2mqZeBsIb FT6LUIdS6j6J4v4HJQn3wvQwEO8LiTNHxB/1y6ZJaCiITldwxLpX1BUsjAaJu4hK82Fv 8RSq2QNsOmldViF/PcRm01wZsJRxHPU/i5ydbyArIkyvdansmsn9XFEYz1zl61d5HEDv aKX9cniF2lCtB0P/fjxeo39Hznz+ZZiVX4O0UJYD2MH9NLPgpuV79WZ9oljK7C2DRTO9 f9BZNtCObS3wt65UpAwRYuQDgglMzegtZm8iktUq5rYifEypoUP3iyUWnbLsWwCqhYXp MbYA== 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=nCbB12SwBJ1rUduh0cBEVhkBhAD4CzYtYAhF5/i9df4=; b=o0NPVBpDqvYfhd5uWsgRPYLh121aQhHhNeL2438LN9c+pJiX/gdCPryt5MH9A+IKMS tPh44Ogb3wu7+J28QhIf1uvI8qkgilWR9Zkmu2tEBaeslPzCwOhHglluuhY03b85q+8Q s/7O99OAgKNa1WIR0ImJtm0IL+ddCqukWOmkN9bILgzhlo+254UdlRso3QpmwU7I0Xpc 6HLEEc0EeLpFnIK5rSiW4YG49ytzShzLfHA7sg68O+4B0+NPWDTMRSj/Sjx65B8URmfZ 32ybGvvShpdrAEzj8UneNltQD8Isxf9xaObK57JqWagdeiuKR2iiRX/5yGuZs5Ay3616 zS+Q== 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 cw10si2635243edb.1.2020.08.27.19.00.04; Thu, 27 Aug 2020 19:00:27 -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 S1728292AbgH1B7e (ORCPT + 99 others); Thu, 27 Aug 2020 21:59:34 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:51654 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727124AbgH1B7e (ORCPT ); Thu, 27 Aug 2020 21:59:34 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id AD070D3F16C2953E7244; Fri, 28 Aug 2020 09:59:31 +0800 (CST) Received: from [127.0.0.1] (10.174.176.220) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Fri, 28 Aug 2020 09:59:21 +0800 Subject: Re: [PATCH v11 5/5] kdump: update Documentation about crashkernel To: Dave Young , References: <20200801130856.86625-1-chenzhou10@huawei.com> <20200801130856.86625-6-chenzhou10@huawei.com> <20200808100239.GB60590@dhcp-128-65.nay.redhat.com> <96d0da23-d484-7f66-1680-07b4b5984831@huawei.com> <20200810060355.GB6988@dhcp-128-65.nay.redhat.com> <2e6aebf9-3765-5d8c-933c-698442db1d52@huawei.com> <20200819120301.GA13727@dhcp-128-65.nay.redhat.com> CC: , , , , , , , , , , , , , , , , , , , , From: chenzhou Message-ID: Date: Fri, 28 Aug 2020 09:59:19 +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: <20200819120301.GA13727@dhcp-128-65.nay.redhat.com> 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 Hi Catalin, On 2020/8/19 20:03, Dave Young wrote: > On 08/18/20 at 03:07pm, chenzhou wrote: >> >> On 2020/8/10 14:03, Dave Young wrote: >>> Hi, >>> >>>>> Previously I remember we talked about to use similar logic as X86, but I >>>>> remember you mentioned on some arm64 platform there could be no low >>>>> memory at all. Is this not a problem now for the fallback? Just be >>>>> curious, thanks for the update, for the common part looks good. >>>> Hi Dave, >>>> >>>> Did you mean this discuss: https://lkml.org/lkml/2019/12/27/122? >>> I meant about this reply instead :) >>> https://lkml.org/lkml/2020/1/16/616 >> Hi Dave, >> >> Sorry for not repley in time, I was on holiday last week. > Hi, no problem, thanks for following up. > >> The platform James mentioned may exist for which have no devices and need no low memory. >> For our arm64 server platform, there are some devices and need low memory. >> >> I got it. For the platform with no low memory, reserving crashkernel will always fail. >> How about like this: > I think the question should leave to Catalin or James, I have no > suggestion about this:) Any suggestions about this? Thanks, Chen Zhou > >> diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c >> index a8e34d97a894..4df18c7ea438 100644 >> --- a/arch/arm64/mm/init.c >> +++ b/arch/arm64/mm/init.c >> @@ -147,7 +147,7 @@ static void __init reserve_crashkernel(void) >> } >> memblock_reserve(crash_base, crash_size); >> >> - if (crash_base >= CRASH_ADDR_LOW_MAX) { >> + if (memstart_addr < CRASH_ADDR_LOW_MAX && crash_base >= CRASH_ADDR_LOW_MAX) { >> const char *rename = "Crash kernel (low)"; >> >> if (reserve_crashkernel_low()) { >> >> >> Thanks, >> Chen Zhou >> >>> Thanks >>> Dave >>> >>> >>> . >>> >> > > . >