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

drm/amdgpu: Adjust IB test timeout for XGMI configuration

On XGMI configuration the ib test may take longer to finish

Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

shaoyunl and committed by
Alex Deucher
d4162c61 e7ad8855

+3
+3
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
··· 35 35 #include "amdgpu_trace.h" 36 36 37 37 #define AMDGPU_IB_TEST_TIMEOUT msecs_to_jiffies(1000) 38 + #define AMDGPU_IB_TEST_GFX_XGMI_TIMEOUT msecs_to_jiffies(2000) 38 39 39 40 /* 40 41 * IB ··· 345 344 * cost waiting for it coming back under RUNTIME only 346 345 */ 347 346 tmo_gfx = 8 * AMDGPU_IB_TEST_TIMEOUT; 347 + } else if (adev->gmc.xgmi.hive_id) { 348 + tmo_gfx = AMDGPU_IB_TEST_GFX_XGMI_TIMEOUT; 348 349 } 349 350 350 351 for (i = 0; i < adev->num_rings; ++i) {