From: Ben Widawsky Subject: Re: [PATCH] Add a flag to signal possible origin of the gpu hang. Date: Mon, 17 Oct 2011 10:10:25 -0700 Message-ID: <20111017171025.GA27179@bolo_yeung.jf.intel.com> References: <1318868701-2262-1-git-send-email-eugeni.dodonov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cloud01.chad-versace.us (184-106-247-128.static.cloud-ips.com [184.106.247.128]) by gabe.freedesktop.org (Postfix) with ESMTP id 06ADB9E76D for ; Mon, 17 Oct 2011 10:11:31 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1318868701-2262-1-git-send-email-eugeni.dodonov@intel.com> 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: Eugeni Dodonov Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Mon, Oct 17, 2011 at 02:25:01PM -0200, Eugeni Dodonov wrote: > This adds a hint on where the call trace originated from. This is more of > a guess, but still, it seems to be quite accurate on the traces I tested. > > So it appears in the output like: > > ... > 0x06c470c8: 0x780e0002: 3DSTATE_CC_STATE_POINTERS > 0x06c470cc: 0x00007f81: blend change 1 > 0x06c470d0: 0x00007f01: depth stencil change 1 > 0x06c470d4: 0x00007f41: cc change 1 > 0x06c470d8: 0x78021302: 3DSTATE_SAMPLER_STATE_POINTERS: VS mod 1, GS > mod 1, PS mod 1 > 0x06c470dc: 0x00000000: VS sampler state > 0x06c470e0: 0x00000000: GS sampler state > 0x06c470e4: 0x00007e00: WM sampler state > 0x06c470e8: 0x78150003: Possible origin: mesa > 0x06c470e8: 0x78150003: 3DSTATE_CONSTANT_VS_STATE > 0x06c470ec: 0x00000000: dword 1 > 0x06c470f0: 0x00000000: dword 2 > 0x06c470f4: 0x00000000: dword 3 > 0x06c470f8: 0x00000000: dword 4 > ... > > Signed-off-by: Eugeni Dodonov > --- I have patches which I never posted which do something similar, but perhaps more useful. It gets a PID and a timestamp for each batch. Unfortunately those require kernel changes. If that sounds useful to you, I will clean them up and put them on the list.