Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>

authored by

Tomer Tayar and committed by
Oded Gabbay
44155bb6 0c93eb09

+1
+1
drivers/accel/habanalabs/common/device.c
··· 1514 1514 &hdev->device_release_watchdog_work.reset_work); 1515 1515 1516 1516 if (from_dev_release) { 1517 + hdev->reset_info.in_compute_reset = 0; 1517 1518 flags |= HL_DRV_RESET_HARD; 1518 1519 flags &= ~HL_DRV_RESET_DEV_RELEASE; 1519 1520 hard_reset = true;