Skip to content

Commit

Permalink
drm/amdgpu: add unified queue support on vcn_v4_0_3
Browse files Browse the repository at this point in the history
Add unified queue support on vcn_v4_0_3.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Acked-by Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
James Zhu authored and Alex Deucher committed Jun 9, 2023
1 parent 2d7f1d5 commit da044aa
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 80 deletions.
9 changes: 6 additions & 3 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1004,11 +1004,14 @@ int amdgpu_vcn_enc_ring_test_ib(struct amdgpu_ring *ring, long timeout)

int amdgpu_vcn_unified_ring_test_ib(struct amdgpu_ring *ring, long timeout)
{
struct amdgpu_device *adev = ring->adev;
long r;

r = amdgpu_vcn_enc_ring_test_ib(ring, timeout);
if (r)
goto error;
if (adev->ip_versions[UVD_HWIP][0] != IP_VERSION(4, 0, 3)) {
r = amdgpu_vcn_enc_ring_test_ib(ring, timeout);
if (r)
goto error;
}

r = amdgpu_vcn_dec_sw_ring_test_ib(ring, timeout);

Expand Down
Loading

0 comments on commit da044aa

Please sign in to comment.