projects/linux·commit 2fe1e8a7

Merge tag 'powerpc-4.10-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux

2fe1e8a7 · Linus Torvalds <[email protected]> · 2017-02-17 09:58:32 -08:00

Pull powerpc fix from Michael Ellerman:
 "One fix from Paul: we can not use the radix MMU under a hypervisor for
  now.

  Although the code checked if the processor supports radix, that is not
  sufficient"

* tag 'powerpc-4.10-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
  powerpc/64: Disable use of radix under a hypervisor
Commit
2fe1e8a7b2f4dcac3fcb07ff06b0ae7396201fd6
Parents
a0d5ef45 · 3f91a89d

Merge commit. Changes below are compared with the first parent: a0d5ef45.

Changes

1 files changed · +2 −1

FileStatusAddDelContent
arch/powerpc/mm/init_64.cmodified+2−1View file

arch/powerpc/mm/init_64.c

View file
diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c
index 93abf8a..8e15880 100644
--- a/arch/powerpc/mm/init_64.c
+++ b/arch/powerpc/mm/init_64.c
@@ -347,7 +347,8 @@ early_param("disable_radix", parse_disable_radix);
void __init mmu_early_init_devtree(void)
{
/* Disable radix mode based on kernel command line. */
- if (disable_radix)
+ /* We don't yet have the machinery to do radix as a guest. */
+ if (disable_radix || !(mfmsr() & MSR_HV))
cur_cpu_spec->mmu_features &= ~MMU_FTR_TYPE_RADIX;
if (early_radix_enabled())