Skip to content

Commit 9797e35

Browse files
committed
ARM: shmobile: rcar-gen2: Reserve boot area when SMP is enabled
CPU core bringup on R-Car Gen2 SoCs uses the Cortex-A7/A15 Boot Address Register to specify the boot area of the System CPU. With this enabled, when the System CPU accesses a physical address in the range from 0x0 to 0x3ffff, the top address bits are replaced by those specified in the SBAR register. Hence any device residing in the low 256 KiB of physical address space cannot be accessed. Prevent conflicts by reserving this memory region using request_mem_region(). Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/091150233acb0557a2ad3294d67b2adb6758670c.1693409184.git.geert+renesas@glider.be
1 parent 6b16953 commit 9797e35

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/arm/mach-shmobile/pm-rcar-gen2.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ void __init rcar_gen2_pm_init(void)
5252
struct resource res;
5353
int error;
5454

55+
if (!request_mem_region(0, SZ_256K, "Boot Area")) {
56+
pr_err("Failed to request boot area\n");
57+
return;
58+
}
59+
5560
for_each_of_cpu_node(np) {
5661
if (of_device_is_compatible(np, "arm,cortex-a15"))
5762
has_a15 = true;

0 commit comments

Comments
 (0)