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:
parent
6863bc8bb3
commit
ab3cb0ce9e
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue