From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 6/8] drm/i915: extract compute_clocks from ironlake_crtc_mode_set Date: Wed, 12 Sep 2012 16:34:28 +0200 Message-ID: <20120912143428.GM5533@phenom.ffwll.local> References: <1347455196-5167-1-git-send-email-przanoni@gmail.com> <1347455196-5167-7-git-send-email-przanoni@gmail.com> <20120912143150.GL5533@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by gabe.freedesktop.org (Postfix) with ESMTP id BBBCE9E7E9 for ; Wed, 12 Sep 2012 07:33:55 -0700 (PDT) Received: by eekc13 with SMTP id c13so1357604eek.36 for ; Wed, 12 Sep 2012 07:33:54 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20120912143150.GL5533@phenom.ffwll.local> 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: Paulo Zanoni Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Wed, Sep 12, 2012 at 04:31:50PM +0200, Daniel Vetter wrote: > On Wed, Sep 12, 2012 at 10:06:34AM -0300, Paulo Zanoni wrote: > > From: Paulo Zanoni > > > > Signed-off-by: Paulo Zanoni > Queued for -next, thanks for the patch. I've needed to resolve some > conflicts since I didn't pick up all previous patches, but nothing to > onerous. Wanted to add: I think the clock computation is one of the things most responsible for tons of encoder type checks in the crtc mode_set code. My idea is to move the clock computation out into an enhanced adjust_mode stage, and deal with the encoder special-cases in the encoder->adjust_mode callback. That way we can also do (eventually) pll allocation and bandwidth calculations/link allocations _before_ we start with the actual modeset sequence. Which is obviously required for decent global modeset support. But for now this is a good start to group the clock cruft together and hide it someplace cuddly. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch