linux-stable/drivers/accel/habanalabs
Tomer Tayar a35c997601 accel/habanalabs: update pending reset flags with new reset requests
If hl_device_cond_reset() is called while a reset is already pending but
hasn't started, the reset request will be dropped.
If the flags of the new request are more severe, e.g. a hard reset while
the pending reset is a compute reset, the eventual reset won't be
suitable for the device status.

To prevent such cases, update the pending reset flags with the new
requests flags before the requests are dropped.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
2023-10-09 12:37:17 +03:00
..
common accel/habanalabs: update pending reset flags with new reset requests 2023-10-09 12:37:17 +03:00
gaudi accel/habanalabs: remove support for mmu disable 2023-06-08 12:35:55 +03:00
gaudi2 accel/habanalabs: add event queue extra validation 2023-06-08 12:35:56 +03:00
goya accel/habanalabs: remove support for mmu disable 2023-06-08 12:35:55 +03:00
include accel/habanalabs: print qman data on error only for lower qman 2023-06-08 12:35:56 +03:00
Kconfig habanalabs: move driver to accel subsystem 2023-01-26 11:52:10 +02:00
Makefile habanalabs: move driver to accel subsystem 2023-01-26 11:52:10 +02:00