From: Daniel Vetter Subject: Re: [PATCH 2/6] drm/i915: get_plane_config for i9xx v10 Date: Tue, 11 Feb 2014 00:35:00 +0100 Message-ID: <20140210233500.GH17001@phenom.ffwll.local> References: <1391803840-2629-1-git-send-email-jbarnes@virtuousgeek.org> <1391803840-2629-2-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 mail-ee0-f45.google.com (mail-ee0-f45.google.com [74.125.83.45]) by gabe.freedesktop.org (Postfix) with ESMTP id 8A5B8FA7E7 for ; Mon, 10 Feb 2014 15:35:05 -0800 (PST) Received: by mail-ee0-f45.google.com with SMTP id b15so3209050eek.18 for ; Mon, 10 Feb 2014 15:35:04 -0800 (PST) Content-Disposition: inline In-Reply-To: <1391803840-2629-2-git-send-email-jbarnes@virtuousgeek.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Jesse Barnes Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, Feb 07, 2014 at 12:10:36PM -0800, Jesse Barnes wrote: > Read out the current plane configuration at init time into a new > plane_config structure. This allows us to track any existing > framebuffers attached to the plane and potentially re-use them in our > fbdev code for a smooth handoff. > > v2: update for new pitch_for_width function (Jesse) > comment how get_plane_config works with shared fbs (Jesse) > v3: s/ARGB/XRGB (Ville) > use pipesrc width/height (Ville) > fix fourcc comment (Bob) > use drm_format_plane_cpp (Ville) > v4: use fb for tracking fb data object (Ville) > v5: fix up gen2 pitch limits (Ville) > v6: read out stride as well (Daniel) > v7: split out init ordering changes (Daniel) > don't fetch config if !CONFIG_FB > v8: use proper height in get_plane_config (Chris) > v9: fix CONFIG_FB check for modular configs (Jani) > v10: add comment about stolen allocation stomping > > Signed-off-by: Jesse Barnes > --- [snip] > @@ -11062,6 +11176,32 @@ void intel_modeset_init(struct drm_device *dev) > > /* Just in case the BIOS is doing something questionable. */ > intel_disable_fbc(dev); > + > + drm_modeset_lock_all(dev); > + drm_mode_config_reset(dev); > + intel_modeset_setup_hw_state(dev, false); > + drm_modeset_unlock_all(dev); This smells like rebase fail - the hunk from older patches where you drop this code seems to have been lost. Also I've originally asked you to split this out with a bit of justification why we need this at a different place for the fb reconstruction. I just like to give this a spent independent of the other bits a bit, since the setup sequence is known to be really brittle. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch