Re: [Intel-gfx] [PATCH 2/6] drm/i915: Allow clients to query own per-engine busyness

2018-01-22 Thread Tvrtko Ursulin
On 22/01/2018 12:32, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-01-22 11:45:04) On 22/01/2018 10:00, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-01-22 09:53:27) On 19/01/2018 21:08, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-01-19 13:45:24) + case I915_CONTEXT_GET_E

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Allow clients to query own per-engine busyness

2018-01-22 Thread Chris Wilson
Quoting Tvrtko Ursulin (2018-01-22 11:45:04) > > On 22/01/2018 10:00, Chris Wilson wrote: > > Quoting Tvrtko Ursulin (2018-01-22 09:53:27) > >> > >> On 19/01/2018 21:08, Chris Wilson wrote: > >>> Quoting Tvrtko Ursulin (2018-01-19 13:45:24) > + case I915_CONTEXT_GET_ENGINE_BUSY: >

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Allow clients to query own per-engine busyness

2018-01-22 Thread Tvrtko Ursulin
On 22/01/2018 10:00, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-01-22 09:53:27) On 19/01/2018 21:08, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-01-19 13:45:24) + case I915_CONTEXT_GET_ENGINE_BUSY: + engine = intel_engine_lookup_user(i915, args->class, +

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Allow clients to query own per-engine busyness

2018-01-22 Thread Chris Wilson
Quoting Tvrtko Ursulin (2018-01-22 09:53:27) > > On 19/01/2018 21:08, Chris Wilson wrote: > > Quoting Tvrtko Ursulin (2018-01-19 13:45:24) > >> + case I915_CONTEXT_GET_ENGINE_BUSY: > >> + engine = intel_engine_lookup_user(i915, args->class, > >> +

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Allow clients to query own per-engine busyness

2018-01-22 Thread Tvrtko Ursulin
On 19/01/2018 21:08, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-01-19 13:45:24) + case I915_CONTEXT_GET_ENGINE_BUSY: + engine = intel_engine_lookup_user(i915, args->class, + args->instance); + if (!engine) {

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Allow clients to query own per-engine busyness

2018-01-19 Thread Chris Wilson
Quoting Tvrtko Ursulin (2018-01-19 13:45:24) > + case I915_CONTEXT_GET_ENGINE_BUSY: > + engine = intel_engine_lookup_user(i915, args->class, > + args->instance); > + if (!engine) { > + ret = -EIN

[Intel-gfx] [PATCH 2/6] drm/i915: Allow clients to query own per-engine busyness

2018-01-19 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Some customers want to know how much of the GPU time are their clients using in order to make dynamic load balancing decisions. With the accounting infrastructure in place in the previous patch, we add a new context param (I915_CONTEXT_GET_ENGINE_BUSY) which takes a class an