]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/eeh: Synchronize recovery in host/guest
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Thu, 3 Mar 2016 23:53:14 +0000 (10:53 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Mar 2016 22:58:28 +0000 (09:58 +1100)
commiteca036ee1b4ea0ce4f311f4d8cb73731ef2f0b26
tree8005e0771ad4f2b5f1d1ebb381743d8d6ede1ef0
parent3fa7bf7229993eac65fd6ade2ffc5f75150b40e1
powerpc/eeh: Synchronize recovery in host/guest

When passing through SRIOV VFs to guest, we possibly encounter EEH
error on PF. In this case, the VF PEs are put into frozen state.
The error could be reported to guest before it's captured by the
host. That means the guest could attempt to recover errors on VFs
before host gets chance to recover errors on PFs. The VFs won't be
recovered successfully.

This enforces the recovery order for above case: the recovery on
child PE in guest is hold until the recovery on parent PE in host
is completed.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh.c