From: Paul Menzel Subject: Re: [PATCH] drm/modes: Fix CVT-R modeline generation Date: Sat, 28 Aug 2010 22:13:25 +0200 Message-ID: <1283026405.3735.12.camel@mattotaupa> References: <1282573154-28981-1-git-send-email-ajax@redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1920681412==" Return-path: Received: from mail.gw90.de (mail.gw90.de [188.40.100.199]) by gabe.freedesktop.org (Postfix) with ESMTP id 9C3A89E74D for ; Sat, 28 Aug 2010 14:35:23 -0700 (PDT) Received: from g225138254.adsl.alicedsl.de ([92.225.138.254] helo=[192.168.178.21]) by mail.gw90.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1OpRmL-0002qu-GK for dri-devel@lists.freedesktop.org; Sat, 28 Aug 2010 20:13:29 +0000 In-Reply-To: <1282573154-28981-1-git-send-email-ajax@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1920681412== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-jmIIiR5C0w3Z2GtXYYf0" --=-jmIIiR5C0w3Z2GtXYYf0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Am Montag, den 23.08.2010, 10:19 -0400 schrieb Adam Jackson: > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=3D16651 >=20 > Signed-off-by: Adam Jackson > --- > drivers/gpu/drm/drm_modes.c | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) >=20 > diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c > index f1f473e..949326d 100644 > --- a/drivers/gpu/drm/drm_modes.c > +++ b/drivers/gpu/drm/drm_modes.c > @@ -251,7 +251,10 @@ struct drm_display_mode *drm_cvt_mode(struct drm_dev= ice *dev, int hdisplay, > drm_mode->htotal =3D drm_mode->hdisplay + CVT_RB_H_BLANK; > /* Fill in HSync values */ > drm_mode->hsync_end =3D drm_mode->hdisplay + CVT_RB_H_BLANK / 2; > - drm_mode->hsync_start =3D drm_mode->hsync_end =3D CVT_RB_H_SYNC; > + drm_mode->hsync_start =3D drm_mode->hsync_end - CVT_RB_H_SYNC; > + /* Fill in VSync values */ > + drm_mode->vsync_start =3D drm_mode->vdisplay + CVT_RB_VFPORCH; > + drm_mode->vsync_end =3D drm_mode->vsync_start + vsync; > } > /* 15/13. Find pixel clock frequency (kHz for xf86) */ > drm_mode->clock =3D drm_mode->htotal * HV_FACTOR * 1000 / hperiod; Do you know if that was an regression in libdrm and if that patch might also fix #26294 [1]? DebPkg:libdrm2 was upgraded during that time from 2.4.14 too. Unfortunately I do not know how to rebuild that package with the patch applied and to test it. If you know a live CD having this patch applied I could test it though. Thanks, Paul [1] http://bugs.freedesktop.org/show_bug.cgi?id=3D26294 [2] http://packages.debian.org/changelogs/pool/main/libd/libdrm/libdrm_2.4.= 21-1~squeeze2/changelog --=-jmIIiR5C0w3Z2GtXYYf0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAkx5beUACgkQPX1aK2wOHViBXgCfbVFnCwwxHsP4/mpZyWazdCsD 2esAnRKj14U2tT/XKNp1zrHmxqaYWe/h =m1ut -----END PGP SIGNATURE----- --=-jmIIiR5C0w3Z2GtXYYf0-- --===============1920681412== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1920681412==--