From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Subject: Re: [PATCH v2] drm/i915: Cantiga+ cannot handle a hsync front porch of 0 Date: Thu, 21 Jun 2012 15:16:42 +0300 Message-ID: <20120621121642.GZ13065@intel.com> References: <68e45eed497d3fef1ee9756f4648eb97b7fdd4aa.1340222977.git.jani.nikula@intel.com> <1340273999-13342-1-git-send-email-jani.nikula@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id 25732A0DA1 for ; Thu, 21 Jun 2012 05:26:13 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1340273999-13342-1-git-send-email-jani.nikula@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Jani Nikula Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Jun 21, 2012 at 01:19:59PM +0300, Jani Nikula wrote: > From: Chris Wilson > = > This addresses WaPruneModeWithIncorrectHsyncOffset. > = > Bugzilla: http://bugs.freedesktop.org/show_bug.cgi?id=3D50236 > Signed-off-by: Chris Wilson > Signed-off-by: Jani Nikula > = > --- > = > v2: drop patch 1/2, to be addressed later. > --- > drivers/gpu/drm/i915/intel_display.c | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > = > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/= intel_display.c > index 9730162..76516b9 100644 > --- a/drivers/gpu/drm/i915/intel_display.c > +++ b/drivers/gpu/drm/i915/intel_display.c > @@ -3420,6 +3420,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); > = > + /* WaPruneModeWithIncorrectHsyncOffset: Cantiga+ cannot handle modes > + * with a hsync front porch of 0. > + */ > + if ((INTEL_INFO(dev)->gen > 4 || IS_G4X(dev)) && > + adjusted_mode->hsync_start =3D=3D adjusted_mode->hdisplay) > + return false; Rejecting the mode seems quite drastic for something as small as this. How about we just push hsync_start forward a little bit? -- = Ville Syrj=E4l=E4 Intel OTC