diff options
author | Tomer Tayar <[email protected]> | 2023-01-17 19:45:24 +0200 |
---|---|---|
committer | Oded Gabbay <[email protected]> | 2023-01-26 11:52:14 +0200 |
commit | 44155bb62762335c3e0e9cdec04ad7c03cd41fb2 (patch) | |
tree | 9a19926dae5525861ae21241bf4e3bd9cbc88c96 | |
parent | 0c93eb098f21074555b9b08ab60d1c3e3129f3da (diff) |
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: Tomer Tayar <[email protected]>
Reviewed-by: Oded Gabbay <[email protected]>
Signed-off-by: Oded Gabbay <[email protected]>
-rw-r--r-- | drivers/accel/habanalabs/common/device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/accel/habanalabs/common/device.c b/drivers/accel/habanalabs/common/device.c index edeec35fd9c6..9933e5858a36 100644 --- a/drivers/accel/habanalabs/common/device.c +++ b/drivers/accel/habanalabs/common/device.c @@ -1514,6 +1514,7 @@ do_reset: &hdev->device_release_watchdog_work.reset_work); if (from_dev_release) { + hdev->reset_info.in_compute_reset = 0; flags |= HL_DRV_RESET_HARD; flags &= ~HL_DRV_RESET_DEV_RELEASE; hard_reset = true; |