Commit 44155bb6 authored by Tomer Tayar's avatar Tomer Tayar Committed by Oded Gabbay

habanalabs: clear in_compute_reset when escalating to hard reset

If resetting device upon release while the release watchdog work is
scheduled, the compute reset is replaced with hard reset.
In this case, need to clear the in_compute_reset indication in the
device reset information structure.
Signed-off-by: default avatarTomer Tayar <ttayar@habana.ai>
Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 0c93eb09
...@@ -1514,6 +1514,7 @@ int hl_device_reset(struct hl_device *hdev, u32 flags) ...@@ -1514,6 +1514,7 @@ int hl_device_reset(struct hl_device *hdev, u32 flags)
&hdev->device_release_watchdog_work.reset_work); &hdev->device_release_watchdog_work.reset_work);
if (from_dev_release) { if (from_dev_release) {
hdev->reset_info.in_compute_reset = 0;
flags |= HL_DRV_RESET_HARD; flags |= HL_DRV_RESET_HARD;
flags &= ~HL_DRV_RESET_DEV_RELEASE; flags &= ~HL_DRV_RESET_DEV_RELEASE;
hard_reset = true; hard_reset = true;
......
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