From: Tomer Tayar Date: Tue, 17 Jan 2023 17:45:24 +0000 (+0200) Subject: habanalabs: clear in_compute_reset when escalating to hard reset X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=44155bb62762335c3e0e9cdec04ad7c03cd41fb2;p=linux.git 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 Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- diff --git a/drivers/accel/habanalabs/common/device.c b/drivers/accel/habanalabs/common/device.c index edeec35fd9c6c..9933e5858a363 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;