diff options
author | Michael Neuling <mikey@neuling.org> | 2017-05-08 17:26:30 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-05-10 16:58:18 +1000 |
commit | 4fbdcf6bd10b1c93977e789a42bb54b98458acd6 (patch) | |
tree | 76d43e1108c5da0c7598195d5c66ebbbbedaf4a8 /include | |
parent | 8b1df791543bd0c390df01463a1601d4b5eb67ea (diff) | |
download | blackbird-skiboot-4fbdcf6bd10b1c93977e789a42bb54b98458acd6.tar.gz blackbird-skiboot-4fbdcf6bd10b1c93977e789a42bb54b98458acd6.zip |
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')
-rw-r--r-- | include/phb4-regs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/phb4-regs.h b/include/phb4-regs.h index 54809490..92bee88f 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 |