Re: [Intel-gfx] [RFC 04/11] drm/i915/preempt: Implement null preemption method

2017-02-23 Thread Chris Wilson
On Thu, Feb 23, 2017 at 08:08:26PM +0100, Michał Winiarski wrote: > +static void __execlists_try_preempt(struct intel_engine_cs *engine, > + int prio) > +{ > + struct drm_i915_gem_request *rq; > + int highest_prio = INT_MIN; > + int ret; > + > + spin_lo

[Intel-gfx] [RFC 04/11] drm/i915/preempt: Implement null preemption method

2017-02-23 Thread Michał Winiarski
We're only requesting preemption for requests that have high enough priority (above threshold). Currently we're also ignoring requests that have dependencies on different engines. Signed-off-by: Michał Winiarski --- drivers/gpu/drm/i915/i915_guc_submission.c | 3 ++ drivers/gpu/drm/i915/intel_l