habanalabs: verify queue can contain all cs jobs
authorOfir Bitton <obitton@habana.ai>
Wed, 8 Jul 2020 07:16:27 +0000 (10:16 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Fri, 24 Jul 2020 17:31:37 +0000 (20:31 +0300)
commit22cb855598ed9aa7812941eb29218dc6033b4b43
treea3488837db77302cec25c5548b39b9e318115a72
parent5574cb2194b13de78df68cd32655ddbe619b1251
habanalabs: verify queue can contain all cs jobs

In order for the user to be aware of wrong inputs, we must return
error in case the amount of jobs per cs exceeds the corresponding
queue size.

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/habanalabs.h
drivers/misc/habanalabs/hw_queue.c