]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: allow to wait on CS without sleep
authorOded Gabbay <oded.gabbay@gmail.com>
Mon, 7 Sep 2020 15:08:51 +0000 (18:08 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 22 Sep 2020 15:49:53 +0000 (18:49 +0300)
commit5926e1086149d3788490009a39787c190412013f
treed53cd10e5c272e7dcae78be129fa24e8abd34061
parenta949b20033dbb32cb8264cf294e1f48c811cd939
habanalabs: allow to wait on CS without sleep

The user sometimes wants to check if a CS has completed to clean resources.
In that case, the user doesn't want to sleep but just to check if the CS
has finished and continue with his code.

Add a new definition to the API of the wait on CS. The new definition says
that if the timeout is 0, the driver won't sleep at all but return
immediately after checking if the CS has finished.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/common/command_submission.c
include/uapi/misc/habanalabs.h