Skip to content

Commit 79b4686

Browse files
aikmpe
authored andcommitted
powerpc/init: Do not advertise radix during client-architecture-support
Currently the pseries kernel advertises radix MMU support even if the actual support is disabled via the CONFIG_PPC_RADIX_MMU option. This adds a check for CONFIG_PPC_RADIX_MMU to avoid advertising radix to the hypervisor. Suggested-by: Paul Mackerras <paulus@ozlabs.org> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent bde709a commit 79b4686

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/powerpc/kernel/prom_init.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,8 @@ static void __init prom_check_platform_support(void)
11111111
}
11121112
}
11131113

1114-
if (supported.radix_mmu && supported.radix_gtse) {
1114+
if (supported.radix_mmu && supported.radix_gtse &&
1115+
IS_ENABLED(CONFIG_PPC_RADIX_MMU)) {
11151116
/* Radix preferred - but we require GTSE for now */
11161117
prom_debug("Asking for radix with GTSE\n");
11171118
ibm_architecture_vec.vec5.mmu = OV5_FEAT(OV5_MMU_RADIX);

0 commit comments

Comments
 (0)