diff options
author | shaoyunl <shaoyun.liu@amd.com> | 2019-04-01 22:09:34 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-04-04 17:21:14 +0200 |
commit | d4162c61e253177936fcfe6c29f7b224d9a1efb8 (patch) | |
tree | 7c8935f4f3033e45c3088788e23dcfc4e01349c8 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
parent | drm/amdkfd: Add picasso pci id (diff) | |
download | linux-d4162c61e253177936fcfe6c29f7b224d9a1efb8.tar.xz linux-d4162c61e253177936fcfe6c29f7b224d9a1efb8.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c index 0b8ef2d27d6b..fe393a46f881 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c @@ -35,6 +35,7 @@ #include "amdgpu_trace.h" #define AMDGPU_IB_TEST_TIMEOUT msecs_to_jiffies(1000) +#define AMDGPU_IB_TEST_GFX_XGMI_TIMEOUT msecs_to_jiffies(2000) /* * IB @@ -344,6 +345,8 @@ int amdgpu_ib_ring_tests(struct amdgpu_device *adev) * cost waiting for it coming back under RUNTIME only */ tmo_gfx = 8 * AMDGPU_IB_TEST_TIMEOUT; + } else if (adev->gmc.xgmi.hive_id) { + tmo_gfx = AMDGPU_IB_TEST_GFX_XGMI_TIMEOUT; } for (i = 0; i < adev->num_rings; ++i) { |