aboutsummaryrefslogtreecommitdiff
path: root/include/npu2.h
diff options
context:
space:
mode:
authorFrederic Barrat <fbarrat@linux.ibm.com>2019-04-05 16:33:03 +0200
committerStewart Smith <stewart@linux.ibm.com>2019-04-09 10:50:55 +1000
commitd1f3e4faf9d99d76bc413503afea87c8486af8b1 (patch)
tree5ae00584124d92e2193762e100abe289c26c23e6 /include/npu2.h
parent7320a21e7261d5ed87971a7985fecdd7588a72ec (diff)
downloadskiboot-d1f3e4faf9d99d76bc413503afea87c8486af8b1.zip
skiboot-d1f3e4faf9d99d76bc413503afea87c8486af8b1.tar.gz
skiboot-d1f3e4faf9d99d76bc413503afea87c8486af8b1.tar.bz2
hw/npu2: Dump (more) npu2 registers on link error and HMIs
We were already logging some NPU registers during an HMI. This patch cleans up a bit how it is done and separates what is global from what is specific to nvlink or opencapi. Since we can now receive an error interrupt when an opencapi link goes down unexpectedly, we also dump the NPU state but we limit it to the registers of the brick which hit the error. The list of registers to dump was worked out with the hw team to allow for proper debugging. For each register, we print the name as found in the NPU workbook, the scom address and the register value. Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include/npu2.h')
-rw-r--r--include/npu2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/npu2.h b/include/npu2.h
index ef4e7af..d58aab4 100644
--- a/include/npu2.h
+++ b/include/npu2.h
@@ -248,4 +248,5 @@ int64_t npu2_freeze_status(struct phb *phb __unused,
uint8_t *freeze_state,
uint16_t *pci_error_type __unused,
uint16_t *severity __unused);
+void npu2_dump_scoms(int chip_id);
#endif /* __NPU2_H */