Commit 4effa8db authored by Leo Liu's avatar Leo Liu Committed by Alex Deucher

drm/amdgpu/vcn2.5: fix the enc loop with hw fini

Signed-off-by: default avatarLeo Liu <leo.liu@amd.com>
Reviewed-by: default avatarJames Zhu <James.Zhu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d191bd67
...@@ -268,7 +268,7 @@ static int vcn_v2_5_hw_fini(void *handle) ...@@ -268,7 +268,7 @@ static int vcn_v2_5_hw_fini(void *handle)
{ {
struct amdgpu_device *adev = (struct amdgpu_device *)handle; struct amdgpu_device *adev = (struct amdgpu_device *)handle;
struct amdgpu_ring *ring; struct amdgpu_ring *ring;
int i; int i, j;
for (i = 0; i < adev->vcn.num_vcn_inst; ++i) { for (i = 0; i < adev->vcn.num_vcn_inst; ++i) {
if (adev->vcn.harvest_config & (1 << i)) if (adev->vcn.harvest_config & (1 << i))
...@@ -280,8 +280,8 @@ static int vcn_v2_5_hw_fini(void *handle) ...@@ -280,8 +280,8 @@ static int vcn_v2_5_hw_fini(void *handle)
ring->sched.ready = false; ring->sched.ready = false;
for (i = 0; i < adev->vcn.num_enc_rings; ++i) { for (j = 0; j < adev->vcn.num_enc_rings; ++j) {
ring = &adev->vcn.inst[i].ring_enc[i]; ring = &adev->vcn.inst[i].ring_enc[j];
ring->sched.ready = false; ring->sched.ready = false;
} }
} }
......
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