diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2014-07-02 04:02:09 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-07-21 14:48:45 +1000 |
commit | 1b5220b4b7a337463cfe77e36d8988039f6facca (patch) | |
tree | b86507b5abae7b40d4b9e4c7215ce5b160802aa1 /include | |
parent | e3263abb512c80ca89e81d1ad9045dfd413188cb (diff) | |
download | skiboot-1b5220b4b7a337463cfe77e36d8988039f6facca.zip skiboot-1b5220b4b7a337463cfe77e36d8988039f6facca.tar.gz skiboot-1b5220b4b7a337463cfe77e36d8988039f6facca.tar.bz2 |
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')
-rw-r--r-- | include/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pci.h b/include/pci.h index e5af3ab..9acc068 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 */ |