]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix booting P9 hash with CONFIG_PPC_RADIX_MMU=N
authorMichael Neuling <mikey@neuling.org>
Wed, 24 May 2017 07:03:26 +0000 (17:03 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 25 May 2017 13:07:44 +0000 (23:07 +1000)
commitee54e096332f6b480ce85a596eb20e194e964d2d
treea94621575b6942491a3dbc5a32a4240de999866d
parent05bc6fcdf0823f565f30017a047a22e76b95e166
powerpc: Fix booting P9 hash with CONFIG_PPC_RADIX_MMU=N

Currently if you disable CONFIG_PPC_RADIX_MMU you'll crash on boot on
a P9. This is because we still set MMU_FTR_TYPE_RADIX via
ibm,pa-features and MMU_FTR_TYPE_RADIX is what's used for code patching
in much of the asm code (ie. slb_miss_realmode)

This patch fixes the problem by stopping MMU_FTR_TYPE_RADIX from being
set from ibm.pa-features.

We may eventually end up removing the CONFIG_PPC_RADIX_MMU option
completely but until then this fixes the issue.

Fixes: 09a07c1a294e ("powerpc/mm/radix: Use firmware feature to enable Radix MMU")
Cc: stable@vger.kernel.org # v4.7+
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/prom.c