summaryrefslogtreecommitdiffstats
path: root/drivers/misc/habanalabs/gaudi
diff options
context:
space:
mode:
authorOfir Bitton <obitton@habana.ai>2021-03-03 12:23:47 +0100
committerOded Gabbay <ogabbay@kernel.org>2021-04-09 13:09:23 +0200
commit2ea09537ad7747944c20ff70078be304a71b3e33 (patch)
tree3e6cab5c4e642f8ad627f18f5c8c9217c3b64d21 /drivers/misc/habanalabs/gaudi
parenthabanalabs: debugfs access to user mapped host addresses (diff)
downloadlinux-2ea09537ad7747944c20ff70078be304a71b3e33.tar.xz
linux-2ea09537ad7747944c20ff70078be304a71b3e33.zip
habanalabs/gaudi: reset device upon BMC request
In case the BMC of the devices' box wants to initiate a reset of a specific device, it must go through driver. Once driver will receive the request it will initiate a hard reset flow. Signed-off-by: Ofir Bitton <obitton@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/gaudi')
-rw-r--r--drivers/misc/habanalabs/gaudi/gaudi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/gaudi/gaudi.c b/drivers/misc/habanalabs/gaudi/gaudi.c
index 8be75f7c97f8..099c51350be6 100644
--- a/drivers/misc/habanalabs/gaudi/gaudi.c
+++ b/drivers/misc/habanalabs/gaudi/gaudi.c
@@ -7575,6 +7575,10 @@ static void gaudi_handle_eqe(struct hl_device *hdev,
event_type, cause);
break;
+ case GAUDI_EVENT_BMC_RESET_CMD:
+ gaudi_print_irq_info(hdev, event_type, false);
+ goto reset_device;
+
case GAUDI_EVENT_PKT_QUEUE_OUT_SYNC:
gaudi_print_irq_info(hdev, event_type, false);
gaudi_print_out_of_sync_info(hdev, &eq_entry->pkt_sync_err);