Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Re: [01/17] drm/xe/perf/uapi: "Perf" layer to support multiple perf counter stream types
@ 2023-12-17  8:45 Guy Zadicario
       [not found] ` <877clavr7y.wl-ashutosh.dixit@intel.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Guy Zadicario @ 2023-12-17  8:45 UTC (permalink / raw)
  To: Ashutosh Dixit
  Cc: intel-xe@lists.freedesktop.org; Tal Albo <talbo@habana.ai>; Guy Zadicario

..

>diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h
>index eb03a49c17a13..3539e0781d700 100644
>--- a/include/uapi/drm/xe_drm.h
>+++ b/include/uapi/drm/xe_drm.h

..

>+
>+/**
>+ * enum drm_xe_perf_ioctls - Perf fd ioctl's
>+ */
>+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),
>+};
>+

Hi Ashutosh,
It apears that in the hwtrace PERF stream I need to pass some arguments in the ENABLE/DISABLE
ioctls. This is required since firmware will implement the enable/disable functionality.
I would suggest to use different enums for the stream ioctls, you can rename
drm_xe_perf_ioctls to drm_xe_oa_ioctls and I will define drm_xe_hwtrace_ioctls.

I'd also like to add another stream ioctl to retrieve the stream status and avaialable bytes.

Thanks,
Guy.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-05 23:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-17  8:45 [01/17] drm/xe/perf/uapi: "Perf" layer to support multiple perf counter stream types Guy Zadicario
     [not found] ` <877clavr7y.wl-ashutosh.dixit@intel.com>
2023-12-19  3:04   ` FW: " Dixit, Ashutosh
2024-01-05 23:30     ` Dixit, Ashutosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox