]> asedeno.scripts.mit.edu Git - linux.git/commit
habanalabs: Mark queue as expecting CB handle or address
authorTomer Tayar <ttayar@habana.ai>
Thu, 3 Oct 2019 15:22:35 +0000 (15:22 +0000)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 21 Nov 2019 09:35:45 +0000 (11:35 +0200)
commitdf762375f17e1765bc3a0b345378e1726d85ca75
tree9ec79c1aa0ec497e2ff8912a7175d1f01b1cd758
parentf435614ff55c6783919028cb914ffd7422e0b03b
habanalabs: Mark queue as expecting CB handle or address

Jobs on some queues must be provided with a handle to a driver command
buffer object, while for other queues, jobs must be provided with an
address to a command buffer.
Currently the distinction is done based on the queue type, which is less
flexible if the same queue type behaves differently on different
types of ASICs.
This patch adds a new queue property for this target, which is
configured per queue type per ASIC type.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/command_submission.c
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/habanalabs.h