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)
commit138858226414bd026e63acebb7540093c97c69fd
treee86fefd35aa3283f1da0412292be304d34793a9c
parent5edd95a4abb332fb683cf7a35eed2ae4ff7b4dcb
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