diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2016-05-03 00:53:27 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-03 20:50:54 +0200 |
commit | 3104b8128d4d646a574ed9d5b17c7d10752cd70b (patch) | |
tree | 45bd2f437f026af7c6e825bb60bab7b6d2100f78 /drivers/gpu/drm/radeon/atombios_encoders.c | |
parent | drm/amdgpu: set metadata pointer to NULL after freeing. (diff) | |
download | linux-3104b8128d4d646a574ed9d5b17c7d10752cd70b.tar.xz linux-3104b8128d4d646a574ed9d5b17c7d10752cd70b.zip |
drm/radeon: make sure vertical front porch is at least 1
hw doesn't like a 0 value.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/radeon/atombios_encoders.c')
-rw-r--r-- | drivers/gpu/drm/radeon/atombios_encoders.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu/drm/radeon/atombios_encoders.c index edd05cdb0cd8..587cae4e73c9 100644 --- a/drivers/gpu/drm/radeon/atombios_encoders.c +++ b/drivers/gpu/drm/radeon/atombios_encoders.c @@ -310,6 +310,10 @@ static bool radeon_atom_mode_fixup(struct drm_encoder *encoder, && (mode->crtc_vsync_start < (mode->crtc_vdisplay + 2))) adjusted_mode->crtc_vsync_start = adjusted_mode->crtc_vdisplay + 2; + /* vertical FP must be at least 1 */ + if (mode->crtc_vsync_start == mode->crtc_vdisplay) + adjusted_mode->crtc_vsync_start++; + /* get the native mode for scaling */ if (radeon_encoder->active_device & (ATOM_DEVICE_LCD_SUPPORT)) { radeon_panel_mode_fixup(encoder, adjusted_mode); |