]> git.baikalelectronics.ru Git - kernel.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)
commit866d2234e0ad3ff51dbe063b3fd8715056452b5e
tree8005e0771ad4f2b5f1d1ebb381743d8d6ede1ef0
parentffa21d89669e0951dda3336ea14c58ebaa6d6af7
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