drm/amdgpu: use kernel fence for gfx ib test

Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian K?nig <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <jammy.zhou@amd.com>
This commit is contained in:
Chunming Zhou 2015-08-03 13:19:43 +08:00 committed by Alex Deucher
parent 6863bc8bb3
commit ab3cb0ce9e
2 changed files with 2 additions and 2 deletions

View File

@ -2674,7 +2674,7 @@ static int gfx_v7_0_ring_test_ib(struct amdgpu_ring *ring)
if (r) if (r)
goto err2; goto err2;
r = amdgpu_fence_wait(ib.fence, false); r = fence_wait(&ib.fence->base, false);
if (r) { if (r) {
DRM_ERROR("amdgpu: fence wait failed (%d).\n", r); DRM_ERROR("amdgpu: fence wait failed (%d).\n", r);
goto err2; goto err2;

View File

@ -636,7 +636,7 @@ static int gfx_v8_0_ring_test_ib(struct amdgpu_ring *ring)
if (r) if (r)
goto err2; goto err2;
r = amdgpu_fence_wait(ib.fence, false); r = fence_wait(&ib.fence->base, false);
if (r) { if (r) {
DRM_ERROR("amdgpu: fence wait failed (%d).\n", r); DRM_ERROR("amdgpu: fence wait failed (%d).\n", r);
goto err2; goto err2;