[Intel-gfx] [PATCH 04/11] drm/i915/perf: do not warn when OA buffer is already allocated
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Mon Mar 26 12:49:06 UTC 2018
On 26/03/18 13:00, Matthew Auld wrote:
> On 26 March 2018 at 10:08, Lionel Landwerlin
> <lionel.g.landwerlin at intel.com> wrote:
>> If 2 processes race to open the perf stream, it's possible that one of them
>> will see that OA buffer has already been allocated, while a previous process
>> is still finishing to reprogram the hardware (on gen8+).
> But we grab the perf.lock while opening the perf stream, and we only
> allow one exclusive stream. Maybe I'm missing something?
>
Arg, you're right...
The locking situation is really not obvious in this file.
I think we can drop this patch.
Thanks!
More information about the Intel-gfx
mailing list