[PATCH v11 4/8] drm/xe/eustall: Add support to read() and poll() EU stall data
Dixit, Ashutosh
ashutosh.dixit at intel.com
Tue Feb 25 20:55:25 UTC 2025
On Tue, 25 Feb 2025 01:20:21 -0800, Harish Chegondi wrote:
>
> Implement the EU stall sampling APIs to read() and poll() EU stall data.
> A work function periodically polls the EU stall data buffer write pointer
> registers to look for any new data and caches the write pointer. The read
> function compares the cached read and write pointers and copies any new
> data to the user space.
>
> v11: Used gt->eu_stall->stream_lock instead of stream->buf_lock.
> Removed read and write offsets from trace and added read size.
> Moved workqueue from struct xe_eu_stall_data_stream to
> struct xe_eu_stall_gt.
LGTM now with these changes:
Reviewed-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
More information about the Intel-xe
mailing list