From: Chris Wilson Subject: Re: [PATCH 3/7] drm/i915: Fixup pfit disabling for gen2/3 Date: Fri, 12 Apr 2013 15:01:00 +0100 Message-ID: <20130412140100.GF1408@cantiga.alporthouse.com> References: <1365690550-5716-1-git-send-email-daniel.vetter@ffwll.ch> <1365690550-5716-3-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id DB096E5F04 for ; Fri, 12 Apr 2013 07:01:06 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1365690550-5716-3-git-send-email-daniel.vetter@ffwll.ch> 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 , Hans de Bruin , Mika Kuoppala List-Id: intel-gfx@lists.freedesktop.org On Thu, Apr 11, 2013 at 04:29:06PM +0200, Daniel Vetter wrote: > The recent rework of the pfit handling didn't take into account that > the panel fitter is fixed to pipe B: > > commit 24a1f16de97c4cf0029d9acd04be06db32208726 > Author: Mika Kuoppala > Date: Fri Feb 8 16:35:37 2013 +0200 > > drm/i915: disable shared panel fitter for pipe > > Fix this up by properly computing the pipe the pfit is on. Also > extract the logic into its own function, add a debug assert to check > that the pipe is off (mostly just documentation) and add some debug > output. > > If pipe A was disabled after pipe B was set up, the panel fitter will > be disabled. Now most userspace doesn't do modesets in this order, > which is why I couldn't ever reproduce this and why it took me so long > to figure out. > > We really need hw state readout and check support for the pannel > fitter ... > > Reported-by: Hans de Bruin > Cc: Mika Kuoppala > Cc: Hans de Bruin > References: http://permalink.gmane.org/gmane.comp.freedesktop.xorg.drivers.intel/19049 > Signed-off-by: Daniel Vetter Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre