Skip to content

Commit ce04326

Browse files
oshpigelmanogabbay
authored andcommitted
habanalabs: increase h/w timer when checking idle
In GAUDI the current timer value for the hardware to check if it is in IDLE state is too low. As a result, there are occasions where the H/W wrongly reports it is not IDLE. The driver checks that before submitting work on behalf of the driver during initialization, so a false report might cause the driver to fail during device initialization. Signed-off-by: Omer Shpigelman <[email protected]> Signed-off-by: Oded Gabbay <[email protected]>
1 parent 3292055 commit ce04326

File tree

1 file changed

+2
-0
lines changed
  • drivers/misc/habanalabs/gaudi

1 file changed

+2
-0
lines changed

drivers/misc/habanalabs/gaudi/gaudi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,6 +1893,8 @@ static void gaudi_init_pci_dma_qman(struct hl_device *hdev, int dma_id,
18931893
WREG32(mmDMA0_QM_CP_MSG_BASE3_ADDR_LO_0 + q_off, so_base_ws_lo);
18941894
WREG32(mmDMA0_QM_CP_MSG_BASE3_ADDR_HI_0 + q_off, so_base_ws_hi);
18951895

1896+
WREG32(mmDMA0_QM_CP_BARRIER_CFG_0 + q_off, 0x100);
1897+
18961898
/* The following configuration is needed only once per QMAN */
18971899
if (qman_id == 0) {
18981900
/* Configure RAZWI IRQ */

0 commit comments

Comments
 (0)