Re: [Intel-gfx] [RFC v3 11/11] drm/i915: Gate engine stats collection with a static key

2017-09-15 Thread Tvrtko Ursulin
On 14/09/2017 21:22, Chris Wilson wrote: Quoting Tvrtko Ursulin (2017-09-13 13:18:19) From: Tvrtko Ursulin This reduces the cost of the software engine busyness tracking to a single no-op instruction when there are no listeners. v2: Rebase and some comments. v3: Rebase. Signed-off-by: Tvrtk

Re: [Intel-gfx] [RFC v3 11/11] drm/i915: Gate engine stats collection with a static key

2017-09-14 Thread Chris Wilson
Quoting Tvrtko Ursulin (2017-09-13 13:18:19) > From: Tvrtko Ursulin > > This reduces the cost of the software engine busyness tracking > to a single no-op instruction when there are no listeners. > > v2: Rebase and some comments. > v3: Rebase. > > Signed-off-by: Tvrtko Ursulin > --- > drivers

[Intel-gfx] [RFC v3 11/11] drm/i915: Gate engine stats collection with a static key

2017-09-13 Thread Tvrtko Ursulin
From: Tvrtko Ursulin This reduces the cost of the software engine busyness tracking to a single no-op instruction when there are no listeners. v2: Rebase and some comments. v3: Rebase. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_pmu.c | 54 +++-- dr