[Intel-gfx] [PATCH 05/10] drm/i915: Track runtime spent in unreachable intel_contexts

2020-03-18 Thread Tvrtko Ursulin
From: Tvrtko Ursulin As contexts are abandoned we want to remember how much GPU time they used (per class) so later we can used it for smarter purposes. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/gem/i915_gem_context.c | 13 - drivers/gpu/drm/i915/gem/i915_gem_con

Re: [Intel-gfx] [PATCH 05/10] drm/i915: Track runtime spent in unreachable intel_contexts

2020-03-18 Thread Chris Wilson
Quoting Tvrtko Ursulin (2020-03-18 12:11:34) > From: Tvrtko Ursulin > > As contexts are abandoned we want to remember how much GPU time they used > (per class) so later we can used it for smarter purposes. > > Signed-off-by: Tvrtko Ursulin > --- > drivers/gpu/drm/i915/gem/i915_gem_context.c

Re: [Intel-gfx] [PATCH 05/10] drm/i915: Track runtime spent in unreachable intel_contexts

2020-03-18 Thread Tvrtko Ursulin
On 18/03/2020 13:55, Chris Wilson wrote: Quoting Tvrtko Ursulin (2020-03-18 12:11:34) From: Tvrtko Ursulin As contexts are abandoned we want to remember how much GPU time they used (per class) so later we can used it for smarter purposes. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm

Re: [Intel-gfx] [PATCH 05/10] drm/i915: Track runtime spent in unreachable intel_contexts

2020-03-18 Thread Chris Wilson
Quoting Tvrtko Ursulin (2020-03-18 14:13:14) > > On 18/03/2020 13:55, Chris Wilson wrote: > > Quoting Tvrtko Ursulin (2020-03-18 12:11:34) > >> From: Tvrtko Ursulin > >> > >> As contexts are abandoned we want to remember how much GPU time they used > >> (per class) so later we can used it for sma

Re: [Intel-gfx] [PATCH 05/10] drm/i915: Track runtime spent in unreachable intel_contexts

2020-03-18 Thread Tvrtko Ursulin
On 18/03/2020 14:32, Chris Wilson wrote: Quoting Tvrtko Ursulin (2020-03-18 14:13:14) On 18/03/2020 13:55, Chris Wilson wrote: Quoting Tvrtko Ursulin (2020-03-18 12:11:34) From: Tvrtko Ursulin As contexts are abandoned we want to remember how much GPU time they used (per class) so later w

Re: [Intel-gfx] [PATCH 05/10] drm/i915: Track runtime spent in unreachable intel_contexts

2020-03-18 Thread Chris Wilson
Quoting Tvrtko Ursulin (2020-03-18 14:38:53) > > On 18/03/2020 14:32, Chris Wilson wrote: > > Quoting Tvrtko Ursulin (2020-03-18 14:13:14) > >> > >> On 18/03/2020 13:55, Chris Wilson wrote: > >>> Quoting Tvrtko Ursulin (2020-03-18 12:11:34) > From: Tvrtko Ursulin > > As contexts ar

Re: [Intel-gfx] [PATCH 05/10] drm/i915: Track runtime spent in unreachable intel_contexts

2020-03-18 Thread Chris Wilson
Quoting Chris Wilson (2020-03-18 14:48:05) > We do have a notification here for the context_retire we could listen to > instead of listening to the request idling. If we use > > i915_sw_fence_await_active(&engines->fence, >&ce->active, >