Re: [Intel-gfx] [PATCH 38/44] drm/i915: Split idling from forcing context switch

2016-06-16 Thread Chris Wilson
On Thu, Jun 16, 2016 at 11:51:03AM +0300, Mika Kuoppala wrote: > > +++ b/drivers/gpu/drm/i915/i915_gem_evict.c > > @@ -33,6 +33,37 @@ > > #include "intel_drv.h" > > #include "i915_trace.h" > > > > +static int switch_to_pinned_context(struct drm_i915_private *dev_priv) > > +{ > > switch_to_kern

Re: [Intel-gfx] [PATCH 38/44] drm/i915: Split idling from forcing context switch

2016-06-16 Thread Mika Kuoppala
Chris Wilson writes: > We only need to force a switch to the kernel context placeholder during > eviction. All other uses of i915_gpu_idle() just want to wait until > existing work on the GPU is idle. Rename i915_gpu_idle() to > i915_gem_wait_for_idle() to avoid any implications about "parking" t

[Intel-gfx] [PATCH 38/44] drm/i915: Split idling from forcing context switch

2016-06-15 Thread Chris Wilson
We only need to force a switch to the kernel context placeholder during eviction. All other uses of i915_gpu_idle() just want to wait until existing work on the GPU is idle. Rename i915_gpu_idle() to i915_gem_wait_for_idle() to avoid any implications about "parking" the context first. v2: Tweak an