linux/drivers/accel/habanalabs
farah kassabri ba24b5ec78 accel/habanalabs: split user interrupts pending list
Currently driver maintain one list for both pending user interrupts
which seeks to wait till CQ reaches it's target value and also the ones
that seeks to get timestamp records when the CQ reaches it's target
value.
This causes delay in handling the waiters which gets higher priority
than the timestamp records.
In order to solve this, let's split the list into two,
one for each case and each one is protected by it's own spinlock.
Waiters will be handled within the interrupt context first,
then the timestamp records will be set.
Freeing the timestamp related memory will be handled in a workqueue.

Signed-off-by: farah kassabri <fkassabri@habana.ai>
Reviewed-by: Tomer Tayar <ttayar@habana.ai>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
2023-10-09 12:37:22 +03:00
..
common accel/habanalabs: split user interrupts pending list 2023-10-09 12:37:22 +03:00
gaudi accel/habanalabs: move cpucp interface to linux/habanalabs 2023-10-09 12:37:21 +03:00
gaudi2 accel/habanalabs: split user interrupts pending list 2023-10-09 12:37:22 +03:00
goya accel/habanalabs: move cpucp interface to linux/habanalabs 2023-10-09 12:37:21 +03:00
include accel/habanalabs/gaudi2: handle eq health heartbeat check 2023-10-09 12:37:21 +03:00
Kconfig
Makefile