mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 18:40:25 -04:00
habanalabs: add support for common decoder interrupts
User application should be able to get notification for any decoder completion. Hence, we introduce a new interface in which a user can wait for all current decoder pending interrupts. Signed-off-by: Ofir Bitton <obitton@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
@@ -1443,6 +1443,7 @@ union hl_cs_args {
|
||||
#define HL_WAIT_CS_FLAGS_INTERRUPT 0x2
|
||||
#define HL_WAIT_CS_FLAGS_INTERRUPT_MASK 0xFFF00000
|
||||
#define HL_WAIT_CS_FLAGS_ANY_CQ_INTERRUPT 0xFFF00000
|
||||
#define HL_WAIT_CS_FLAGS_ANY_DEC_INTERRUPT 0xFFE00000
|
||||
#define HL_WAIT_CS_FLAGS_MULTI_CS 0x4
|
||||
#define HL_WAIT_CS_FLAGS_INTERRUPT_KERNEL_CQ 0x10
|
||||
#define HL_WAIT_CS_FLAGS_REGISTER_INTERRUPT 0x20
|
||||
@@ -1496,6 +1497,9 @@ struct hl_wait_cs_in {
|
||||
*
|
||||
* in order to wait for any CQ interrupt, set interrupt value to
|
||||
* HL_WAIT_CS_FLAGS_ANY_CQ_INTERRUPT.
|
||||
*
|
||||
* in order to wait for any decoder interrupt, set interrupt value to
|
||||
* HL_WAIT_CS_FLAGS_ANY_DEC_INTERRUPT.
|
||||
*/
|
||||
__u32 flags;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user