]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 14:33:41 +0000 (07:33 -0700)
commit 60123300db80b17251b4de5e98c63e288c6f7b46 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c

index cf01177ca3b5e36eb845fe187f13b7135cde03b6..2ea012e88991d4f7d0bee9a658fd89da4ca5528c 100644 (file)
@@ -241,6 +241,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;