From: Daniel Vetter Subject: Re: [PATCH 28/43] drm/i915: Handle unmappable buffers during error state capture Date: Tue, 31 Jan 2012 20:32:08 +0100 Message-ID: <20120131193208.GI3911@phenom.ffwll.local> References: <1323867460-5486-1-git-send-email-daniel.vetter@ffwll.ch> <1323867460-5486-28-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 mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 000B69E98B for ; Tue, 31 Jan 2012 11:32:07 -0800 (PST) Received: by wera10 with SMTP id a10so440224wer.36 for ; Tue, 31 Jan 2012 11:32:07 -0800 (PST) Content-Disposition: inline In-Reply-To: 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: Daniel Vetter , intel-gfx List-Id: intel-gfx@lists.freedesktop.org On Wed, Dec 14, 2011 at 04:46:48PM -0200, Eugeni Dodonov wrote: > On Wed, Dec 14, 2011 at 10:57, Daniel Vetter wrote: > > > From: Chris Wilson > > > > As the buffer is not necessarily accessible through the GTT at the time > > of a GPU hang, and capturing some of its contents is far more valuable > > than skipping it, provide a clflushed fallback read path. We still > > prefer to read through the GTT as that is more consistent with the GPU > > access of the same buffer. So example it will demonstrate any errorneous > > tiling or swizzling of the command buffer as seen by the GPU. > > > > This becomes necessary with use of CPU relocations and lazy GTT binding, > > but could potentially happen anyway as a result of a pathological error. > > > > Signed-off-by: Chris Wilson > > Reviewed-by: Daniel Vetter > > Reviewed-by: Eugeni Dodonov I've got fed up with my kernel's all dying while testing cs prefetch behaviour, so I've included this patch in the current pile. Should also make qa's job a bit easier because the test is already included in i-g-t, but the fix won't be ready for the next -next cycle. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48