Skip to content

Commit 803f318

Browse files
EmilyDeng666alexdeucher
authored andcommitted
drm/amdgpu/vcn: Need to unpause dpg before stop dpg
Need to unpause dpg first, or it will hit follow error during stop dpg: "[drm] Register(1) [regUVD_POWER_STATUS] failed to reach value 0x00000001 != 0x00000000n" Signed-off-by: Emily Deng <[email protected]> Reviewed-by: Leo Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 67af691 commit 803f318

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,8 +1424,10 @@ static int vcn_v4_0_start_sriov(struct amdgpu_device *adev)
14241424
*/
14251425
static void vcn_v4_0_stop_dpg_mode(struct amdgpu_device *adev, int inst_idx)
14261426
{
1427+
struct dpg_pause_state state = {.fw_based = VCN_DPG_STATE__UNPAUSE};
14271428
uint32_t tmp;
14281429

1430+
vcn_v4_0_pause_dpg_mode(adev, inst_idx, &state);
14291431
/* Wait for power status to be 1 */
14301432
SOC15_WAIT_ON_RREG(VCN, inst_idx, regUVD_POWER_STATUS, 1,
14311433
UVD_POWER_STATUS__UVD_POWER_STATUS_MASK);

0 commit comments

Comments
 (0)