summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display
diff options
context:
space:
mode:
authorYongqiang Sun <yongqiang.sun@amd.com>2017-04-18 15:35:27 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 18:06:32 -0400
commitd4e745e3dbf43ad14759615d0236f6378db1ad4a (patch)
tree5ca080117e7526df2276e166c692472a5495a656 /drivers/gpu/drm/amd/display
parent974db151d48b6793fc2b708d1c3f9ceee735fc5a (diff)
downloadlinux-stable-d4e745e3dbf43ad14759615d0236f6378db1ad4a.tar.gz
linux-stable-d4e745e3dbf43ad14759615d0236f6378db1ad4a.tar.bz2
linux-stable-d4e745e3dbf43ad14759615d0236f6378db1ad4a.zip
drm/amd/display: set correct v_total_min and v_total_max for dce.
Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c4
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c
index 7070aaf9e433..69ae3a83d2fe 100644
--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c
+++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c
@@ -393,12 +393,12 @@ void dce110_timing_generator_set_drr(
params->vertical_total_min > 0) {
set_reg_field_value(v_total_max,
- params->vertical_total_max - 1,
+ params->vertical_total_max,
CRTC_V_TOTAL_MAX,
CRTC_V_TOTAL_MAX);
set_reg_field_value(v_total_min,
- params->vertical_total_min - 1,
+ params->vertical_total_min,
CRTC_V_TOTAL_MIN,
CRTC_V_TOTAL_MIN);
diff --git a/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c b/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c
index 1318df7ed47e..6e3e7b6bc58c 100644
--- a/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c
+++ b/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c
@@ -540,10 +540,10 @@ void dce120_timing_generator_set_drr(
CRTC_REG_UPDATE(
CRTC0_CRTC_V_TOTAL_MIN,
- CRTC_V_TOTAL_MIN, params->vertical_total_min - 1);
+ CRTC_V_TOTAL_MIN, params->vertical_total_min);
CRTC_REG_UPDATE(
CRTC0_CRTC_V_TOTAL_MAX,
- CRTC_V_TOTAL_MAX, params->vertical_total_max - 1);
+ CRTC_V_TOTAL_MAX, params->vertical_total_max);
CRTC_REG_SET_N(CRTC0_CRTC_V_TOTAL_CONTROL, 6,
FD(CRTC0_CRTC_V_TOTAL_CONTROL__CRTC_V_TOTAL_MIN_SEL), 1,
FD(CRTC0_CRTC_V_TOTAL_CONTROL__CRTC_V_TOTAL_MAX_SEL), 1,