mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 06:01:53 +02:00
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>
This commit is contained in:
parent
0c93eb098f
commit
44155bb627
|
|
@ -1514,6 +1514,7 @@ int hl_device_reset(struct hl_device *hdev, u32 flags)
|
|||
&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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user