ARM: 9420/1: smp: Fix SMP for xip kernels
authorHarith G <harith.g@alifsemi.com>
Wed, 18 Sep 2024 05:57:53 +0000 (06:57 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 12 Nov 2024 16:38:47 +0000 (16:38 +0000)
commit9e9b0cf9319b4db143014477b0bc4b39894248f1
tree8ff9b5e969b58ffc963010d9419ac1adb797f3e2
parented6cbe6e5563452f305e89c15846820f2874e431
ARM: 9420/1: smp: Fix SMP for xip kernels

Fix the physical address calculation of the following to get smp working
on xip kernels.
- secondary_data needed for secondary cpu bootup.
- secondary_startup address passed through psci.
- identity mapped code region needed for enabling mmu for secondary cpus.

Signed-off-by: Harith George <harith.g@alifsemi.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/head.S
arch/arm/kernel/psci_smp.c
arch/arm/mm/idmap.c