mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-05-31 03:25:34 +00:00
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: Huang Rui <ray.huang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
f783160c27
commit
d7f625e91b
1 changed files with 9 additions and 0 deletions
|
@ -1150,6 +1150,15 @@ static int sdma_v4_0_start(struct amdgpu_device *adev)
|
|||
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)
|
||||
amdgpu_ttm_set_buffer_funcs_status(adev, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue