aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-07-05 15:07:17 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-07-29 14:37:04 -0400
commitbbec97aae660adafa5208c5defc54e3cbbe6b129 (patch)
treedeb3ede843224998cbb28f895b6f26828583770d /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
parent8de190c9f44204810440e26ac09913a1fa40aa36 (diff)
drm/amdgpu: add a fence timeout for the IB tests v2
10ms should be enough for now. v2: fix some typos in CIK code Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> 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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
index 428ebf3a4387..050062e07a44 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
@@ -33,6 +33,8 @@
33#include "amdgpu.h" 33#include "amdgpu.h"
34#include "atom.h" 34#include "atom.h"
35 35
36#define AMDGPU_IB_TEST_TIMEOUT msecs_to_jiffies(10)
37
36/* 38/*
37 * IB 39 * IB
38 * IBs (Indirect Buffers) and areas of GPU accessible memory where 40 * IBs (Indirect Buffers) and areas of GPU accessible memory where
@@ -286,7 +288,7 @@ int amdgpu_ib_ring_tests(struct amdgpu_device *adev)
286 if (!ring || !ring->ready) 288 if (!ring || !ring->ready)
287 continue; 289 continue;
288 290
289 r = amdgpu_ring_test_ib(ring); 291 r = amdgpu_ring_test_ib(ring, AMDGPU_IB_TEST_TIMEOUT);
290 if (r) { 292 if (r) {
291 ring->ready = false; 293 ring->ready = false;
292 294