]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/habanalabs: fix wait_for_interrupt abortion flow
authorfarah kassabri <fkassabri@habana.ai>
Mon, 12 Jun 2023 10:58:11 +0000 (13:58 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 9 Oct 2023 09:37:18 +0000 (12:37 +0300)
commit2da9f8d8059331db9d26a5e794a417be547c4236
tree9e9c85e369e2f8bb05670a18e2d78807a367c6f7
parenteaa43a06b765542ee36f38bdd92b04bdc8645964
accel/habanalabs: fix wait_for_interrupt abortion flow

When the driver needs to abort waiters for interrupts, for cases
such as critical events that occur and driver need to do hard reset,
in such scenario the driver will complete the fence to wake up the
waiting thread, and will set the fence error indication.
The return value of the completion API will be greater than 0
since it will return the timeout, but as this indicates successful
completion, the driver should mark it as aborted.

Signed-off-by: farah kassabri <fkassabri@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/command_submission.c