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)
commit3292055c85aa02723b7b7a1114c4c91deefad5e4
treeaad502c3c35ffc2620bcf0a9f089f0d7bc2f9bdd
parent647e835e67421ee47b0ff8acc2808de86f7d5e01
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