]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: Correct handling when failing to enqueue CB
authorOfir Bitton <obitton@habana.ai>
Thu, 11 Jun 2020 08:43:23 +0000 (11:43 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 24 Jun 2020 06:09:10 +0000 (09:09 +0300)
commit80bde2d066f47ec64430f00655707e8fb0b625e4
treeaad502c3c35ffc2620bcf0a9f089f0d7bc2f9bdd
parent3f80f7a84035df441b248c6a4589d4f6fb641068
habanalabs: Correct handling when failing to enqueue CB

The fence release flow is different if the CS was never submitted. In that
case, we don't have an hw_sob object attached that we need to "put". While
if the CS was aborted, we do need to "put" the hw_sob.

Signed-off-by: Ofir Bitton <obitton@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