Skip to contentSkip to conversation

Patch "drm/radeon: make sure vertical front porch is at least 1" has been added to the 4.5-stable tree

PATCH [email protected] 1 participant 1 message May 8, 2016

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

drm/radeon: make sure vertical front porch is at least 1

to the 4.5-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
drm-radeon-make-sure-vertical-front-porch-is-at-least-1.patch
and it can be found in the queue-4.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 3104b8128d4d646a574ed9d5b17c7d10752cd70b Mon Sep 17 00:00:00 2001

From: Alex Deucher <[email protected]>
Date: Mon, 2 May 2016 18:53:27 -0400
Subject: drm/radeon: make sure vertical front porch is at least 1

From: Alex Deucher <[email protected]>

commit 3104b8128d4d646a574ed9d5b17c7d10752cd70b upstream.

hw doesn't like a 0 value.

---
 drivers/gpu/drm/radeon/atombios_encoders.c |    4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/radeon/atombios_encoders.c +4 -0
@@ -310,6 +310,10 @@ static bool radeon_atom_mode_fixup(struc
 	    && (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);

Patches currently in stable-queue which might be from [email protected] are

queue-4.5/drm-radeon-make-sure-vertical-front-porch-is-at-least-1.patch queue-4.5/drm-amdgpu-set-metadata-pointer-to-null-after-freeing.patch queue-4.5/drm-amdgpu-make-sure-vertical-front-porch-is-at-least-1.patch