summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/eeh.c
diff options
context:
space:
mode:
authorGavin Shan2014-06-10 03:41:55 +0200
committerBenjamin Herrenschmidt2014-08-05 07:28:47 +0200
commit05ec424e38fbba43829820b8f3634154f812e67e (patch)
tree3adea52ae78ec67819c5cde299436fa4c4fd37c7 /arch/powerpc/kernel/eeh.c
parentMerge remote-tracking branch 'scott/next' into next (diff)
downloadkernel-qcow2-linux-05ec424e38fbba43829820b8f3634154f812e67e.tar.gz
kernel-qcow2-linux-05ec424e38fbba43829820b8f3634154f812e67e.tar.xz
kernel-qcow2-linux-05ec424e38fbba43829820b8f3634154f812e67e.zip
powerpc/eeh: Avoid event on passed PE
We must not handle EEH error on devices which are passed to somebody else. Instead, we expect that the frozen device owner detects an EEH error and recovers from it. This avoids EEH error handling on passed through devices so the device owner gets a chance to handle them. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Acked-by: Alexander Graf <agraf@suse.de> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/eeh.c')
-rw-r--r--arch/powerpc/kernel/eeh.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c
index 86e25702aaca..c8f1a9d2a67b 100644
--- a/arch/powerpc/kernel/eeh.c
+++ b/arch/powerpc/kernel/eeh.c
@@ -400,6 +400,14 @@ int eeh_dev_check_failure(struct eeh_dev *edev)
if (ret > 0)
return ret;
+ /*
+ * If the PE isn't owned by us, we shouldn't check the
+ * state. Instead, let the owner handle it if the PE has
+ * been frozen.
+ */
+ if (eeh_pe_passed(pe))
+ return 0;
+
/* If we already have a pending isolation event for this
* slot, we know it's bad already, we don't need to check.
* Do this checking under a lock; as multiple PCI devices