arm-trusted-firmware/plat
Andre Przywara 42488064e1 fix(fdt): reserved memory: detect existing region
When fdt_add_reserved_memory() is called to add a memory region, we
unconditionally add a node for that region. However there might be an
existing region node in the DT already, or there might be an overlapping
region. The Linux kernel will complain in those cases.

Cover the simple case of the region already existing in the DT, as this
is what we actually see on the Allwinner H616: The mainline DT contains
a node reserving the memory for TF-A, in case the DT changed by TF-A
itself is not given to the kernel. Our code always adds a region, making
the kernel complain - albeit without further consequences.

Covering all cases of overlapping regions would blow up the generic DT
code too much, so just add a simple check for an existing region
completely containing the to-be-added region, simply bailing out in this
case.

This prevents the kernel warning for the Allwinner H616.

This code requires a function from fdt_wrappers.c, so we have to include
that file for platforms that use the fdt_add_reserved_memory() function
(rpi4 and versal2).

Change-Id: I98404889163316addbb42130d7177f1a21c8be06
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2024-08-30 11:14:55 +02:00
..
allwinner fix(allwinner): dtb: check for correct error condition 2024-07-31 10:58:55 +01:00
amd/versal2 fix(fdt): reserved memory: detect existing region 2024-08-30 11:14:55 +02:00
amlogic build: unify verbosity handling 2024-06-14 15:54:48 +00:00
arm Merge changes from topic "us_tc4_rebase_v2" into integration 2024-08-29 16:58:07 +02:00
aspeed/ast2700 fix(ast2700): fix mpll calculate statement 2024-08-01 14:55:15 +08:00
brcm refactor(console): consolidate console runtime switch 2024-05-08 15:50:58 +02:00
common feat(bl): add plat handler for image loading 2024-06-13 11:30:29 +02:00
hisilicon fix(poplar): use sysctrl module to reset 2024-08-28 08:34:48 +02:00
imx build: consolidate directory creation rules 2024-07-22 09:41:30 +00:00
intel/soc Merge "fix(intel): software workaround for bridge timeout" into integration 2024-08-28 08:37:23 +02:00
marvell build: consolidate directory creation rules 2024-07-22 09:41:30 +00:00
mediatek feat(mt8188): update SVP region ID protection flow 2024-08-15 14:55:36 +08:00
nuvoton fix(nuvoton): prevent changing clock frequency 2024-03-26 16:44:07 +02:00
nvidia/tegra refactor(cm): convert el1-ctx assembly offset entries to c structure 2024-07-26 17:08:12 +01:00
nxp Merge changes from topic "nxp-drivers/add-linflex-clk" into integration 2024-08-22 15:09:16 +02:00
qemu Merge "feat(handoff): fix register convention r1/x1 value on transfer list" into integration 2024-07-24 20:04:53 +02:00
qti Merge changes from topic "clean-up-errata-compatibility" into integration 2024-08-27 16:23:58 +02:00
renesas feat(rcar3): populate kaslr-seed in next stage DT 2024-07-06 17:58:00 +02:00
rockchip feat(rk3588): support SCMI for clock/reset domain 2024-08-13 15:45:37 +08:00
rpi fix(fdt): reserved memory: detect existing region 2024-08-30 11:14:55 +02:00
socionext build: unify verbosity handling 2024-06-14 15:54:48 +00:00
st feat(stm32mp2): load fw-config file 2024-08-12 15:54:52 +02:00
ti/k3 Revert "fix(ti): do not take system power reference in bl31_platform_setup()" 2024-02-05 10:45:48 +05:30
xilinx Merge "fix(zynqmp): handle secure SGI at EL1 for OP-TEE" into integration 2024-08-28 09:14:38 +02:00