summaryrefslogtreecommitdiff
path: root/certs/common.c
diff options
context:
space:
mode:
authorfarah kassabri <fkassabri@habana.ai>2021-06-01 16:44:28 +0300
committerOded Gabbay <ogabbay@kernel.org>2021-06-21 10:16:52 +0300
commit3817b352aad3b43f897c3034b16886cdb949b720 (patch)
tree4fdf37b7518d924b4f357a95450da1eeee2e039c /certs/common.c
parent69dbbbadad4f579048d441c5472482601a306935 (diff)
habanalabs: add validity check for signal cs
In preparation for a new feature that allows the user to reserve signals ahead of submissions, we need to change a current assumption in the code. Currently, the driver uses 2 SOBs to support signal CS. When the first SOB reaches max value, the driver switches to the other one and assumes that when it will need to switch back to the first one, all of the signals have already been handled. This assumption won't hold when the new feature will be added, because using signal reservation, the driver can reach the max SOB value very fast. The change is to add a validity check when submitting a signal CS, to make sure the previous SOB is available (all the signals attached to it indeed finished). Signed-off-by: farah kassabri <fkassabri@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'certs/common.c')
0 files changed, 0 insertions, 0 deletions