All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm: bootm: Disable LMB reservation for command line and board info on arm64
@ 2021-05-29 11:34 Marek Vasut
  2021-07-10  1:08 ` Tom Rini
  2021-07-20  9:08 ` Jan Kiszka
  0 siblings, 2 replies; 6+ messages in thread
From: Marek Vasut @ 2021-05-29 11:34 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut, Hai Pham, Simon Goldschmidt, Stephen Warren, Tom Rini

On arm64, board info is not applicable and kernel command line patched into
the DT, so the LMB reservation here makes no sense anymore. On legacy arm32,
this might still be necessary on systems which do not use DT or use legacy
ATAGS. Disable this LMB reservation on arm64.

This also permits Linux DT to specify reserved memory node at address close
to the end of DRAM bank, i.e. overlaping with U-Boot location. Since after
boot, U-Boot will be no more, this is OK.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Hai Pham <hai.pham.ud@renesas.com>
Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Cc: Stephen Warren <swarren@nvidia.com>
Cc: Tom Rini <trini@konsulko.com>
---
 arch/arm/lib/bootm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index f60ee3a7e6..23b99a541c 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -43,6 +43,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 static struct tag *params;
 
+#ifndef CONFIG_ARM64
 static ulong get_sp(void)
 {
 	ulong ret;
@@ -86,6 +87,7 @@ void arch_lmb_reserve(struct lmb *lmb)
 		break;
 	}
 }
+#endif
 
 __weak void board_quiesce_devices(void)
 {
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-07-28 22:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-29 11:34 [PATCH] arm: bootm: Disable LMB reservation for command line and board info on arm64 Marek Vasut
2021-07-10  1:08 ` Tom Rini
2021-07-20  9:08 ` Jan Kiszka
2021-07-20 23:34   ` Marek Vasut
2021-07-21  6:08     ` Jan Kiszka
2021-07-28 22:09       ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.