aboutsummaryrefslogtreecommitdiff
path: root/include/phb4-regs.h
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2017-05-08 17:26:30 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-05-10 16:58:18 +1000
commit4fbdcf6bd10b1c93977e789a42bb54b98458acd6 (patch)
tree76d43e1108c5da0c7598195d5c66ebbbbedaf4a8 /include/phb4-regs.h
parent8b1df791543bd0c390df01463a1601d4b5eb67ea (diff)
downloadskiboot-4fbdcf6bd10b1c93977e789a42bb54b98458acd6.zip
skiboot-4fbdcf6bd10b1c93977e789a42bb54b98458acd6.tar.gz
skiboot-4fbdcf6bd10b1c93977e789a42bb54b98458acd6.tar.bz2
phb4: Enforce root complex config space size of 2048
The root complex config space size on PHB4 is 2048. This patch sets that size and enforces it when trying to read/write the config space in the root complex. Without this someone reading the config space via /sysfs in linux will cause an EEH on the PHB. If too high, reads returns 1s and writes are silently dropped. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/phb4-regs.h')
-rw-r--r--include/phb4-regs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/phb4-regs.h b/include/phb4-regs.h
index 5480949..92bee88 100644
--- a/include/phb4-regs.h
+++ b/include/phb4-regs.h
@@ -235,6 +235,7 @@
// FIXME add more here
#define PHB_RC_CONFIG_BASE 0x1000
+#define PHB_RC_CONFIG_SIZE 0x800
/* PHB4 REGB registers */
#define PHB_PBL_CONTROL 0x1800