From: Jesse Barnes Subject: Re: [PATCH] drm/i915: get mode clock when reading the pipe config v2 Date: Fri, 3 May 2013 16:43:06 -0700 Message-ID: <20130503164306.5401bd6a@jbarnes-desktop> References: <1367613833-11851-1-git-send-email-jbarnes@virtuousgeek.org> <1367620481-16145-1-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy9.bluehost.com (oproxy9.bluehost.com [69.89.24.6]) by gabe.freedesktop.org (Postfix) with SMTP id B4762E5D33 for ; Fri, 3 May 2013 16:42:22 -0700 (PDT) In-Reply-To: <1367620481-16145-1-git-send-email-jbarnes@virtuousgeek.org> 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: Jesse Barnes Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, 3 May 2013 15:34:41 -0700 Jesse Barnes wrote: > We need this for comparing modes between configuration changes. > > v2: try harder to calulate non-simple pixel clocks (Daniel) > call get_clock after getting the encoder config, needed for pixel multiply > (Jesse) > In reply to danvet's questions: - I can move the pixel multiplier into get_config; I thought some of our encoder regs had a bit that could be used - if I do that, I don't need to call get_clock separately; it needs the pixel multiplier to calculate m/n correctly, so that's why I had to put it after the encoder get_config I added pipe config checks for the new mode flags, and I get warnings now, but I don't want to add one for the clock just yet. Maybe after everything is in and working we can add one... -- Jesse Barnes, Intel Open Source Technology Center