summaryrefslogtreecommitdiffstats
path: root/include/pci.h
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2014-07-02 04:02:09 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-07-21 14:48:45 +1000
commit1b5220b4b7a337463cfe77e36d8988039f6facca (patch)
treeb86507b5abae7b40d4b9e4c7215ce5b160802aa1 /include/pci.h
parente3263abb512c80ca89e81d1ad9045dfd413188cb (diff)
downloadtalos-skiboot-1b5220b4b7a337463cfe77e36d8988039f6facca.tar.gz
talos-skiboot-1b5220b4b7a337463cfe77e36d8988039f6facca.zip
PCI: Clear PAPR error injection
Though the p7ioc spec states the errors triggered by PAPR error injection register set (0x2b0, 0x2b8, 0x2c0) should be one-shot without "sticky" bit, Firebird-L machine doesn't follow the rule. It will cause endless frozen PE until we have to remove the PE permanently. The patch extends opal_pci_reset() allowing kernel to clear PAPR error injection register set at appropriate point. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/pci.h')
-rw-r--r--include/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pci.h b/include/pci.h
index e5af3abc..9acc0687 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -320,6 +320,8 @@ struct phb_ops {
int64_t (*ioda_reset)(struct phb *phb, bool purge);
+ int64_t (*papr_errinjct_reset)(struct phb *phb);
+
/*
* P5IOC2 only
*/
OpenPOWER on IntegriCloud