From a7a3cc44d774591694770d6b8fb3e0f4da0c604b Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 21 Apr 2022 09:45:53 +0000 Subject: [PATCH] drm/amdgpu/vcn: improve vcn dpg stop procedure From Tianci Yin 9f0fabf30b486e3d5c9b578073cea369ffc05c43 in linux 5.15.y/5.15.35 6ea239adc2a712eb318f04f5c29b018ba65ea38a in mainline linux --- sys/dev/pci/drm/amd/amdgpu/vcn_v3_0.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/pci/drm/amd/amdgpu/vcn_v3_0.c b/sys/dev/pci/drm/amd/amdgpu/vcn_v3_0.c index 0afd3f7eb0b..a47a0e8f06d 100644 --- a/sys/dev/pci/drm/amd/amdgpu/vcn_v3_0.c +++ b/sys/dev/pci/drm/amd/amdgpu/vcn_v3_0.c @@ -1508,8 +1508,11 @@ static int vcn_v3_0_start_sriov(struct amdgpu_device *adev) static int vcn_v3_0_stop_dpg_mode(struct amdgpu_device *adev, int inst_idx) { + struct dpg_pause_state state = {.fw_based = VCN_DPG_STATE__UNPAUSE}; uint32_t tmp; + vcn_v3_0_pause_dpg_mode(adev, 0, &state); + /* Wait for power status to be 1 */ SOC15_WAIT_ON_RREG(VCN, inst_idx, mmUVD_POWER_STATUS, 1, UVD_POWER_STATUS__UVD_POWER_STATUS_MASK); -- 2.20.1