Re: [Intel-gfx] [PATCH] drm/i915: Borrow our struct_mutex for the direct reclaim

2012-11-08 Thread Ben Widawsky
On Wed, 10 Oct 2012 16:08:59 +0100 Chris Wilson wrote: > If we have hit oom whilst holding our struct_mutex, then currently we > cannot reap our own GPU buffers which likely pin most of memory, making > an outright OOM more likely. So if we are running in direct reclaim and > already hold the mut

Re: [Intel-gfx] [PATCH] drm/i915: Borrow our struct_mutex for the direct reclaim

2012-10-10 Thread Daniel Vetter
On Wed, Oct 10, 2012 at 5:08 PM, Chris Wilson wrote: > If we have hit oom whilst holding our struct_mutex, then currently we > cannot reap our own GPU buffers which likely pin most of memory, making > an outright OOM more likely. So if we are running in direct reclaim and > already hold the mutex,

[Intel-gfx] [PATCH] drm/i915: Borrow our struct_mutex for the direct reclaim

2012-10-10 Thread Chris Wilson
If we have hit oom whilst holding our struct_mutex, then currently we cannot reap our own GPU buffers which likely pin most of memory, making an outright OOM more likely. So if we are running in direct reclaim and already hold the mutex, attempt to free buffers knowing that the original function ca