[Intel-gfx] [RFC 5/7] drm/i915: Wait for GPU to finish before event stop in Gen Perf PMU

Robert Bragg robert at sixbynine.org
Thu Jun 25 06:07:02 PDT 2015


>> Robert, any thoughts?
>>
>
> I think a few pertinent details here that inform how we need to handle this are:
>
> 1) Almost all the pmu methods are called in atomic context (except
> event_init) as they are invoked via events/core.c via an
> inter-processor interrupt so waiting for a completion in event_destroy
> isn't really an option for us.

Oops meant to delete this incomplete comment. Before double checking
events/core.c I was worried that event->destroy() might be called in
interrupt context, but that's not the case.

- Robert


More information about the Intel-gfx mailing list