diff options
author | Huang Rui <ray.huang@amd.com> | 2017-12-14 02:33:53 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-05-15 14:43:43 -0400 |
commit | f5264548008a5cde7090c2b6b85c8d65cb86d2f7 (patch) | |
tree | e052d6f95b192c764462a4c2b3cb2d547bdde6ec /drivers | |
parent | 9ac4b0d95a7a554bb60d97fbee5fbfd1b73df50a (diff) |
drm/amd/powerplay: use the flag to decide whether send gfxoff smc message
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c index fde1e5c00a3c..7712eb62539a 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) | |||
81 | smu10_data->thermal_auto_throttling_treshold = 0; | 81 | smu10_data->thermal_auto_throttling_treshold = 0; |
82 | smu10_data->is_nb_dpm_enabled = 1; | 82 | smu10_data->is_nb_dpm_enabled = 1; |
83 | smu10_data->dpm_flags = 1; | 83 | smu10_data->dpm_flags = 1; |
84 | smu10_data->gfx_off_controled_by_driver = false; | ||
85 | smu10_data->need_min_deep_sleep_dcefclk = true; | 84 | smu10_data->need_min_deep_sleep_dcefclk = true; |
86 | smu10_data->num_active_display = 0; | 85 | smu10_data->num_active_display = 0; |
87 | smu10_data->deep_sleep_dcefclk = 0; | 86 | smu10_data->deep_sleep_dcefclk = 0; |
88 | 87 | ||
88 | if (hwmgr->feature_mask & PP_GFXOFF_MASK) | ||
89 | smu10_data->gfx_off_controled_by_driver = true; | ||
90 | else | ||
91 | smu10_data->gfx_off_controled_by_driver = false; | ||
92 | |||
89 | phm_cap_unset(hwmgr->platform_descriptor.platformCaps, | 93 | phm_cap_unset(hwmgr->platform_descriptor.platformCaps, |
90 | PHM_PlatformCaps_SclkDeepSleep); | 94 | PHM_PlatformCaps_SclkDeepSleep); |
91 | 95 | ||