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

2018-03-26 Thread Lionel Landwerlin
On 26/03/18 13:00, Matthew Auld wrote: On 26 March 2018 at 10:08, 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

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

2018-03-26 Thread Matthew Auld
On 26 March 2018 at 10:08, 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

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

2018-03-26 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