habanalabs: optimize command submission completion timestamp
authorOfir Bitton <obitton@habana.ai>
Tue, 10 Jan 2023 09:41:39 +0000 (11:41 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 26 Jan 2023 09:52:13 +0000 (11:52 +0200)
commit75b6984ef659a0d2a86cd937a208f8d1e98e957e
tree924e8c20b788737b39fe2350326c031f086dd073
parent9a7d530a8048980c76e1e61078ed5223bf6fa283
habanalabs: optimize command submission completion timestamp

Completion timestamp is taken during the actual command submission
release. As the release happens in a work queue, the timestamp taken
is not accurate. Hence, we will take the timestamp in the interrupt
handler itself while propagating it to the release function.

Signed-off-by: Ofir Bitton <obitton@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/habanalabs.h
drivers/accel/habanalabs/common/irq.c