Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp599517pxk; Wed, 2 Sep 2020 09:44:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0hKl1AG9DkNDvSkTlD5CJbgNiDHDmLtx30aJqamR8aTUydzRcE+l0Bl2lNp4lIhQLxRJO X-Received: by 2002:a17:906:d787:: with SMTP id pj7mr868289ejb.340.1599065063396; Wed, 02 Sep 2020 09:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599065063; cv=none; d=google.com; s=arc-20160816; b=sKCYs8jqlnT1Jxg0olXkYTItVtLCMoWsKZmB3N9v3CUZCAxHo77SJaWMyQoO2JAtl0 KDQMKpPHfG24QsDR1xHGVshQ3XpiBIJClwhgvcc49mwT8NisHbwbABMNl0sruwI8FBK7 3IJxLraK8mIJIAUwCEBxuOCnfNbibLLnjEcqcj3fx6RRXXVB07+I4fDAecEWdtgeYoz0 UxjySiGJZ8lUF8UR+rQ/E41MnvnDQjP59/EbQ2c2AL09o1hnXuZj8Dm6KgWhgJAh6/5S ocOmsXempwForZ0DDk+JDtDjQ/A6Hm1oE/fw71+UTwDvk02RnfovdeBsGuRmDxWp5u6v Wzhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Nxxhk+np9+IodqChVifh8ZZgz4YZYJB+Z+ZDD5x8soc=; b=Nl1cOrqLPu96srh6L+XHz0UKnAElTSoYjZEDR+yP/igwOASv8Yx1Eg3t1Pijip9jAu 8t0Ky0qCIj+Rkd5s3NWqsiYnQaUE5SUCC8je09HBM1DqNg861fZJrwMPNRi0vh9vhg6d pBYQCAWCE4d10pu09eBXVOMlhhoAHmmWQx2eP/ijTPPOxYmmgu5c/qzq4aqtfjmQSLNu XWH4getrWJvL96c9DJxNP1zVePhqGUuQ761CfdWYRnY9iaxoumX/D+PJXtryEJ7OllP9 r346Sy4KvbsBNPhVrrbK0sOR7BgxLLP5kiuCsQjrjavXhRR9igYLpYglMorMOOB/kU11 t+5Q== 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 s23si2728184edi.84.2020.09.02.09.43.59; Wed, 02 Sep 2020 09:44:23 -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 S1727088AbgIBQnC (ORCPT + 99 others); Wed, 2 Sep 2020 12:43:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:47514 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726323AbgIBQm7 (ORCPT ); Wed, 2 Sep 2020 12:42:59 -0400 Received: from gaia (unknown [46.69.195.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8A10420684; Wed, 2 Sep 2020 16:42:54 +0000 (UTC) Date: Wed, 2 Sep 2020 17:42:52 +0100 From: Catalin Marinas To: chenzhou Cc: Dave Young , 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: <20200902164251.GA16673@gaia> 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> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 18, 2020 at 03:07:04PM +0800, chenzhou wrote: > 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)"; Since CRASH_ADDR_LOW_MAX is defined as arm64_dma32_phys_limit and such limit is always greater than memstart_addr, this additional check doesn't do anything. See my other reply on how ZONE_DMA32 is created on arm64. -- Catalin