summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/gaudi
diff options
context:
space:
mode:
authorOmer Shpigelman <oshpigelman@habana.ai>2020-05-17 23:01:22 +0300
committerOded Gabbay <oded.gabbay@gmail.com>2020-05-25 08:15:33 +0300
commitd798507988da3d40032c57cb87244450842e4be1 (patch)
tree2dcd77501e98a66691a7a71fc2d267117d83a9ba /drivers/misc/habanalabs/gaudi
parent42d0b0b95f9822fc02440c0ae5f9192c0ebe54bf (diff)
habanalabs: add print for soft reset due to event
Print the event name that caused the soft reset. Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc/habanalabs/gaudi')
-rw-r--r--drivers/misc/habanalabs/gaudi/gaudi.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/misc/habanalabs/gaudi/gaudi.c b/drivers/misc/habanalabs/gaudi/gaudi.c
index 093384731f0d..3d4a569914d3 100644
--- a/drivers/misc/habanalabs/gaudi/gaudi.c
+++ b/drivers/misc/habanalabs/gaudi/gaudi.c
@@ -5843,8 +5843,12 @@ static void gaudi_handle_eqe(struct hl_device *hdev,
soft_reset_required = gaudi_tpc_read_interrupts(hdev,
tpc_dec_event_to_tpc_id(event_type),
"AXI_SLV_DEC_Error");
- if (soft_reset_required)
+ if (soft_reset_required) {
+ dev_err_ratelimited(hdev->dev,
+ "soft reset required due to %s\n",
+ gaudi_irq_map_table[event_type].name);
hl_device_reset(hdev, false, false);
+ }
hl_fw_unmask_irq(hdev, event_type);
break;
@@ -5860,8 +5864,12 @@ static void gaudi_handle_eqe(struct hl_device *hdev,
soft_reset_required = gaudi_tpc_read_interrupts(hdev,
tpc_krn_event_to_tpc_id(event_type),
"KRN_ERR");
- if (soft_reset_required)
+ if (soft_reset_required) {
+ dev_err_ratelimited(hdev->dev,
+ "soft reset required due to %s\n",
+ gaudi_irq_map_table[event_type].name);
hl_device_reset(hdev, false, false);
+ }
hl_fw_unmask_irq(hdev, event_type);
break;