linux/drivers/accel
Tomer Tayar 4b0b1fbc77 accel/habanalabs: set hard reset flag if graceful reset is skipped
hl_device_cond_reset() might be called with the hard reset flag unset,
because a compute reset upon device release as part of a graceful reset
is valid.
If the conditions for graceful reset are not met, hl_device_reset() will
be called for an immediate reset. In this case a compute reset is not
valid, so it will be replaced with a hard reset together with a debug
message about it.
This message might be confusing, as it implies that a compute reset was
requested when it shouldn't. To prevent this confusion, set the hard
reset flag in hl_device_cond_reset() if going to an immediate reset.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
2023-12-19 11:09:43 +02:00
..
habanalabs accel/habanalabs: set hard reset flag if graceful reset is skipped 2023-12-19 11:09:43 +02:00
ivpu Linux 6.7-rc3 2023-11-28 11:55:56 +01:00
qaic accel/qaic: Expand DRM device lifecycle 2023-12-01 10:37:06 -07:00
drm_accel.c accel: Include <drm/drm_auth.h> 2023-12-06 10:08:09 +01:00
Kconfig accel/qaic: Add qaic driver to the build system 2023-04-06 08:23:03 +02:00
Makefile accel/qaic: Add qaic driver to the build system 2023-04-06 08:23:03 +02:00