]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/amdgpu/vcn:Set VCPU busy after gate power during vcn SPG start
authorJames Zhu <James.Zhu@amd.com>
Tue, 9 Oct 2018 20:59:57 +0000 (16:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 12 Oct 2018 17:55:52 +0000 (12:55 -0500)
Set VCPU busy after gate power during vcn Static Power Gate start

Signed-off-by: James Zhu <James.Zhu@amd.com>
Acked-by: Leo Liu <leo.liu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c

index 153f23acf8dd2d151eefea6d667b984baf6bdc42..d8fe14d43db0c4ae185c307586116f752cfe6e66 100644 (file)
@@ -777,6 +777,10 @@ static int vcn_v1_0_start_spg_mode(struct amdgpu_device *adev)
        lmi_swap_cntl = 0;
 
        vcn_1_0_disable_static_power_gating(adev);
+
+       tmp = RREG32_SOC15(UVD, 0, mmUVD_STATUS) | UVD_STATUS__UVD_BUSY;
+       WREG32_SOC15(UVD, 0, mmUVD_STATUS, tmp);
+
        /* disable clock gating */
        vcn_v1_0_disable_clock_gating(adev);