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

2013-05-23 Thread Daniel Vetter
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 > e

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

2013-05-23 Thread Mika Kuoppala
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 tru

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

2013-05-22 Thread Daniel Vetter
On Wed, May 22, 2013 at 02:58:46PM +0100, Chris Wilson wrote: > On Wed, May 22, 2013 at 04:42:53PM +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.

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

2013-05-22 Thread Chris Wilson
On Wed, May 22, 2013 at 04:42:53PM +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 > e

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

2013-05-22 Thread Mika Kuoppala
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 tru