summaryrefslogtreecommitdiffstats
path: root/include/phb3-regs.h
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2015-06-29 10:44:21 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-07-03 07:23:49 +1000
commitb2636472eef708006a017fa3858ac754968e6cc9 (patch)
tree38654f30ab2e4237ec92833e5a8c64cf0d247f2f /include/phb3-regs.h
parentaa617925bb0e21550ec69b625cb9bd48f66655fb (diff)
downloadtalos-skiboot-b2636472eef708006a017fa3858ac754968e6cc9.tar.gz
talos-skiboot-b2636472eef708006a017fa3858ac754968e6cc9.zip
hw/phb3: Support config error injection to VF PE
Before the SRIOV is enabled, the only supported PE type is PCI bus dependent PE when doing error injection via PCI config space. That means the device/function number are ignored when writing to PAPR error injection address/mask registers (0x2b8 and 0x2c0) to inject PCI config access caused errors. If user intends to inject error to one VF, which is binding with individual PE, all VFs hooked to same PCI bus might receive errors wrongly. The patch fixes above issue by writing correct PCI config address to the registers according to the PE type: bus dependent or PCI device dependent PE. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/phb3-regs.h')
-rw-r--r--include/phb3-regs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/phb3-regs.h b/include/phb3-regs.h
index 632ed93e..91f25f98 100644
--- a/include/phb3-regs.h
+++ b/include/phb3-regs.h
@@ -123,6 +123,7 @@
#define PHB_PAPR_ERR_INJ_ADDR_MMIO PPC_BITMASK(16,63)
#define PHB_PAPR_ERR_INJ_MASK 0x2c0
#define PHB_PAPR_ERR_INJ_MASK_CFG PPC_BITMASK(4,11)
+#define PHB_PAPR_ERR_INJ_MASK_CFG_ALL PPC_BITMASK(4,19)
#define PHB_PAPR_ERR_INJ_MASK_MMIO PPC_BITMASK(16,63)
#define PHB_ETU_ERR_SUMMARY 0x2c8
OpenPOWER on IntegriCloud