aboutsummaryrefslogtreecommitdiff
path: root/hw/npu2-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/npu2-common.c')
-rw-r--r--hw/npu2-common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/npu2-common.c b/hw/npu2-common.c
index 6d5c35a..51ecd0c 100644
--- a/hw/npu2-common.c
+++ b/hw/npu2-common.c
@@ -406,6 +406,13 @@ static void npu2_err_interrupt(struct irq_source *is, uint32_t isn)
p->chip_id, irq_name);
free(irq_name);
show_all_regs(p, brick);
+ /*
+ * P9 NPU doesn't support recovering a link going down
+ * unexpectedly. So we mark the device as broken and
+ * report it to the OS, so that the error is logged
+ * and the drivers notified.
+ */
+ npu2_opencapi_set_broken(p, brick);
opal_update_pending_evt(OPAL_EVENT_PCI_ERROR,
OPAL_EVENT_PCI_ERROR);
break;