From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Fri, 10 Dec 2021 10:43:15 -0600 From: Rob Herring Subject: Re: [PATCH v17 09/10] of: fdt: Add memory for devices by DT property "linux,usable-memory-range" Message-ID: References: <20211210065533.2023-1-thunder.leizhen@huawei.com> <20211210065533.2023-10-thunder.leizhen@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211210065533.2023-10-thunder.leizhen@huawei.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Zhen Lei Cc: linux-kernel@vger.kernel.org, Borislav Petkov , x86@kernel.org, Randy Dunlap , Feng Zhou , Catalin Marinas , linux-doc@vger.kernel.org, Kefeng Wang , Will Deacon , Chen Zhou , Eric Biederman , Rob Herring , "H . Peter Anvin" , Frank Rowand , kexec@lists.infradead.org, Baoquan He , Jonathan Corbet , linux-arm-kernel@lists.infradead.org, Dave Young , devicetree@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Vivek Goyal On Fri, 10 Dec 2021 14:55:32 +0800, Zhen Lei wrote: > From: Chen Zhou > > When reserving crashkernel in high memory, some low memory is reserved > for crash dump kernel devices and never mapped by the first kernel. > This memory range is advertised to crash dump kernel via DT property > under /chosen, > linux,usable-memory-range = > > We reused the DT property linux,usable-memory-range and made the low > memory region as the second range "BASE2 SIZE2", which keeps compatibility > with existing user-space and older kdump kernels. > > Crash dump kernel reads this property at boot time and call memblock_add() > to add the low memory region after memblock_cap_memory_range() has been > called. > > Signed-off-by: Chen Zhou > Signed-off-by: Zhen Lei > Tested-by: Dave Kleikamp > --- > drivers/of/fdt.c | 33 +++++++++++++++++++++++---------- > 1 file changed, 23 insertions(+), 10 deletions(-) > Reviewed-by: Rob Herring _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec