]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: Replace dma-fence mechanism with completions
authorOfir Bitton <obitton@habana.ai>
Wed, 15 Jul 2020 05:52:39 +0000 (08:52 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 22 Sep 2020 15:49:48 +0000 (18:49 +0300)
commit4c0bb64fa212fa84912269e0a358b7f4d15b8750
treec71fb6159ed23eec22d6b632dca125576b55cd1a
parentb7f2a7ad3da2ca8a57e571c9ca57f057d391f176
habanalabs: Replace dma-fence mechanism with completions

habanalabs driver uses dma-fence mechanism for synchronization.
dma-fence mechanism was designed solely for GPUs, hence we purpose
a simpler mechanism based on completions to replace current
dma-fence objects.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/common/command_submission.c
drivers/misc/habanalabs/common/context.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/hw_queue.c