[PATCH 00/16] Add OA functionality to Xe
Dixit, Ashutosh
ashutosh.dixit at intel.com
Thu Feb 8 21:56:04 UTC 2024
On Thu, 08 Feb 2024 13:34:42 -0800, Lionel Landwerlin wrote:
>
Hi Lionel,
> Just looked at the series and I'm not seeing a way to reconfigure the OA
> unit with a different config once the stream is opened.
> Was this feature removed?
No, it's still there. Search for 'xe_oa_config_locked' here:
https://patchwork.freedesktop.org/patch/577445/?series=121084&rev=9
In Xe, because there are multiple stream types, we have a PERF layer. OA is
one of the stream types. So these operations are part of the PERF layer now:
/**
* enum drm_xe_perf_ioctls - Perf fd ioctl's
*
* Information exchanged between userspace and kernel for perf fd ioctl's
* is stream type specific
*/
enum drm_xe_perf_ioctls {
/** @DRM_XE_PERF_IOCTL_ENABLE: Enable data capture for a stream */
DRM_XE_PERF_IOCTL_ENABLE = _IO('i', 0x0),
/** @DRM_XE_PERF_IOCTL_DISABLE: Disable data capture for a stream */
DRM_XE_PERF_IOCTL_DISABLE = _IO('i', 0x1),
/** @DRM_XE_PERF_IOCTL_CONFIG: Change stream configuration */
DRM_XE_PERF_IOCTL_CONFIG = _IO('i', 0x2),
/** @DRM_XE_PERF_IOCTL_STATUS: Return stream status */
DRM_XE_PERF_IOCTL_STATUS = _IO('i', 0x3),
/** @DRM_XE_PERF_IOCTL_INFO: Return stream info */
DRM_XE_PERF_IOCTL_INFO = _IO('i', 0x4),
};
Thanks.
--
Ashutosh
More information about the Intel-xe
mailing list