aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2018-08-09 14:24:08 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-08-27 11:10:12 -0500
commitec2e082a79b5d46addf2e7b83a13fb015fca6149 (patch)
tree874e6fb89a44907499bf2a0384938f7a0044bc46 /drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.h
parentdrm/amdgpu: fix emit frame size and comments for jpeg (diff)
downloadlinux-dev-ec2e082a79b5d46addf2e7b83a13fb015fca6149.tar.xz
linux-dev-ec2e082a79b5d46addf2e7b83a13fb015fca6149.zip
drm/amdgpu/powerplay: check vrefresh when when changing displays
Compare the current vrefresh in addition to the number of displays when determining whether or not the smu needs updates when changing modes. The SMU needs to be updated if the vbi timeout changes due to a different refresh rate. Fixes flickering around mode changes in some cases on polaris parts. Reviewed-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.h')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.h b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.h
index 3784ce6e50ab..69d361f8dfca 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.h
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.h
@@ -156,6 +156,7 @@ struct smu7_vbios_boot_state {
struct smu7_display_timing {
uint32_t min_clock_in_sr;
uint32_t num_existing_displays;
+ uint32_t vrefresh;
};
struct smu7_dpmlevel_enable_mask {