]> git.dujemihanovic.xyz Git - linux.git/commit
powerpc/kuap: Use MMU_FTR_KUAP on all and refactor disabling kuap
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 11 Jul 2023 15:59:18 +0000 (17:59 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 2 Aug 2023 12:22:18 +0000 (22:22 +1000)
commit26e041208291bfdea1cb9e26bc94a0f9499efe15
tree11248d52f17a6dd6f7100624681af381f6069758
parent4589a2b7894d4266380b65e13291f609cf19dd19
powerpc/kuap: Use MMU_FTR_KUAP on all and refactor disabling kuap

All but book3s/64 use a static branch key for disabling kuap.
book3s/64 uses an mmu feature.

Refactor all targets to use MMU_FTR_KUAP like book3s/64.

For PPC32 that implies updating mmu features fixups once KUAP
has been initialised.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/6b3d7c977bad73378ea368bc6818e9c94ea95ab0.1689091022.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/book3s/32/kup.h
arch/powerpc/include/asm/book3s/64/kup.h
arch/powerpc/include/asm/kup.h
arch/powerpc/include/asm/nohash/32/kup-8xx.h
arch/powerpc/include/asm/nohash/kup-booke.h
arch/powerpc/kernel/cputable.c
arch/powerpc/mm/book3s32/kuap.c
arch/powerpc/mm/init_32.c
arch/powerpc/mm/nohash/kup.c