From: Daniel Vetter Subject: Re: [PATCH 07/13] drm/i915: check panel fit status at update_plane time v2 Date: Tue, 2 Apr 2013 19:58:37 +0200 Message-ID: <20130402175837.GW2228@phenom.ffwll.local> References: <1364922237-3620-1-git-send-email-jbarnes@virtuousgeek.org> <1364922237-3620-8-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-f51.google.com (mail-ee0-f51.google.com [74.125.83.51]) by gabe.freedesktop.org (Postfix) with ESMTP id 86A68E5E53 for ; Tue, 2 Apr 2013 10:55:41 -0700 (PDT) Received: by mail-ee0-f51.google.com with SMTP id c4so356281eek.10 for ; Tue, 02 Apr 2013 10:55:40 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1364922237-3620-8-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 Tue, Apr 02, 2013 at 10:03:51AM -0700, Jesse Barnes wrote: > We may need to disable the panel when flipping to a new buffer, so check > the state here and zero it out if needed, otherwise leave it alone. > > v2: fixup pipe_set_base check (Imre) > > Signed-off-by: Jesse Barnes tbh I have no idea yet how we should best handle this and the following patch. My current guess is that we need a special pipe_update path, which sits in between the fb_update and the full modeset we currently have. A bunch of things we might want to do in that case: - kill the vga plane - update watermarks to our (hopefully power-efficient) ones - adjust pfit state (the bios tends to enable that even on non-lvds/edp outputs) - update other/global pm state (power well, refclocks, ...) - update infoframes/audio bits (not relevant for panels luckily) Of course I'd prefer if the code is somehow shared between the update_pipe path and the full modeset, since we'll inevitably get something wrong ... -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch