diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2016-05-02 18:54:39 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-03 14:50:59 -0400 |
commit | 0126d4b9a516256f2432ca0dc78ab293a8255378 (patch) | |
tree | c3c49f6835749bb992a5bcb877f9c4c0aea5d3cb /drivers | |
parent | 3104b8128d4d646a574ed9d5b17c7d10752cd70b (diff) | |
download | linux-stable-0126d4b9a516256f2432ca0dc78ab293a8255378.tar.gz linux-stable-0126d4b9a516256f2432ca0dc78ab293a8255378.tar.bz2 linux-stable-0126d4b9a516256f2432ca0dc78ab293a8255378.zip |
drm/amdgpu: 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')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/atombios_encoders.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c b/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c index 1e0bba29e167..1cd6de575305 100644 --- a/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c +++ b/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c @@ -298,6 +298,10 @@ bool amdgpu_atombios_encoder_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 (amdgpu_encoder->active_device & (ATOM_DEVICE_LCD_SUPPORT)) amdgpu_panel_mode_fixup(encoder, adjusted_mode); |