public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Oded Gabbay <ogabbay@kernel.org>
To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: [PATCH 8/9] accel/habanalabs/gaudi: remove define used for simulator
Date: Tue, 26 Sep 2023 11:13:44 +0300	[thread overview]
Message-ID: <20230926081345.240927-8-ogabbay@kernel.org> (raw)
In-Reply-To: <20230926081345.240927-1-ogabbay@kernel.org>

We don't support simulator in upstream.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
---
 drivers/accel/habanalabs/common/habanalabs.h | 2 --
 drivers/accel/habanalabs/gaudi/gaudi.c       | 3 +--
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/accel/habanalabs/common/habanalabs.h b/drivers/accel/habanalabs/common/habanalabs.h
index b1b1c51aa5b1..a8ccc04e7f92 100644
--- a/drivers/accel/habanalabs/common/habanalabs.h
+++ b/drivers/accel/habanalabs/common/habanalabs.h
@@ -85,8 +85,6 @@ struct hl_fpriv;
 
 #define HL_PCI_ELBI_TIMEOUT_MSEC	10 /* 10ms */
 
-#define HL_SIM_MAX_TIMEOUT_US		100000000 /* 100s */
-
 #define HL_INVALID_QUEUE		UINT_MAX
 
 #define HL_COMMON_USER_CQ_INTERRUPT_ID	0xFFF
diff --git a/drivers/accel/habanalabs/gaudi/gaudi.c b/drivers/accel/habanalabs/gaudi/gaudi.c
index 31e04af46876..53292d4c15c8 100644
--- a/drivers/accel/habanalabs/gaudi/gaudi.c
+++ b/drivers/accel/habanalabs/gaudi/gaudi.c
@@ -4623,8 +4623,7 @@ static int gaudi_scrub_device_dram(struct hl_device *hdev, u64 val)
 static int gaudi_scrub_device_mem(struct hl_device *hdev)
 {
 	struct asic_fixed_properties *prop = &hdev->asic_prop;
-	u64 wait_to_idle_time = hdev->pdev ? HBM_SCRUBBING_TIMEOUT_US :
-			min_t(u64, HBM_SCRUBBING_TIMEOUT_US * 10, HL_SIM_MAX_TIMEOUT_US);
+	u64 wait_to_idle_time = HBM_SCRUBBING_TIMEOUT_US;
 	u64 addr, size, val = hdev->memory_scrub_val;
 	ktime_t timeout;
 	int rc = 0;
-- 
2.34.1


  parent reply	other threads:[~2023-09-26  8:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-26  8:13 [PATCH 1/9] accel/habanalabs: minor cosmetics update to cpucp_if.h Oded Gabbay
2023-09-26  8:13 ` [PATCH 2/9] accel/habanalabs: minor cosmetics update to trace file Oded Gabbay
2023-09-26  8:13 ` [PATCH 3/9] accel/habanalabs: change Greco to Gaudi2 Oded Gabbay
2023-09-26  8:13 ` [PATCH 4/9] accel/habanalabs/gaudi: remove unused structure definition Oded Gabbay
2023-09-26  8:13 ` [PATCH 5/9] accel/habanalabs: remove unused field Oded Gabbay
2023-09-26  8:13 ` [PATCH 6/9] accel/habanalabs: print device name when it is removed Oded Gabbay
2023-09-26  8:13 ` [PATCH 7/9] accel/habanalabs: remove leftover code Oded Gabbay
2023-09-26  8:13 ` Oded Gabbay [this message]
2023-09-26  8:13 ` [PATCH 9/9] accel/habanalabs: minor cosmetic update to habanalabs.h Oded Gabbay
2023-10-01  9:13 ` [PATCH 1/9] accel/habanalabs: minor cosmetics update to cpucp_if.h Ofir Bitton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230926081345.240927-8-ogabbay@kernel.org \
    --to=ogabbay@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox