]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/amd/powerplay: add uvd/vce dpm enabling flag to fix the performance issue for CZ
authorEric Huang <JinHuiEric.Huang@amd.com>
Tue, 15 Mar 2016 21:00:22 +0000 (17:00 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Mar 2016 22:02:21 +0000 (18:02 -0400)
Set the UVD and VCE DPM flags otherwise UVD and VCE DPM won't get enabled.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c

index 7fdaf8c3f7a9db1f00c8e4712ea7c4d7ce4f6359..8d1535d33a662f8735b24a2b6a09882f3fa4a9e7 100644 (file)
@@ -239,6 +239,11 @@ static int cz_initialize_dpm_defaults(struct pp_hwmgr *hwmgr)
        phm_cap_set(hwmgr->platform_descriptor.platformCaps,
                                        PHM_PlatformCaps_DynamicUVDState);
 
+       phm_cap_set(hwmgr->platform_descriptor.platformCaps,
+                       PHM_PlatformCaps_UVDDPM);
+       phm_cap_set(hwmgr->platform_descriptor.platformCaps,
+                       PHM_PlatformCaps_VCEDPM);
+
        cz_hwmgr->cc6_settings.cpu_cc6_disable = false;
        cz_hwmgr->cc6_settings.cpu_pstate_disable = false;
        cz_hwmgr->cc6_settings.nb_pstate_switch_disable = false;