ARM: shmobile: rcar-gen2: Reserve boot area when SMP is enabled
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 31 Aug 2023 11:17:45 +0000 (13:17 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 27 Sep 2023 09:00:27 +0000 (11:00 +0200)
commit9797e3519c68fd75eb73eb959f8d11830261e7bb
treee35401f97d7ed056054c3c050a69a2825bfd4509
parent6b16953bec40e6fce853d2a69b8e738d61896568
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 <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/091150233acb0557a2ad3294d67b2adb6758670c.1693409184.git.geert+renesas@glider.be
arch/arm/mach-shmobile/pm-rcar-gen2.c