Re: [Intel-gfx] [PATCH 2/2] drm/i915: Move stale context reaping to common i915_gem_context_create

2017-07-05 Thread Chris Wilson
Quoting Tvrtko Ursulin (2017-07-05 14:50:57) > > On 05/07/2017 14:18, Chris Wilson wrote: > > We need to reap the stale contexts for all new contexts, be they created > > by user in i915_gem_context_ioctl or from opening a new file in > > i915_gem_context_open. Both paths may be called very freque

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Move stale context reaping to common i915_gem_context_create

2017-07-05 Thread Tvrtko Ursulin
On 05/07/2017 14:18, Chris Wilson wrote: We need to reap the stale contexts for all new contexts, be they created by user in i915_gem_context_ioctl or from opening a new file in i915_gem_context_open. Both paths may be called very frequently accumulating many stale contexts before any worker has

[Intel-gfx] [PATCH 2/2] drm/i915: Move stale context reaping to common i915_gem_context_create

2017-07-05 Thread Chris Wilson
We need to reap the stale contexts for all new contexts, be they created by user in i915_gem_context_ioctl or from opening a new file in i915_gem_context_open. Both paths may be called very frequently accumulating many stale contexts before any worker has a chance to run and free their memory. Fix