From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Dump all transcoder registers on error Date: Thu, 8 Aug 2013 14:37:30 +0200 Message-ID: <20130808123730.GL22035@phenom.ffwll.local> References: <20130624075933.GE5823@phenom.ffwll.local> <1372144522-31964-1-git-send-email-chris@chris-wilson.co.uk> <20130625124357.GS5823@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f50.google.com (mail-ee0-f50.google.com [74.125.83.50]) by gabe.freedesktop.org (Postfix) with ESMTP id B75A7E5D00 for ; Thu, 8 Aug 2013 05:37:24 -0700 (PDT) Received: by mail-ee0-f50.google.com with SMTP id d51so1459891eek.23 for ; Thu, 08 Aug 2013 05:37:23 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130625124357.GS5823@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: Chris Wilson Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, Jun 25, 2013 at 02:43:57PM +0200, Daniel Vetter wrote: > On Tue, Jun 25, 2013 at 08:15:22AM +0100, Chris Wilson wrote: > > With Haswell the transcoders are a separate bank of registers from the > > pipes (4 transcoders, 3 pipes). In event of an error, we want to be sure > > we have a complete and accurate picture of the machine state, so record > > all the transcoders in addition to all the active pipes. > > > > Signed-off-by: Chris Wilson > > I think we should squash this together with the previous patch and move > the cpu_transcoder->pipe readout logic into intel_error_decode, similarly > to how we already augment the various ring register state with useful > context information. > > I just generally prefer our error state capture code to be as dumb as > possible, with the least amount of trust for our hw/sw state that we can > get away with. I've gone ahead and done this and pushed the frobbed patch to dinq. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch