drm/amdgpu: use kernel fence for gfx ib test
authorChunming Zhou <david1.zhou@amd.com>
Mon, 3 Aug 2015 05:19:43 +0000 (13:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 20:50:53 +0000 (16:50 -0400)
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>
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c

index 5fc104bd9c027ec70ef8604722daa7fcdb2e4e72..521d811996f9d42cb275706e083ed401751cb99a 100644 (file)
@@ -2674,7 +2674,7 @@ static int gfx_v7_0_ring_test_ib(struct amdgpu_ring *ring)
        if (r)
                goto err2;
 
-       r = amdgpu_fence_wait(ib.fence, false);
+       r = fence_wait(&ib.fence->base, false);
        if (r) {
                DRM_ERROR("amdgpu: fence wait failed (%d).\n", r);
                goto err2;
index 81fa592cc77a0b2a6147f6e19989fa1880fadfae..59eae93804c351d47e9d42ba19eb8f1c3b0375ec 100644 (file)
@@ -636,7 +636,7 @@ static int gfx_v8_0_ring_test_ib(struct amdgpu_ring *ring)
        if (r)
                goto err2;
 
-       r = amdgpu_fence_wait(ib.fence, false);
+       r = fence_wait(&ib.fence->base, false);
        if (r) {
                DRM_ERROR("amdgpu: fence wait failed (%d).\n", r);
                goto err2;