linux/drivers/accel/habanalabs
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
..
common accel/habanalabs: set hard reset flag if graceful reset is skipped 2023-12-19 11:09:43 +02:00
gaudi accel/habanalabs/gaudi: remove define used for simulator 2023-10-09 12:37:24 +03:00
gaudi2 accel/habanalabs/gaudi2: fix undef opcode reporting 2023-12-19 11:09:43 +02:00
goya accel/habanalabs: trace dma map sgtable 2023-10-09 12:37:23 +03:00
include accel/habanalabs: add support for Gaudi2C device 2023-12-19 11:09:43 +02:00
Kconfig
Makefile