[PATCH] powerpc: Set missing wakeup bit in LPCR on POWER9

Michael Ellerman mpe at ellerman.id.au
Mon Nov 21 21:19:04 AEDT 2016


Benjamin Herrenschmidt <benh at kernel.crashing.org> writes:

> There is a new bit, LPCR_PECEu0, which controls wakeup from STOP
> states on Hypervisor Virtualization Interrupts (which happen to
> also be all external interrupts in host or bare metal mode).
>
> It needs to be set or we will miss wakeups.
>
> Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> ---
>
> Paul, I haven't fixed KVM. You probably should include such a fix
> as part of your KVM-on-power9 series.
>
> Michael: That should probably go to -stable as far as P9 support goes.

I ended up with:

    powerpc: Set missing wakeup bit in LPCR on POWER9
    
    There is a new bit, LPCR_PECE_HVEE (Hypervisor Virtualization Exit
    Enable), which controls wakeup from STOP states on Hypervisor
    Virtualization Interrupts (which happen to also be all external
    interrupts in host or bare metal mode).
    
    It needs to be set or we will miss wakeups.
    
    Fixes: 9baaef0a22c8 ("powerpc/irq: Add support for HV virtualization interrupts")
    Cc: stable at vger.kernel.org # v4.8+
    Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
    [mpe: Rename it to HVEE to match the name in the ISA]
    Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>


cheers


More information about the Linuxppc-dev mailing list