]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: handle abort scenario for user interrupt
authorBharat Jauhari <bjauhari@habana.ai>
Wed, 8 Sep 2021 14:16:51 +0000 (17:16 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:04 +0000 (08:59 +0200)
commit0dd52751cda4a712e44155e9ef58d1d088286e9b
treee86fefd35aa3283f1da0412292be304d34793a9c
parentd6ea564431ddc7250082d32d1e3ed217ad4c8d43
habanalabs: handle abort scenario for user interrupt

In case of device reset, the driver does a force trigger on all waiting
users to release them from waiting. However, the driver does not handle
error scenario while waiting.

hl_interrupt_wait_ioctl() now exits the wait in case of an error with
abort status.

Signed-off-by: Bharat Jauhari <bjauhari@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c