]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: perform accounting for active CS
authorOded Gabbay <oded.gabbay@gmail.com>
Sun, 3 Mar 2019 13:13:15 +0000 (15:13 +0200)
committerOded Gabbay <oded.gabbay@gmail.com>
Sun, 3 Mar 2019 13:13:15 +0000 (15:13 +0200)
commitf4a0e0cb437381abd5a61b37f65009d46a8d8499
tree0af62e0d486c1aae0539c7d44cc3ddc3bbf26107
parentb9739c2d1fd7a31771485490d8f9e24eff11edc7
habanalabs: perform accounting for active CS

This patch adds accounting for active CS. Active means that the CS was
submitted to the H/W queues and was not completed yet.

This is necessary to support suspend operation. Because the device will be
reset upon suspend, we can only suspend after all active CS have been
completed. Hence, we need to perform accounting on their number.

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