commit | 42254c2a4991b98ca3f86040a1a7b7b32a0c8c4a | [log] [tgz] |
---|---|---|
author | farah kassabri <fkassabri@habana.ai> | Sun Sep 12 14:30:35 2021 +0300 |
committer | Oded Gabbay <ogabbay@kernel.org> | Tue Sep 14 15:00:04 2021 +0300 |
tree | 1daffe4f49956c2dc62249d98fc95f1bf59f7461 | |
parent | 3d3200ae167ba048a29e0c815987a3fdc90fc8d2 [diff] |
habanalabs: fix wait offset handling Add handling for case where the user doesn't set wait offset, and keeps it as 0. In such a case the driver will decrement one from this zero value which will cause the code to wait for wrong number of signals. The solution is to treat this case as in legacy wait cs, and wait for the next signal. Signed-off-by: farah kassabri <fkassabri@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>