Skip to content

Commit 4355f2c

Browse files
committed
accel/habanalabs/gaudi: remove define used for simulator
We don't support simulator in upstream. Signed-off-by: Oded Gabbay <[email protected]> Reviewed-by: Ofir Bitton <[email protected]>
1 parent 87c60e2 commit 4355f2c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

drivers/accel/habanalabs/common/habanalabs.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ struct hl_fpriv;
8585

8686
#define HL_PCI_ELBI_TIMEOUT_MSEC 10 /* 10ms */
8787

88-
#define HL_SIM_MAX_TIMEOUT_US 100000000 /* 100s */
89-
9088
#define HL_INVALID_QUEUE UINT_MAX
9189

9290
#define HL_COMMON_USER_CQ_INTERRUPT_ID 0xFFF

drivers/accel/habanalabs/gaudi/gaudi.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4623,8 +4623,7 @@ static int gaudi_scrub_device_dram(struct hl_device *hdev, u64 val)
46234623
static int gaudi_scrub_device_mem(struct hl_device *hdev)
46244624
{
46254625
struct asic_fixed_properties *prop = &hdev->asic_prop;
4626-
u64 wait_to_idle_time = hdev->pdev ? HBM_SCRUBBING_TIMEOUT_US :
4627-
min_t(u64, HBM_SCRUBBING_TIMEOUT_US * 10, HL_SIM_MAX_TIMEOUT_US);
4626+
u64 wait_to_idle_time = HBM_SCRUBBING_TIMEOUT_US;
46284627
u64 addr, size, val = hdev->memory_scrub_val;
46294628
ktime_t timeout;
46304629
int rc = 0;

0 commit comments

Comments
 (0)