]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: add gaudi2 wait-for-CS support
authorOded Gabbay <ogabbay@kernel.org>
Mon, 27 Jun 2022 12:05:28 +0000 (15:05 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:28 +0000 (09:09 +0300)
commitf2bd76329e3a14171fd42107a8f0fb089466496f
tree338fdad976b753bc5a000f4c6da39fa01cb39779
parentd3107a4bb90a59062d412ab725bdf482d61fcb5b
habanalabs: add gaudi2 wait-for-CS support

In Gaudi2 we moved to a different wait for command submission
completion model. Instead of receiving interrupt only on external
queues, we use the device's sync manager to notify us when the
entire command submission finishes.

This enables us to remove the categorization of queues to external
and internal, and treat each queue equally, without the need to parse
and patch any command buffer.

This change also requires refactoring to the IRQ handling of
CS completions.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c
drivers/misc/habanalabs/common/debugfs.c
drivers/misc/habanalabs/common/device.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/hw_queue.c
drivers/misc/habanalabs/common/irq.c
drivers/misc/habanalabs/common/security.c