From 2625cf572fca5e114e9dc58189c2c3af8a023b2b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 29 May 2012 15:04:26 +0100 Subject: [PATCH] drm/i915: Cantiga+ cannot handle a hsync front porch of 0 Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/intel_display.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 67ed819..8047090 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -3414,6 +3414,13 @@ static bool intel_crtc_mode_fixup(struct drm_crtc *crtc, if (!(adjusted_mode->private_flags & INTEL_MODE_CRTC_TIMINGS_SET)) drm_mode_set_crtcinfo(adjusted_mode, 0); + /* Cantiga+ cannot handle modes with a hsync front porch of 0: + * http://dt.igk.intel.com/wa_database/DetailsView/Show?wa_name_id=803 + */ + if ((INTEL_INFO(dev)->gen > 4 || IS_G4X(dev)) && + adjusted_mode->hdisplay == adjust_mode->hsync_start) + return false; + return true; } -- 1.7.10