accel/habanalabs: remove leftover code
authorOded Gabbay <ogabbay@kernel.org>
Thu, 21 Sep 2023 13:34:28 +0000 (16:34 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 9 Oct 2023 09:37:24 +0000 (12:37 +0300)
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>
drivers/accel/habanalabs/common/command_submission.c

index e5ca490b7fcad763dc8bf38f42a77eaeb5e836d2..4f7b70d9754c314a7945adecae6833af89a5ef77 100644 (file)
@@ -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);