]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/6xx: set High BAT Enable flag on G2_LE cores
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Wed, 24 Jan 2024 10:38:38 +0000 (11:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:51:32 +0000 (09:51 +0100)
commit04375cb094bb249d49319075cd8368df25948a2f
treea12a64e96636f430b2a18e1682cfe7c4f65d9748
parent12b55cfdd3ab91c70cc945cf8b5f45984ea0abf1
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>
arch/powerpc/include/asm/reg.h
arch/powerpc/kernel/cpu_setup_6xx.S