Skip to contentSkip to conversation

Patch "drm/mgag200: Reject non-character-cell-aligned mode widths" has been added to the 3.14-stable tree

PATCH [email protected] 1 participant 1 message Jun 23, 2015

Subsystems (4)
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/mgag200: Reject non-character-cell-aligned mode widths

to the 3.14-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-mgag200-reject-non-character-cell-aligned-mode-widths.patch
and it can be found in the queue-3.14 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 25161084b1c1b0c29948f6f77266a35f302196b7 Mon Sep 17 00:00:00 2001

From: Adam Jackson <[email protected]>
Date: Mon, 15 Jun 2015 16:16:15 -0400
Subject: drm/mgag200: Reject non-character-cell-aligned mode widths

From: Adam Jackson <[email protected]>

commit 25161084b1c1b0c29948f6f77266a35f302196b7 upstream.

Turns out 1366x768 does not in fact work on this hardware.

---
 drivers/gpu/drm/mgag200/mgag200_mode.c |    5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/mgag200/mgag200_mode.c +5 -0
@@ -1529,6 +1529,11 @@ static int mga_vga_mode_valid(struct drm
 		return MODE_BANDWIDTH;
 	}
 
+	if ((mode->hdisplay % 8) != 0 || (mode->hsync_start % 8) != 0 ||
+	    (mode->hsync_end % 8) != 0 || (mode->htotal % 8) != 0) {
+		return MODE_H_ILLEGAL;
+	}
+
 	if (mode->crtc_hdisplay > 2048 || mode->crtc_hsync_start > 4096 ||
 	    mode->crtc_hsync_end > 4096 || mode->crtc_htotal > 4096 ||
 	    mode->crtc_vdisplay > 2048 || mode->crtc_vsync_start > 4096 ||

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

queue-3.14/drm-mgag200-reject-non-character-cell-aligned-mode-widths.patch --
To unsubscribe from this list: send the line "unsubscribe stable" in