accel/habanalabs: reset device if scrubbing failed
authorOded Gabbay <ogabbay@kernel.org>
Mon, 12 Jun 2023 11:24:05 +0000 (14:24 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 9 Oct 2023 09:37:19 +0000 (12:37 +0300)
commit37d72439a4b17dda2adc2de98bcb98932fd6ceb2
tree671dc2af5e3d55e40015f464305bb9f3140c9334
parent89803af5355b04f4e2583d5c7170aa3676f9c1b7
accel/habanalabs: reset device if scrubbing failed

If scrubbing memory after user released device has failed it means
the device is in a bad state and should be reset.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Reviewed-by: Ofir Bitton <obitton@habana.ai>
drivers/accel/habanalabs/common/device.c