[PATCH 3/3] drm/amdgpu: do not block gpu resume when cp ring test failed.
Rex Zhu
Rex.Zhu at amd.com
Thu Mar 30 05:42:18 UTC 2017
As kiq enabled, ring test may randomly failed because of timing.
it was not critial error, gpu can continue to resume.
Change-Id: I5d85c7d5b5989dd6892a13b47a5322b33e8a48ac
Signed-off-by: Rex Zhu <Rex.Zhu at amd.com>
---
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
index 31b1312..cdda93b 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
@@ -4975,8 +4975,7 @@ static int gfx_v8_0_kiq_resume(struct amdgpu_device *adev)
goto done;
ring->ready = true;
- r = amdgpu_ring_test_ring(ring);
- if (r)
+ if (amdgpu_ring_test_ring(ring))
ring->ready = false;
}
--
1.9.1
More information about the amd-gfx
mailing list