Commit d7985079 authored by Omer Shpigelman's avatar Omer Shpigelman Committed by Oded Gabbay

habanalabs: add print for soft reset due to event

Print the event name that caused the soft reset.
Signed-off-by: default avatarOmer Shpigelman <oshpigelman@habana.ai>
Reviewed-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent 42d0b0b9
...@@ -5843,8 +5843,12 @@ static void gaudi_handle_eqe(struct hl_device *hdev, ...@@ -5843,8 +5843,12 @@ static void gaudi_handle_eqe(struct hl_device *hdev,
soft_reset_required = gaudi_tpc_read_interrupts(hdev, soft_reset_required = gaudi_tpc_read_interrupts(hdev,
tpc_dec_event_to_tpc_id(event_type), tpc_dec_event_to_tpc_id(event_type),
"AXI_SLV_DEC_Error"); "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_device_reset(hdev, false, false);
}
hl_fw_unmask_irq(hdev, event_type); hl_fw_unmask_irq(hdev, event_type);
break; break;
...@@ -5860,8 +5864,12 @@ static void gaudi_handle_eqe(struct hl_device *hdev, ...@@ -5860,8 +5864,12 @@ static void gaudi_handle_eqe(struct hl_device *hdev,
soft_reset_required = gaudi_tpc_read_interrupts(hdev, soft_reset_required = gaudi_tpc_read_interrupts(hdev,
tpc_krn_event_to_tpc_id(event_type), tpc_krn_event_to_tpc_id(event_type),
"KRN_ERR"); "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_device_reset(hdev, false, false);
}
hl_fw_unmask_irq(hdev, event_type); hl_fw_unmask_irq(hdev, event_type);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment