[Intel-gfx] [PATCH] drm/i915: avoid big kmallocs on reading error state

Daniel Vetter daniel at ffwll.ch
Thu May 23 13:00:15 CEST 2013


On Thu, May 23, 2013 at 01:55:35PM +0300, Mika Kuoppala wrote:
> Sometimes when user is trying to get error state out from
> debugfs after gpu hang, the memory is low and/or fragmented
> enough that kmalloc in seq_file will fail.
> 
> Prevent big kmalloc by avoiding seq_file and instead convert
> error state to string in smaller chunks.
> 
> v2: better alloc flags, better truncate, correct
> locking, and error handling improvements (Chris Wilson)
> 
> v3: printf annotations (Daniel Vetter)
> 
> Signed-off-by: Mika Kuoppala <mika.kuoppala at intel.com>
> Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
Queued for -next, thanks for the patch.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch



More information about the Intel-gfx mailing list