Commit d7f625e9 authored by Huang Rui's avatar Huang Rui Committed by Alex Deucher

drm/amdgpu: add ring test for page queue

We add page queue for sdma to update page table. So here it also needs ring test
to verify it workable during the initialization.
Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f783160c
...@@ -1150,6 +1150,15 @@ static int sdma_v4_0_start(struct amdgpu_device *adev) ...@@ -1150,6 +1150,15 @@ static int sdma_v4_0_start(struct amdgpu_device *adev)
return r; return r;
} }
if (adev->sdma.has_page_queue) {
ring = &adev->sdma.instance[i].page;
r = amdgpu_ring_test_ring(ring);
if (r) {
ring->ready = false;
return r;
}
}
if (adev->mman.buffer_funcs_ring == ring) if (adev->mman.buffer_funcs_ring == ring)
amdgpu_ttm_set_buffer_funcs_status(adev, true); amdgpu_ttm_set_buffer_funcs_status(adev, true);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment