From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Jackson Subject: Re: [PATCH 1/7 resend] drm/i915: Add the support of eDP on DP-D for Ibex/CPT Date: Mon, 14 Jun 2010 10:28:55 -0400 Message-ID: <1276525735.26204.55.camel@atropine.boston.devel.redhat.com> References: <1276324347-15668-1-git-send-email-zhenyuw@linux.intel.com> <1276324347-15668-2-git-send-email-zhenyuw@linux.intel.com> <89k83a$8inni8@azsmga001.ch.intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0593071464==" Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by gabe.freedesktop.org (Postfix) with ESMTP id CB01A9E7A6 for ; Mon, 14 Jun 2010 07:29:08 -0700 (PDT) In-Reply-To: <89k83a$8inni8@azsmga001.ch.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 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: Chris Wilson Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============0593071464== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-T0OChzBzPiBKZwC36tl7" --=-T0OChzBzPiBKZwC36tl7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 2010-06-12 at 09:28 +0100, Chris Wilson wrote: > On Sat, 12 Jun 2010 14:32:21 +0800, Zhenyu Wang = wrote: > > static void > > -intel_dp_compute_m_n(int bytes_per_pixel, > > +intel_dp_compute_m_n(int bpp, > > int nlanes, > > int pixel_clock, > > int link_clock, > > struct intel_dp_m_n *m_n) > > { > > m_n->tu =3D 64; > > - m_n->gmch_m =3D pixel_clock * bytes_per_pixel; > > + m_n->gmch_m =3D (pixel_clock * bpp) >> 3; > > m_n->gmch_n =3D link_clock * nlanes; > > intel_reduce_ratio(&m_n->gmch_m, &m_n->gmch_n); > > m_n->link_m =3D pixel_clock; >=20 > This rounds the gmch_m down. Is this correct? It's not, though thanks to the magic of PLLs it's probably close enough. However... > And how close to overflow is pixel_clock today? % echo $(( (2 ** 31 - 1) / 24. )) 89478485.291666672 89MHz isn't even a single LVDS link. Looks like that math needs to be 64-bit. - ajax --=-T0OChzBzPiBKZwC36tl7 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) iEYEABECAAYFAkwWPKYACgkQW4otUKDs0NOAHACg2cVGooQeyvR2DBT4+67h0LFE 9aYAoOmCtYddbGiSYrcXfkgKL2QvSA+1 =LfgY -----END PGP SIGNATURE----- --=-T0OChzBzPiBKZwC36tl7-- --===============0593071464== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============0593071464==--