Re: [Intel-gfx] [PATCH] drm/i915: Allow shrinking of userptr objects once again

2016-11-01 Thread Chris Wilson
On Tue, Nov 01, 2016 at 02:29:39PM +, Tvrtko Ursulin wrote: > > On 01/11/2016 13:52, Chris Wilson wrote: > >On Tue, Nov 01, 2016 at 01:28:06PM +, Tvrtko Ursulin wrote: > >>From: Tvrtko Ursulin > >> > >>Commit 1bec9b0bda3d ("drm/i915/shrinker: Only shmemfs

Re: [Intel-gfx] [PATCH] drm/i915: Allow shrinking of userptr objects once again

2016-11-01 Thread Tvrtko Ursulin
On 01/11/2016 13:52, Chris Wilson wrote: On Tue, Nov 01, 2016 at 01:28:06PM +, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Commit 1bec9b0bda3d ("drm/i915/shrinker: Only shmemfs objects are backed by swap") stopped considering the userptr objects in shrinker

Re: [Intel-gfx] [PATCH] drm/i915: Allow shrinking of userptr objects once again

2016-11-01 Thread Chris Wilson
On Tue, Nov 01, 2016 at 01:28:06PM +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Commit 1bec9b0bda3d ("drm/i915/shrinker: Only shmemfs objects > are backed by swap") stopped considering the userptr objects > in shrinker callbacks. > > Restore that so idle

[Intel-gfx] [PATCH] drm/i915: Allow shrinking of userptr objects once again

2016-11-01 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Commit 1bec9b0bda3d ("drm/i915/shrinker: Only shmemfs objects are backed by swap") stopped considering the userptr objects in shrinker callbacks. Restore that so idle userptr objects can be discarded in order to free up memory. One change further