Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/powerplay: fix mclk can't switch on Tonga

regression issue caused by
commit 47047263c52779f1f3393c32e3e53661b53a372e
("drm/amd/powerplay: delete eventmgr related files.")

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Rex Zhu and committed by
Alex Deucher
4b6aca2f 1756f1bb

+5 -2
-1
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
··· 292 292 293 293 phm_stop_thermal_controller(hwmgr); 294 294 psm_set_boot_states(hwmgr); 295 - phm_display_configuration_changed(hwmgr); 296 295 psm_adjust_power_state_dynamic(hwmgr, false, NULL); 297 296 phm_disable_dynamic_state_management(hwmgr); 298 297 phm_disable_clock_power_gatings(hwmgr);
+5 -1
drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c
··· 224 224 if (skip) 225 225 return 0; 226 226 227 + phm_display_configuration_changed(hwmgr); 228 + 227 229 if (new_ps != NULL) 228 230 requested = new_ps; 229 231 else ··· 234 232 pcurrent = hwmgr->current_ps; 235 233 236 234 phm_apply_state_adjust_rules(hwmgr, requested, pcurrent); 237 - 238 235 if (pcurrent == NULL || (0 != phm_check_states_equal(hwmgr, 239 236 &pcurrent->hardware, &requested->hardware, &equal))) 240 237 equal = false; ··· 242 241 phm_set_power_state(hwmgr, &pcurrent->hardware, &requested->hardware); 243 242 memcpy(hwmgr->current_ps, hwmgr->request_ps, hwmgr->ps_size); 244 243 } 244 + 245 + phm_notify_smc_display_config_after_ps_adjustment(hwmgr); 246 + 245 247 return 0; 246 248 } 247 249