[kernel] r16362 - in dists/trunk/linux-2.6/debian: . patches/bugfix/x86 patches/series

Ben Hutchings benh at alioth.debian.org
Mon Sep 27 23:54:32 UTC 2010


Author: benh
Date: Mon Sep 27 23:54:29 2010
New Revision: 16362

Log:
drm/i915: Ensure that the crtcinfo is populated during mode_fixup() (Closes: #592415)

Added:
   dists/trunk/linux-2.6/debian/patches/bugfix/x86/drm-i915-Ensure-that-the-crtcinfo-is-populated-during-mode_fixup.patch
   dists/trunk/linux-2.6/debian/patches/series/1~experimental.2
Modified:
   dists/trunk/linux-2.6/debian/changelog

Modified: dists/trunk/linux-2.6/debian/changelog
==============================================================================
--- dists/trunk/linux-2.6/debian/changelog	Mon Sep 27 11:43:51 2010	(r16361)
+++ dists/trunk/linux-2.6/debian/changelog	Mon Sep 27 23:54:29 2010	(r16362)
@@ -2,6 +2,8 @@
 
   [ Ben Hutchings ]
   * linux-base: Remove dependency on libapt-pkg-perl (Closes: #589996, really)
+  * drm/i915: Ensure that the crtcinfo is populated during mode_fixup()
+    (Closes: #592415)
 
  -- Ben Hutchings <ben at decadent.org.uk>  Sun, 26 Sep 2010 15:34:10 +0100
 

Added: dists/trunk/linux-2.6/debian/patches/bugfix/x86/drm-i915-Ensure-that-the-crtcinfo-is-populated-during-mode_fixup.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/trunk/linux-2.6/debian/patches/bugfix/x86/drm-i915-Ensure-that-the-crtcinfo-is-populated-during-mode_fixup.patch	Mon Sep 27 23:54:29 2010	(r16362)
@@ -0,0 +1,42 @@
+From: Chris Wilson <chris at chris-wilson.co.uk>
+Date: Sun, 12 Sep 2010 18:25:19 +0100
+Subject: [PATCH] drm/i915: Ensure that the crtcinfo is populated during mode_fixup()
+
+commit 532db7fe1fd75f20f3abf959419d160fb7850aff upstream.
+
+This should fix the mysterious mode setting failures reported during
+boot up and after resume, generally for i8xx class machines.
+
+Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=16478
+Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
+---
+ drivers/gpu/drm/i915/intel_display.c |    8 ++++++++
+ 1 files changed, 8 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
+index 161f6ea..1698c52 100644
+--- a/drivers/gpu/drm/i915/intel_display.c
++++ b/drivers/gpu/drm/i915/intel_display.c
+@@ -2477,11 +2477,19 @@ static bool intel_crtc_mode_fixup(struct drm_crtc *crtc,
+ 				  struct drm_display_mode *adjusted_mode)
+ {
+ 	struct drm_device *dev = crtc->dev;
++
+ 	if (HAS_PCH_SPLIT(dev)) {
+ 		/* FDI link clock is fixed at 2.7G */
+ 		if (mode->clock * 3 > IRONLAKE_FDI_FREQ * 4)
+ 			return false;
+ 	}
++
++	/* XXX some encoders set the crtcinfo, others don't.
++	 * Obviously we need some form of conflict resolution here...
++	 */
++	if (adjusted_mode->crtc_htotal == 0)
++		drm_mode_set_crtcinfo(adjusted_mode, 0);
++
+ 	return true;
+ }
+ 
+-- 
+1.7.3
+

Added: dists/trunk/linux-2.6/debian/patches/series/1~experimental.2
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/trunk/linux-2.6/debian/patches/series/1~experimental.2	Mon Sep 27 23:54:29 2010	(r16362)
@@ -0,0 +1 @@
++ bugfix/x86/drm-i915-Ensure-that-the-crtcinfo-is-populated-during-mode_fixup.patch



More information about the Kernel-svn-changes mailing list