Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <oshpigelman@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>

authored by

Omer Shpigelman and committed by
Oded Gabbay
ce04326e 3292055c

+2
+2
drivers/misc/habanalabs/gaudi/gaudi.c
··· 1893 1893 WREG32(mmDMA0_QM_CP_MSG_BASE3_ADDR_LO_0 + q_off, so_base_ws_lo); 1894 1894 WREG32(mmDMA0_QM_CP_MSG_BASE3_ADDR_HI_0 + q_off, so_base_ws_hi); 1895 1895 1896 + WREG32(mmDMA0_QM_CP_BARRIER_CFG_0 + q_off, 0x100); 1897 + 1896 1898 /* The following configuration is needed only once per QMAN */ 1897 1899 if (qman_id == 0) { 1898 1900 /* Configure RAZWI IRQ */