arch: arm: mach-k3: Delete tifs node in DT fixup
Subsystems (2)
PATCH 1/1 arch: arm: mach-k3: Delete tifs node in DT fixup
Delete tifs DT node as part of fixup.
TISCI API reported msmc_size, does not include 64KB reserved size for tifs aka MSMC comms memory, see documentation[0].
As part of fixup, original code uses TISCI API reported msmc_size as size for SRAM DT node.
tifs node is similar to l3-cache, which should hold address above msmc_size, and should be deleted before passing control to OS.
---
RFC was sent to k.org with https://lore.kernel.org/all/[email protected]/
So planning to go ahead with option 1.
Changelog:
Changes in v3:
- Collected R/B of v2
- Updated commit message typo
Changes since v2:
- moved tifs check above l3 as
v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/
arch/arm/mach-k3/common_fdt.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-k3/common_fdt.c +1 -0
@@ -65,6 +65,7 @@ static int fdt_fixup_msmc_ram(void *blob, char *parent_path, char *node_name) subnode, addr, size);if (addr + size > msmc_size || !strncmp (fdt_get_name (blob, subnode, &len),"sysfw" ,5 ) || + !strncmp (fdt_get_name (blob, subnode, &len),"tifs" ,4 ) || !strncmp (fdt_get_name (blob, subnode, &len),"l3cache" ,7 )) {fdt_del_node (blob, subnode);debug ("%s: deleting subnode %d\n" , __func__, subnode);
Signature · 1 line
2.34.1
Quoted 9 lines · Udit Kumar
Delete tifs DT node as part of fixup.
TISCI API reported
msmc_size, does not include 64KB reserved size for tifs aka MSMC comms memory, see documentation[0].As part of fixup, original code uses TISCI API reported
msmc_sizeas size for SRAM DT node.[...]
Applied to u-boot/master, thanks!
Signature · 1 line
Tom