diff options
author | Christophe Lombard <clombard@linux.vnet.ibm.com> | 2021-10-14 17:56:59 +0200 |
---|---|---|
committer | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2021-10-19 12:26:01 +0530 |
commit | a3bbeac7e23795456df4f3f52d442bd1ba35eaa3 (patch) | |
tree | b8d649bbffb04b129cc972bbb2c097cfd3f21184 /include/npu2-regs.h | |
parent | d4cd8a29e4c548f6383b47604a83c69b58d849e8 (diff) | |
download | skiboot-a3bbeac7e23795456df4f3f52d442bd1ba35eaa3.zip skiboot-a3bbeac7e23795456df4f3f52d442bd1ba35eaa3.tar.gz skiboot-a3bbeac7e23795456df4f3f52d442bd1ba35eaa3.tar.bz2 |
pau: hmi scom dump
This patch add a new function to dump PAU registers when a HMI has been
raised and an OpenCAPI link has been hit by an error.
For each register, the scom address and the register value are printed.
The hmi.c has been redesigned in order to support the new PHB/PCIEX
type (PAU OpenCapi). Now, the *npu* functions support NPU and PAU units of
P8, P9 and P10 chips.
Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'include/npu2-regs.h')
-rw-r--r-- | include/npu2-regs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/npu2-regs.h b/include/npu2-regs.h index 22f58a6..cb1d395 100644 --- a/include/npu2-regs.h +++ b/include/npu2-regs.h @@ -610,6 +610,11 @@ void npu2_scom_write(uint64_t gcid, uint64_t scom_base, #define NPU2_TOTAL_FIR_REGISTERS 3 +#define NPU2_FIR(n) (0x2c00 + (n) * 0x40) +#define NPU2_FIR_MASK(n) (0x2c03 + (n) * 0x40) +#define NPU2_FIR_ACTION0(n) (0x2c06 + (n) * 0x40) +#define NPU2_FIR_ACTION1(n) (0x2c07 + (n) * 0x40) + /* * Can't use enums for 64 bit values, use #defines */ |