Skip to content

Commit

Permalink
accel/habanalabs/gaudi: remove define used for simulator
Browse files Browse the repository at this point in the history
We don't support simulator in upstream.

Signed-off-by: Oded Gabbay <[email protected]>
Reviewed-by: Ofir Bitton <[email protected]>
  • Loading branch information
ogabbay committed Oct 9, 2023
1 parent 87c60e2 commit 4355f2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions drivers/accel/habanalabs/common/habanalabs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions drivers/accel/habanalabs/gaudi/gaudi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4355f2c

Please sign in to comment.