Re: [Intel-gfx] [PATCH 3/4] drm/i915/perf: do not warn when OA buffer is already allocated

2018-10-11 Thread Lionel Landwerlin
On 10/10/2018 20:24, Matthew Auld wrote: On Wed, 10 Oct 2018 at 19:55, Lionel Landwerlin 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 (

Re: [Intel-gfx] [PATCH 3/4] drm/i915/perf: do not warn when OA buffer is already allocated

2018-10-10 Thread Matthew Auld
On Wed, 10 Oct 2018 at 19:55, Lionel Landwerlin 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+). > > The opening sequence

[Intel-gfx] [PATCH 3/4] drm/i915/perf: do not warn when OA buffer is already allocated

2018-10-10 Thread Lionel Landwerlin
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+). The opening sequence has been reworked a few times and we probably lost track of the ord