diff options
author | Matthias Schiffer <matthias.schiffer@ew.tq-group.com> | 2024-01-24 13:38:38 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-02-23 11:24:58 +0300 |
commit | 8631837dbf8bc29546685ccc2f9dcef8aea9a4da (patch) | |
tree | 207b83e92864d78475e7a0cd9ec30db244907f91 /mm/sparse.c | |
parent | 0040386b0b7187bd9c9665ac8b6dad93420bce79 (diff) | |
download | linux-8631837dbf8bc29546685ccc2f9dcef8aea9a4da.tar.xz |
powerpc/6xx: set High BAT Enable flag on G2_LE cores
[ Upstream commit a038a3ff8c6582404834852c043dadc73a5b68b4 ]
MMU_FTR_USE_HIGH_BATS is set for G2_LE cores and derivatives like e300cX,
but the high BATs need to be enabled in HID2 to work. Add register
definitions and add the needed setup to __setup_cpu_603.
This fixes boot on CPUs like the MPC5200B with STRICT_KERNEL_RWX enabled
on systems where the flag has not been set by the bootloader already.
Fixes: e4d6654ebe6e ("powerpc/mm/32s: rework mmu_mapin_ram()")
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240124103838.43675-1-matthias.schiffer@ew.tq-group.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'mm/sparse.c')
0 files changed, 0 insertions, 0 deletions