From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Barnes Subject: Re: [PATCH] drm/i915: push commit_output_state past the crtc/encoder preparing Date: Wed, 5 Sep 2012 12:50:26 -0700 Message-ID: <20120905125026.01b92006@jbarnes-desktop> References: <1346436730-22889-1-git-send-email-daniel.vetter@ffwll.ch> <1346787148-2564-1-git-send-email-daniel.vetter@ffwll.ch> <20120905112808.1feac430@jbarnes-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy11-pub.bluehost.com (oproxy11-pub.bluehost.com [173.254.64.10]) by gabe.freedesktop.org (Postfix) with SMTP id 0CE209E7A1 for ; Wed, 5 Sep 2012 14:59:19 -0700 (PDT) In-Reply-To: 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: Daniel Vetter Cc: Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Wed, 5 Sep 2012 21:48:52 +0200 Daniel Vetter wrote: > On Wed, Sep 5, 2012 at 8:28 PM, Jesse Barnes wrote: > > > > The variables have me confused a little... I would have expected > > update_state to take modeset_pipes rather than prepare_pipes. Could > > you use either? Or will that not catch cases where we updated a pipe > > that was already on? > > The abstract idea for these masks was the following: Any pipe that > changes anything goes into prepare_pipes. For any pipe that also > changes the mode, it goes in addition into the modeset_pipes mask, so > the later is a subset of prepare pipes. The idea here was to avoid the > modeset step where not necessary (e.g. when disabling the 2nd output > of a cloned crtc we only need to disable/enable, not change anything > with the mode or clocks). But after some in-depth discussion with > Paulo Zanoni I think we'll move large parts of the mode_set step into > the enable function (at least for hsw due to funky ordering > requirements), so I think this disdinction doesn't make sense. > > The disable mask just contains those pipes that get fully disable (and > which then also get removed from the prepares/modset masks). > > Hence I pass the prepares mask into update_states, not just the modeset mask. Ok, that makes some sense. Hopefully we can preserve the full mode set vs simple update behavior even after the refactoring for HSW. -- Jesse Barnes, Intel Open Source Technology Center