[Intel-gfx] [RFC 3/4] drm/i915/perf: handle interrupts from the OA unit
Chris Wilson
chris at chris-wilson.co.uk
Wed Dec 19 16:19:45 UTC 2018
Quoting Lionel Landwerlin (2018-12-19 14:37:46)
> static void free_oa_config(struct drm_i915_private *dev_priv,
> @@ -1852,6 +1854,13 @@ static void gen7_oa_enable(struct i915_perf_stream *stream)
> */
> gen7_init_oa_buffer(dev_priv);
>
> + if (stream->oa_interrupt_monitor) {
> + spin_lock(&dev_priv->irq_lock);
Doesn't look like you are already in interrupt context, so spin_lock_irq()
required for dev_priv->irq_lock.
-Chris
More information about the Intel-gfx
mailing list