Fix various issues with the clocks stuck on SI laptop dGPUs: * vblank mistake when there are no displays connected * forgot to notify SMU about DC->AC switch * inconsistent values in VBIOS
While we are at it, also implement the DC->AC notification for SMU7 as well, which is supposed to work the same way. Jeremy Klarenbeek (2): drm/amd/pm/si: Fix updating clock limits from power states drm/amd/pm/si: Notify the SMC when switching to AC Timur Kristóf (3): drm/amd/pm/si: Disregard vblank time when no displays are connected drm/amd/pm: Rename enable_bapm() to notify_ac_dc() drm/amd/pm/smu7: Notify SMU7 of DC->AC switch .../gpu/drm/amd/include/kgd_pp_interface.h | 2 +- drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 8 +-- drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c | 6 +-- drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 50 ++++++++++++++----- .../gpu/drm/amd/pm/powerplay/amd_powerplay.c | 12 +++++ .../drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c | 15 ++++++ drivers/gpu/drm/amd/pm/powerplay/inc/hwmgr.h | 1 + 7 files changed, 74 insertions(+), 20 deletions(-) -- 2.54.0
