Re: [Intel-gfx] [PATCH] drm/i915: Record error batch buffers using iomem

2010-05-11 Thread Chris Wilson
On Tue, 11 May 2010 11:37:22 -0400, Andrew Morton wrote: > On Tue, 11 May 2010 19:22:14 +0100 Chris Wilson > wrote: > > > + reloc_offset = src_priv->gtt_offset; > > for (page = 0; page < page_count; page++) { > > - void *s, *d = kmalloc(PAGE_SIZE, GFP_ATOMIC); > > + v

Re: [Intel-gfx] [PATCH] drm/i915: Record error batch buffers using iomem

2010-05-11 Thread Andrew Morton
On Tue, 11 May 2010 19:22:14 +0100 Chris Wilson wrote: > + reloc_offset = src_priv->gtt_offset; > for (page = 0; page < page_count; page++) { > - void *s, *d = kmalloc(PAGE_SIZE, GFP_ATOMIC); > + void __iomem *s; > + void *d; > + > + d =

[Intel-gfx] [PATCH] drm/i915: Record error batch buffers using iomem

2010-05-11 Thread Chris Wilson
Directly read the GTT mapping for the contents of the batch buffers rather than relying on possibly stale CPU caches. Also for completeness scan the flushing/inactive lists for the current buffers - we are collecting error state after all. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i91