Signed-off-by: Huang Rui <ray.hu...@amd.com>
Reviewed-by: Hawking Zhang <hawking.zh...@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c 
b/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
index fde1e5c..7712eb6 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
@@ -81,11 +81,15 @@ static int smu10_initialize_dpm_defaults(struct pp_hwmgr 
*hwmgr)
        smu10_data->thermal_auto_throttling_treshold = 0;
        smu10_data->is_nb_dpm_enabled = 1;
        smu10_data->dpm_flags = 1;
-       smu10_data->gfx_off_controled_by_driver = false;
        smu10_data->need_min_deep_sleep_dcefclk = true;
        smu10_data->num_active_display = 0;
        smu10_data->deep_sleep_dcefclk = 0;
 
+       if (hwmgr->feature_mask & PP_GFXOFF_MASK)
+               smu10_data->gfx_off_controled_by_driver = true;
+       else
+               smu10_data->gfx_off_controled_by_driver = false;
+
        phm_cap_unset(hwmgr->platform_descriptor.platformCaps,
                                        PHM_PlatformCaps_SclkDeepSleep);
 
-- 
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to