From: Adam Jackson Subject: Re: [PATCH] Fix wrong assumptions in cea_for_each_detailed_block v2 Date: Mon, 14 Nov 2011 17:53:21 -0500 Message-ID: <1321311201.1744.95.camel@atropine> References: <4EBF866F.1090805@digadd.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0859774552==" Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by gabe.freedesktop.org (Postfix) with ESMTP id 7B8549F36B for ; Mon, 14 Nov 2011 14:53:28 -0800 (PST) In-Reply-To: <4EBF866F.1090805@digadd.de> 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: Christian Schmidt Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0859774552== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-9ISrLzUWyhYS5BzTuLGz" --=-9ISrLzUWyhYS5BzTuLGz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 2011-11-13 at 09:57 +0100, Christian Schmidt wrote: > The current logic misunderstands the spec about CEA 18byte descriptors. > First, the spec doesn't state "detailed timing descriptors" but "18 byte > descriptors", so any data record could be stored, mixed timings and > other data, just as in the standard EDID. I don't think the code misinterprets this. But I also don't think your patch changes this interpretation, so that's fine. > Second, the lower four bit of byte 3 of the CEA record do not contain > the number of descriptors, but "the total number of DTDs defining native > formats in the whole EDID [...], starting with the first DTD in the DTD > list (which starts in the base EDID block)." A device can of course > support non-native formats. >=20 > As such the number can't be used to determine n, and the existing code > will filter non-timing 18byte descriptors anyway. Good catch, thanks. Reviewed-by: Adam Jackson - ajax --=-9ISrLzUWyhYS5BzTuLGz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAk7Bm+EACgkQW4otUKDs0NNcEwCgnxGi3rDIb0dkfu0WCx5q+NPI HTsAoNTO1XRgaxb28Qn/UhCy6RLFicVn =4Ovn -----END PGP SIGNATURE----- --=-9ISrLzUWyhYS5BzTuLGz-- --===============0859774552== 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 --===============0859774552==--