• farah kassabri's avatar
    accel/habanalabs: split user interrupts pending list · ba24b5ec
    farah kassabri authored
    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: default avatarfarah kassabri <fkassabri@habana.ai>
    Reviewed-by: default avatarTomer Tayar <ttayar@habana.ai>
    Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
    ba24b5ec
irq.c 18.2 KB