public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] armv8: fsl-layerscape: use previous aligned address for gic_lpi_base
@ 2022-02-21 10:16 Wasim Khan
  2022-02-21 10:24 ` Michael Walle
  0 siblings, 1 reply; 5+ messages in thread
From: Wasim Khan @ 2022-02-21 10:16 UTC (permalink / raw)
  To: sjg, priyanka.jain, michael, treding, twarren, V.Sethi; +Cc: u-boot, Wasim Khan

From: Wasim Khan <wasim.khan@nxp.com>

Memory after gd->arch.resv_ram is reserved for MC block.
Use ALIGN_DOWN to avoid updating MC block for unaligned
address.

Signed-off-by: Wasim Khan <wasim.khan@nxp.com>
---
 arch/arm/cpu/armv8/fsl-layerscape/soc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/soc.c b/arch/arm/cpu/armv8/fsl-layerscape/soc.c
index d3a5cfaac1..746c93cf51 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/soc.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/soc.c
@@ -65,7 +65,7 @@ int ls_gic_rd_tables_init(void *blob)
 	u64 gic_lpi_base;
 	int ret;
 
-	gic_lpi_base = ALIGN(gd->arch.resv_ram - GIC_LPI_SIZE, SZ_64K);
+	gic_lpi_base = ALIGN_DOWN(gd->arch.resv_ram - GIC_LPI_SIZE, SZ_64K);
 	ret = fdt_add_resv_mem_gic_rd_tables(blob, gic_lpi_base, GIC_LPI_SIZE);
 	if (ret)
 		return ret;
-- 
2.25.1


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

end of thread, other threads:[~2022-02-25 13:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-21 10:16 [PATCH] armv8: fsl-layerscape: use previous aligned address for gic_lpi_base Wasim Khan
2022-02-21 10:24 ` Michael Walle
2022-02-21 10:52   ` Marc Zyngier
2022-02-21 13:22     ` Wasim Khan (OSS)
2022-02-25 13:40       ` Z.Q. Hou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox