habanalabs: clear in_compute_reset when escalating to hard reset
authorTomer Tayar <ttayar@habana.ai>
Tue, 17 Jan 2023 17:45:24 +0000 (19:45 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 26 Jan 2023 09:52:14 +0000 (11:52 +0200)
commit44155bb62762335c3e0e9cdec04ad7c03cd41fb2
tree9a19926dae5525861ae21241bf4e3bd9cbc88c96
parent0c93eb098f21074555b9b08ab60d1c3e3129f3da
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>
drivers/accel/habanalabs/common/device.c