From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Barnes Subject: Re: [PATCH 18/24] drm/i915: program iCLKIP on Lynx Point Date: Mon, 30 Apr 2012 17:26:28 -0700 Message-ID: <20120430172628.068b5869@jbarnes-desktop> References: <1335464479-648-1-git-send-email-eugeni.dodonov@intel.com> <1335464479-648-19-git-send-email-eugeni.dodonov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy1-pub.bluehost.com (oproxy1-pub.bluehost.com [66.147.249.253]) by gabe.freedesktop.org (Postfix) with SMTP id BF6AC9EB4E for ; Mon, 30 Apr 2012 17:26:30 -0700 (PDT) In-Reply-To: <1335464479-648-19-git-send-email-eugeni.dodonov@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: Eugeni Dodonov Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, 26 Apr 2012 15:21:13 -0300 Eugeni Dodonov wrote: > The iCLKIP clock is used to drive the VGA pixel clock on the PCH. In order > to do so, it must be programmed to properly do the clock ticks according > to the divisor, phase direction, phase increments and a special auxiliary > divisor for 20MHz clock. > > Those values can be programmed individually, by doing some math; or we > could use a pre-defined table of values for each modeset. For speed and > simplification, the idea was to just adopt the table of valid pixel clocks > and select the matching iCLKIP values from there. > > As a possible idea for the future, it would be possible to add a fallback > and calculate those values manually in case no match is found. But I don't > think we'll encounter a mode not covered by those table, and VGA is pretty > much going away in the future anyway. > > Signed-off-by: Eugeni Dodonov > --- I don't mind the table and like the fact that it documents the PPM. But I think we should fuzzy match the clocks, since e.g. 1920x1080@60Hz with reduced blanking is a 138.5MHz clock, and we don't have a match for that it appears? Or do we already fuzzy match elsewhere? -- Jesse Barnes, Intel Open Source Technology Center