Re: [Intel-gfx] [PATCH] drm/i915/perf: Assert locking for i915_init_oa_perf_state()

2019-08-30 Thread Lionel Landwerlin
On 30/08/2019 17:40, Chris Wilson wrote: We use the context->pin_mutex to serialise updates to the OA config and the registers values written into each new context. Document this relationship and assert we do hold the context->pin_mutex as used by gen8_configure_all_contexts() to serialise update

[Intel-gfx] [PATCH] drm/i915/perf: Assert locking for i915_init_oa_perf_state()

2019-08-30 Thread Chris Wilson
We use the context->pin_mutex to serialise updates to the OA config and the registers values written into each new context. Document this relationship and assert we do hold the context->pin_mutex as used by gen8_configure_all_contexts() to serialise updates to the OA config itself. Signed-off-by: