[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200902164251.GA16673@gaia>
Date: Wed, 2 Sep 2020 17:42:52 +0100
From: Catalin Marinas <catalin.marinas@....com>
To: chenzhou <chenzhou10@...wei.com>
Cc: Dave Young <dyoung@...hat.com>, will@...nel.org,
james.morse@....com, tglx@...utronix.de, mingo@...hat.com,
bhe@...hat.com, corbet@....net, John.P.donnelly@...cle.com,
prabhakar.pkin@...il.com, bhsharma@...hat.com, horms@...ge.net.au,
robh+dt@...nel.org, arnd@...db.de, nsaenzjulienne@...e.de,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
kexec@...ts.infradead.org, linux-doc@...r.kernel.org,
guohanjun@...wei.com, xiexiuqi@...wei.com, huawei.libin@...wei.com,
wangkefeng.wang@...wei.com
Subject: Re: [PATCH v11 5/5] kdump: update Documentation about crashkernel
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
Powered by blists - more mailing lists