accel/habanalabs: refactor abort of completions and waits
authorKoby Elbaz <kelbaz@habana.ai>
Sun, 4 Dec 2022 16:37:53 +0000 (18:37 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 8 Jun 2023 09:35:54 +0000 (12:35 +0300)
commit9a4e44a4ee49dff6ded6a4c76bb921a8379cb7b4
tree77c7acfc4f493af8c844e6065afc582adadcbeac
parentad8bfd3619bb096dd1929a69989120b45e3c3eee
accel/habanalabs: refactor abort of completions and waits

Aborting CS completions should be in command_submission.c but aborting
waiting for user interrupts should be in device.c.

This separation is also for adding more abort operations in the future.

Signed-off-by: Koby Elbaz <kelbaz@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/command_submission.c
drivers/accel/habanalabs/common/device.c
drivers/accel/habanalabs/common/habanalabs.h