summaryrefslogtreecommitdiff
path: root/drivers/accel/habanalabs/common/command_submission.c
diff options
context:
space:
mode:
authorOded Gabbay <ogabbay@kernel.org>2023-09-21 16:34:28 +0300
committerOded Gabbay <ogabbay@kernel.org>2023-10-09 12:37:24 +0300
commit87c60e23f26bac0a9d6dbcd020ffce483997990c (patch)
tree825ef04e808b8e3fb38d4046b896b679cb37f49a /drivers/accel/habanalabs/common/command_submission.c
parent6fc69ca84af7cb78fca05d4b44b55098237d8d9e (diff)
downloadlinux-87c60e23f26bac0a9d6dbcd020ffce483997990c.tar.xz
accel/habanalabs: remove leftover code
This code was added as part of a bigger feature which was never upstreamed, so remove this code. Signed-off-by: Oded Gabbay <ogabbay@kernel.org> Reviewed-by: Ofir Bitton <obitton@habana.ai>
Diffstat (limited to 'drivers/accel/habanalabs/common/command_submission.c')
-rw-r--r--drivers/accel/habanalabs/common/command_submission.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/accel/habanalabs/common/command_submission.c b/drivers/accel/habanalabs/common/command_submission.c
index e5ca490b7fca..4f7b70d9754c 100644
--- a/drivers/accel/habanalabs/common/command_submission.c
+++ b/drivers/accel/habanalabs/common/command_submission.c
@@ -1751,16 +1751,11 @@ static int hl_cs_ctx_switch(struct hl_fpriv *hpriv, union hl_cs_args *args,
/* Need to wait for restore completion before execution phase */
if (num_chunks) {
enum hl_cs_wait_status status;
-wait_again:
+
ret = _hl_cs_wait_ioctl(hdev, ctx,
jiffies_to_usecs(hdev->timeout_jiffies),
*cs_seq, &status, NULL);
if (ret) {
- if (ret == -ERESTARTSYS) {
- usleep_range(100, 200);
- goto wait_again;
- }
-
dev_err(hdev->dev,
"Restore CS for context %d failed to complete %d\n",
ctx->asid, ret);