diff options
author | Frederic Barrat <fbarrat@linux.ibm.com> | 2019-04-24 17:31:06 +0200 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-04-29 16:13:03 +1000 |
commit | c3e38ba93c5f5b6e8983fbd3aafe227756483d97 (patch) | |
tree | 0ce0b55de73e1bffcadb7328680fc75b6641b336 /hw | |
parent | b50406ba487827ca464504d8b240d355856535c4 (diff) | |
download | skiboot-c3e38ba93c5f5b6e8983fbd3aafe227756483d97.zip skiboot-c3e38ba93c5f5b6e8983fbd3aafe227756483d97.tar.gz skiboot-c3e38ba93c5f5b6e8983fbd3aafe227756483d97.tar.bz2 |
hw/npu2: Show name of opencapi error interrupts
Add the name of which error interrupt is received.
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 'hw')
-rw-r--r-- | hw/npu2-common.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/hw/npu2-common.c b/hw/npu2-common.c index d4c0f85..16b285d 100644 --- a/hw/npu2-common.c +++ b/hw/npu2-common.c @@ -403,6 +403,7 @@ static void npu2_err_interrupt(struct irq_source *is, uint32_t isn) { struct npu2 *p = is->data; uint32_t idx = isn - p->base_lsi; + char *irq_name; int brick; switch (idx) { @@ -413,8 +414,10 @@ static void npu2_err_interrupt(struct irq_source *is, uint32_t isn) case 27 ... 34: /* opencapi only */ brick = 2 + ((idx - 27) % 4); - prlog(PR_ERR, "NPU[%d] error interrupt for brick %d\n", - p->chip_id, brick); + irq_name = npu2_ipi_name(is, isn); + prlog(PR_ERR, "NPU[%d] received error interrupt '%s'\n", + p->chip_id, irq_name); + free(irq_name); show_all_regs(p, brick); opal_update_pending_evt(OPAL_EVENT_PCI_ERROR, OPAL_EVENT_PCI_ERROR); |