drm/amdgpu/vcn: leave all dpg mode unpause in idle work
Subsystems (2)
PATCH 1/1 drm/amdgpu/vcn: leave all dpg mode unpause in idle work
Leave all dpg mode unpause in idle work to fix VCN2.* timeout issue during transcoding.
Signed-off-by James Zhu <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +2 -11
@@ -329,20 +329,11 @@ void amdgpu_vcn_ring_begin_use(struct amdgpu_ring *ring)if (adev->pg_flags &AMD_PG_SUPPORT_VCN_DPG ) {struct dpg_pause_state new_state; -unsigned int fences =0 ; -unsigned int i; - -for (i =0 ; i < adev->vcn.num_enc_rings; ++i) { - fences +=amdgpu_fence_count_emitted (&adev->vcn.inst[ring->me].ring_enc[i]); - } -if (fences) - new_state.fw_based =VCN_DPG_STATE__PAUSE ; -else - new_state.fw_based =VCN_DPG_STATE__UNPAUSE ;if (ring->funcs->type ==AMDGPU_RING_TYPE_VCN_ENC ) new_state.fw_based =VCN_DPG_STATE__PAUSE ; - +else + new_state.fw_based = adev->vcn.pause_state.fw_based; adev->vcn.pause_dpg_mode (adev, ring->me, &new_state); } }
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx