summaryrefslogtreecommitdiffstats
path: root/include/npu2.h
diff options
context:
space:
mode:
authorFrederic Barrat <fbarrat@linux.ibm.com>2019-04-05 16:33:02 +0200
committerStewart Smith <stewart@linux.ibm.com>2019-04-09 10:50:55 +1000
commit7320a21e7261d5ed87971a7985fecdd7588a72ec (patch)
tree375dc23708ef5240033664af15c616b705542883 /include/npu2.h
parentf8dfd699f5844ce7e7934beb5c9a4fe139d22250 (diff)
downloadblackbird-skiboot-7320a21e7261d5ed87971a7985fecdd7588a72ec.tar.gz
blackbird-skiboot-7320a21e7261d5ed87971a7985fecdd7588a72ec.zip
hw/npu2: Report errors to the OS if an OpenCAPI brick is fenced
Now that the NPU may report interrupts due to the link going down unexpectedly, report those errors to the OS when queried by the 'next_error' PHB callback. The hardware doesn't support recovery of the link when it goes down unexpectedly. So we report the PHB as dead, so that the OS can log the proper message, notify the drivers and take the devices down. 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 6c73679f..ef4e7aff 100644
--- a/include/npu2.h
+++ b/include/npu2.h
@@ -157,6 +157,7 @@ struct npu2_dev {
/* OpenCAPI */
struct phb phb_ocapi;
+ uint64_t linux_pe;
bool train_need_fence;
bool train_fenced;
};
OpenPOWER on IntegriCloud