habanalabs: Timestamps buffers registration
authorfarah kassabri <fkassabri@habana.ai>
Thu, 23 Dec 2021 11:24:34 +0000 (13:24 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 28 Feb 2022 12:22:04 +0000 (14:22 +0200)
commit9158bf69e74f98fea6847cca93bbf33a589bebcd
tree5905089780ae092461eb5c3a440280317037096c
parentb32cd10480ebcfd66c3f7ae9fece951e5b5b35ae
habanalabs: Timestamps buffers registration

Timestamp registration API allows the user to register
a timestamp record event which will make the driver set
timestamp when CQ counter reaches the target value
and write it to a specific location specified
by the user.
This is a non blocking API, unlike the wait_for_interrupt
which is a blocking one.

Signed-off-by: farah kassabri <fkassabri@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c
drivers/misc/habanalabs/common/device.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/habanalabs_drv.c
drivers/misc/habanalabs/common/irq.c
drivers/misc/habanalabs/common/memory.c
include/uapi/misc/habanalabs.h