• Linus Torvalds's avatar
    Merge tag 'powerpc-5.2-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · a8282bf0
    Linus Torvalds authored
    Pull powerpc fixes from Michael Ellerman:
     "This is a frustratingly large batch at rc5. Some of these were sent
      earlier but were missed by me due to being distracted by other things,
      and some took a while to track down due to needing manual bisection on
      old hardware. But still we clearly need to improve our testing of KVM,
      and of 32-bit, so that we catch these earlier.
    
      Summary: seven fixes, all for bugs introduced this cycle.
    
       - The commit to add KASAN support broke booting on 32-bit SMP
         machines, due to a refactoring that moved some setup out of the
         secondary CPU path.
    
       - A fix for another 32-bit SMP bug introduced by the fast syscall
         entry implementation for 32-bit BOOKE. And a build fix for the same
         commit.
    
       - Our change to allow the DAWR to be force enabled on Power9
         introduced a bug in KVM, where we clobber r3 leading to a host
         crash.
    
       - The same commit also exposed a previously unreachable bug in the
         nested KVM handling of DAWR, which could lead to an oops in a
         nested host.
    
       - One of the DMA reworks broke the b43legacy WiFi driver on some
         people's powermacs, fix it by enabling a 30-bit ZONE_DMA on 32-bit.
    
       - A fix for TLB flushing in KVM introduced a new bug, as it neglected
         to also flush the ERAT, this could lead to memory corruption in the
         guest.
    
      Thanks to: Aaro Koskinen, Christoph Hellwig, Christophe Leroy, Larry
      Finger, Michael Neuling, Suraj Jitindar Singh"
    
    * tag 'powerpc-5.2-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
      KVM: PPC: Book3S HV: Invalidate ERAT when flushing guest TLB entries
      powerpc: enable a 30-bit ZONE_DMA for 32-bit pmac
      KVM: PPC: Book3S HV: Only write DAWR[X] when handling h_set_dawr in real mode
      KVM: PPC: Book3S HV: Fix r3 corruption in h_set_dabr()
      powerpc/32: fix build failure on book3e with KVM
      powerpc/booke: fix fast syscall entry on SMP
      powerpc/32s: fix initial setup of segment registers on secondary CPU
    a8282bf0
book3s_hv_builtin.c 21.9 KB