Skip to content

Commit 64c54f0

Browse files
committed
drm/amdgpu/vcn4.0.3: re-emit unprocessed state on ring reset
Re-emit the unprocessed state after resetting the queue. Reviewed-by: Sathishkumar S <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent d156ba3 commit 64c54f0

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ static int vcn_v4_0_3_ring_reset(struct amdgpu_ring *ring,
16091609
if (!(adev->vcn.supported_reset & AMDGPU_RESET_TYPE_PER_QUEUE))
16101610
return -EOPNOTSUPP;
16111611

1612-
drm_sched_wqueue_stop(&ring->sched);
1612+
amdgpu_ring_reset_helper_begin(ring, timedout_fence);
16131613

16141614
vcn_inst = GET_INST(VCN, ring->me);
16151615
r = amdgpu_dpm_reset_vcn(adev, 1 << vcn_inst);
@@ -1624,12 +1624,8 @@ static int vcn_v4_0_3_ring_reset(struct amdgpu_ring *ring,
16241624
adev->vcn.caps |= AMDGPU_VCN_CAPS(RRMT_ENABLED);
16251625
vcn_v4_0_3_hw_init_inst(vinst);
16261626
vcn_v4_0_3_start_dpg_mode(vinst, adev->vcn.inst[ring->me].indirect_sram);
1627-
r = amdgpu_ring_test_helper(ring);
1628-
if (r)
1629-
return r;
1630-
amdgpu_fence_driver_force_completion(ring);
1631-
drm_sched_wqueue_start(&ring->sched);
1632-
return 0;
1627+
1628+
return amdgpu_ring_reset_helper_end(ring, timedout_fence);
16331629
}
16341630

16351631
static const struct amdgpu_ring_funcs vcn_v4_0_3_unified_ring_vm_funcs = {

0 commit comments

Comments
 (0)