Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp412235pxa; Wed, 19 Aug 2020 05:07:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/hCiinpsaGV/aMXFmb2Xte0AQ+UXaxB0L0LytRG/fyYvJ4I+YJBOuPyRfQJlJykNhlKT/ X-Received: by 2002:a17:906:9609:: with SMTP id s9mr24447710ejx.232.1597838851134; Wed, 19 Aug 2020 05:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597838851; cv=none; d=google.com; s=arc-20160816; b=iPI/ywdUyUMV5FKSI0oghf7v/f6vst7vfsXyIckearvPVAl1J9krOpTBVc6g/tCkFx OOzrq3XrNoBRKwWUJCVdHDpLByUReoDKyKL97NTDVUU0ZTIT6GqNGI7x92szdsojhdzw clOnFkd6dhvPfrw8O649UTrug5K/kT+K80jsWbZ1HOfbTVdJWmGXROB8DhiplvmjGlLL NX1P9J7U/5xvRZdIpFdQP2l/kgiMr8mzML7+GHIwZ8Udm+woKH2v3aRuXyHJhigzaHtg jT0A7vL4t8er62vX8aUKm+MusXQLaKHFczMFPL5LbV8lIr+lB73vxAbR3iHGdnZIiQZq GeVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=m9+0bAxLuUQbDhStzV9Q7LQwgzKpdo+DUCTWFOEtQPc=; b=FnBBrZBeFVftN8Pdbpxq+dlfzazYMqIWxaM5yR9nJNElqGx39EpUzSvnjqBm0RBEIE smZ+33y6kR3R9CSZKXCWE/Q/QkFTes1WSv3wbLVAhvt1hdmI5D6byj0RENV6J8BdE2cP qCm3cx3Imf+64MsnSDSfvAEYBeiqfh35hB5r3Gdjl1TJEnrvfirvDU62XJTzDBwZCLhU 457otSSR23Is+gBwbn4457aK3siOWtwN+XVbKIZ3C33S/teHbV7hslog64qFUHV97Hgt Fa/kiVurB1cWzBBCjqx7DeJ//Gk+jfnmB7VE3yIkhxKXKVyivIccnaISIg3XvZy8OubL VzQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=N89EMM+D; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si14751519eja.31.2020.08.19.05.07.06; Wed, 19 Aug 2020 05:07:31 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=N89EMM+D; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728191AbgHSMD6 (ORCPT + 99 others); Wed, 19 Aug 2020 08:03:58 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:26330 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728358AbgHSMDk (ORCPT ); Wed, 19 Aug 2020 08:03:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597838618; 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=m9+0bAxLuUQbDhStzV9Q7LQwgzKpdo+DUCTWFOEtQPc=; b=N89EMM+Df1NfsAsDtGUcT8iRMU8piiaEhhvDKpiicSe1fCElL8tu9sbyCq9l3ShYfBjSoh uqFMYi3sqFAN9vBKCYH77qd7TWrHx5EgAxAp6BCjlGm+GNkDzrhyWNdPZKm5NPPY7T7IP+ 0aFKlm/yKU1V8PamcAPzoDRdqxBMI2c= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-569-9z5gyIZuP6iSl37NVFxRVQ-1; Wed, 19 Aug 2020 08:03:16 -0400 X-MC-Unique: 9z5gyIZuP6iSl37NVFxRVQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E754A801AE5; Wed, 19 Aug 2020 12:03:12 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-13-194.pek2.redhat.com [10.72.13.194]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D5C947A421; Wed, 19 Aug 2020 12:03:04 +0000 (UTC) Date: Wed, 19 Aug 2020 20:03:01 +0800 From: Dave Young To: chenzhou Cc: catalin.marinas@arm.com, will@kernel.org, james.morse@arm.com, tglx@linutronix.de, mingo@redhat.com, bhe@redhat.com, corbet@lwn.net, John.P.donnelly@oracle.com, prabhakar.pkin@gmail.com, bhsharma@redhat.com, horms@verge.net.au, robh+dt@kernel.org, arnd@arndb.de, nsaenzjulienne@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kexec@lists.infradead.org, linux-doc@vger.kernel.org, guohanjun@huawei.com, xiexiuqi@huawei.com, huawei.libin@huawei.com, wangkefeng.wang@huawei.com Subject: Re: [PATCH v11 5/5] kdump: update Documentation about crashkernel Message-ID: <20200819120301.GA13727@dhcp-128-65.nay.redhat.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2e6aebf9-3765-5d8c-933c-698442db1d52@huawei.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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:) > > 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 > > > > > > . > > > >