Skip to content

Commit 6ea239a

Browse files
Tianci Yinalexdeucher
authored andcommitted
drm/amdgpu/vcn: improve vcn dpg stop procedure
Prior to disabling dpg, VCN need unpausing dpg mode, or VCN will hang in S3 resuming. Reviewed-by: James Zhu <James.Zhu@amd.com> Signed-off-by: Tianci Yin <tianci.yin@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent c565032 commit 6ea239a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,8 +1480,11 @@ static int vcn_v3_0_start_sriov(struct amdgpu_device *adev)
14801480

14811481
static int vcn_v3_0_stop_dpg_mode(struct amdgpu_device *adev, int inst_idx)
14821482
{
1483+
struct dpg_pause_state state = {.fw_based = VCN_DPG_STATE__UNPAUSE};
14831484
uint32_t tmp;
14841485

1486+
vcn_v3_0_pause_dpg_mode(adev, 0, &state);
1487+
14851488
/* Wait for power status to be 1 */
14861489
SOC15_WAIT_ON_RREG(VCN, inst_idx, mmUVD_POWER_STATUS, 1,
14871490
UVD_POWER_STATUS__UVD_POWER_STATUS_MASK);

0 commit comments

Comments
 (0)