From 7320a21e7261d5ed87971a7985fecdd7588a72ec Mon Sep 17 00:00:00 2001 From: Frederic Barrat Date: Fri, 5 Apr 2019 16:33:02 +0200 Subject: 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 Reviewed-by: Andrew Donnellan Signed-off-by: Stewart Smith --- include/npu2.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/npu2.h') diff --git a/include/npu2.h b/include/npu2.h index 6c73679..ef4e7af 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; }; -- cgit v1.1