From: Daniel Vetter Subject: Re: [PATCH 24/29] drm/i915: program iCLKIP on Lynx Point Date: Mon, 16 Apr 2012 10:56:05 +0200 Message-ID: <20120416085605.GB4199@phenom.ffwll.local> References: <1334347745-11743-1-git-send-email-eugeni.dodonov@intel.com> <1334347745-11743-25-git-send-email-eugeni.dodonov@intel.com> <20120415234911.GE3982@phenom.ffwll.local> <1334564816_6152@CP5-2952> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 72EF49E844 for ; Mon, 16 Apr 2012 01:55:10 -0700 (PDT) Received: by wibhj13 with SMTP id hj13so3976522wib.12 for ; Mon, 16 Apr 2012 01:55:09 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1334564816_6152@CP5-2952> 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: Chris Wilson Cc: intel-gfx@lists.freedesktop.org, Eugeni Dodonov List-Id: intel-gfx@lists.freedesktop.org On Mon, Apr 16, 2012 at 09:26:40AM +0100, Chris Wilson wrote: > On Sun, 15 Apr 2012 21:44:15 -0300, Eugeni Dodonov wrote: > > On Sun, Apr 15, 2012 at 20:49, Daniel Vetter wrote: > > > > > > I'm honestly not too happy with this table, because somewhere in there > > > we'll have an annoying type, and there's almost zero chance we'll ever > > > find that. So I prefer if we can replicate the pixel clock computation > > > from some stupid excel sheet ... > > > > > > > The latest specs say that the table is the recommended way for configuring > > known clocks settings, for both iCLKIP and WR PLL, and the > > algorithm/formula should be used as fallback only. > > Which implies that they do not match the values generated by the > algorithm. If you are going to keep the table, at least trim it so that > we aren't wasting bytes in unused precised. And split into the distinct > auxdivider, etc. Well, if the algo and the table do not match, I want to know where. Because even worse than a table is a table+algo - practically guarantees a bug in the algo because it's only ever used as a fallback. > > But I'll add them as well. One never knows when a new and previously > > unthinkable mode pops up :). > > Indeed. I'd throw it back at the hardware people, what are they doing in > kilobytes of data that can't be down in a few bytes of algorithm? Safe for a good reason I'd really prefer the algo over kilobytes of tables ... -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48