diff options
author | Nikhil Gupta <nikhil.gupta@nxp.com> | 2022-01-28 09:53:21 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-03-16 14:26:47 +0100 |
commit | 0fc4186cd5a69e8fb7042b88c8ce4beadbb0d809 (patch) | |
tree | f72e81375523893bb217f9c88ff26a9183263fca | |
parent | 1ed68d776246f167aee9cd79f63f089c40a5e2a3 (diff) | |
download | linux-stable-0fc4186cd5a69e8fb7042b88c8ce4beadbb0d809.tar.gz linux-stable-0fc4186cd5a69e8fb7042b88c8ce4beadbb0d809.tar.bz2 linux-stable-0fc4186cd5a69e8fb7042b88c8ce4beadbb0d809.zip |
of/fdt: move elfcorehdr reservation early for crash dump kernel
[ Upstream commit 132507ed04ce0c5559be04dd378fec4f3bbc00e8 ]
elfcorehdr_addr is fixed address passed to Second kernel which may be conflicted
with potential reserved memory in Second kernel,so fdt_reserve_elfcorehdr() ahead
of fdt_init_reserved_mem() can relieve this situation.
Signed-off-by: Nikhil Gupta <nikhil.gupta@nxp.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220128042321.15228-1-nikhil.gupta@nxp.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/of/fdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 7e868e5995b7..f66abb496ed1 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -644,8 +644,8 @@ void __init early_init_fdt_scan_reserved_mem(void) } fdt_scan_reserved_mem(); - fdt_init_reserved_mem(); fdt_reserve_elfcorehdr(); + fdt_init_reserved_mem(); } /** |