[Intel-gfx] [PATCH 7/7] drm/i915/perf: add flushing ioctl

Lionel Landwerlin lionel.g.landwerlin at intel.com
Tue Jan 22 17:48:57 UTC 2019


On 22/01/2019 16:25, Joonas Lahtinen wrote:
> Quoting Lionel Landwerlin (2019-01-16 17:36:22)
>> With the currently available parameters for the i915-perf stream,
>> there are still situations that are not well covered :
>>
>> If an application opens the stream with polling disable or at very low
>> frequency and OA interrupt enabled, no data will be available even
>> though somewhere between nothing and half of the OA buffer worth of
>> data might have landed in memory.
>>
>> To solve this issue we have a new flush ioctl on the perf stream that
>> forces the i915-perf driver to look at the state of the buffer when
>> called and makes any data available through both poll() & read() type
>> syscalls.
>>
>> Signed-off-by: Lionel Landwerlin<lionel.g.landwerlin at intel.com>
> Link to userspace changes?
>
> Regards, Joonas
>
Trying to get them uploaded to a branch on 
https://github.com/intel/metrics-discovery

I'll let you know when it's available.


-Lionel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20190122/29449fb4/attachment.html>


More information about the Intel-gfx mailing list