From: "Grzegorzek, Dominik" <dominik.grzegorzek@intel.com>
To: "Kempczynski, Zbigniew" <zbigniew.kempczynski@intel.com>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t 1/9] xe: sync uapi headers
Date: Fri, 26 May 2023 10:57:06 +0000 [thread overview]
Message-ID: <b9a3ca101f6939dc2d53c404191efea7f1c13756.camel@intel.com> (raw)
In-Reply-To: <20230526103738.ooi4fy2br4eh7gty@zkempczy-mobl2>
On Fri, 2023-05-26 at 12:37 +0200, Zbigniew Kempczyński wrote:
> On Wed, May 24, 2023 at 04:29:23PM +0200, Dominik Grzegorzek wrote:
> > Signed-off-by: Dominik Grzegorzek <dominik.grzegorzek@intel.com>
> > ---
> > include/drm-uapi/xe_drm_tmp.h | 76 +++++++++++++++++++++++++++++++++++
> > 1 file changed, 76 insertions(+)
> > create mode 100644 include/drm-uapi/xe_drm_tmp.h
> >
> > diff --git a/include/drm-uapi/xe_drm_tmp.h b/include/drm-uapi/xe_drm_tmp.h
> > new file mode 100644
> > index 000000000..9829cd724
> > --- /dev/null
> > +++ b/include/drm-uapi/xe_drm_tmp.h
>
> Maybe xe_drm_local.h or xe_drm_staging.h? tmp looks weird imo.
I do not like the name too, just took the exact file from KMD rfc. Will talk with Mika
about renaming it to xe_drm_staging. Ta!
>
> --
> Zbigniew
>
>
> > @@ -0,0 +1,76 @@
> > +#ifndef _UAPI_XE_DRM_TMP_H_
> > +#define _UAPI_XE_DRM_TMP_H_
> > +
> > +#include "xe_drm.h"
> > +
> > +#if defined(__cplusplus)
> > +extern "C" {
> > +#endif
> > +
> > +#define DRM_XE_EUDEBUG_CONNECT 0x5f
> > +
> > +#define DRM_IOCTL_XE_EUDEBUG_CONNECT DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_EUDEBUG_CONNECT, struct drm_xe_eudebug_connect_param)
> > +
> > +/**
> > + * Do a eudebug event read for a debugger connection.
> > + *
> > + * This ioctl is available in debug version 1.
> > + */
> > +#define DRM_XE_EUDEBUG_IOCTL_READ_EVENT _IO('j', 0x0)
> > +
> > +/* XXX: Document events to match their internal counterparts when moved to xe_drm.h */
> > +struct drm_xe_eudebug_event {
> > + struct xe_user_extension ext;
> > +
> > + __u32 type;
> > +#define DRM_XE_EUDEBUG_EVENT_NONE 0
> > +#define DRM_XE_EUDEBUG_EVENT_READ 1
> > +#define DRM_XE_EUDEBUG_EVENT_OPEN 2
> > +#define DRM_XE_EUDEBUG_EVENT_VM 3
> > +#define DRM_XE_EUDEBUG_EVENT_MAX_EVENT DRM_XE_EUDEBUG_EVENT_VM
> > +
> > + __u32 flags;
> > +#define DRM_XE_EUDEBUG_EVENT_CREATE (1 << 0)
> > +#define DRM_XE_EUDEBUG_EVENT_DESTROY (1 << 1)
> > +#define DRM_XE_EUDEBUG_EVENT_STATE_CHANGE (1 << 2)
> > +
> > + __u64 seqno;
> > + __u64 size;
> > +} __attribute__((packed));
> > +
> > +struct drm_xe_eudebug_event_client {
> > + struct drm_xe_eudebug_event base; /* .flags = CREATE/DESTROY */
> > +
> > + __u64 client_handle; /* This is unique per debug connection */
> > +} __attribute__((packed));
> > +
> > +struct drm_xe_eudebug_event_vm {
> > + struct drm_xe_eudebug_event base;
> > +
> > + __u64 client_handle;
> > + __u64 vm_handle;
> > +} __attribute__((packed));
> > +
> > +/*
> > + * Debugger ABI (ioctl and events) Version History:
> > + * 0 - No debugger available
> > + * 1 - Initial version
> > + */
> > +#define DRM_XE_EUDEBUG_VERSION 1
> > +
> > +struct drm_xe_eudebug_connect_param {
> > + struct xe_user_extension ext;
> > +
> > + __u64 pid; /* input: Target process ID */
> > + __u32 flags;
> > +
> > + __u32 version; /* output: current ABI (ioctl / events) version */
> > + __u64 events; /* input: event types to subscribe to */
> > + __u64 extensions; /* MBZ */
> > +};
> > +
> > +#if defined(__cplusplus)
> > +}
> > +#endif
> > +
> > +#endif /* _UAPI_XE_DRM_TMP_H_ */
> > --
> > 2.34.1
> >
next prev parent reply other threads:[~2023-05-26 10:57 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-24 14:29 [igt-dev] [RFC v2 i-g-t 0/9] Add initial eudebug coverage Dominik Grzegorzek
2023-05-24 14:29 ` [igt-dev] [PATCH i-g-t 1/9] xe: sync uapi headers Dominik Grzegorzek
2023-05-26 10:37 ` Zbigniew Kempczyński
2023-05-26 10:57 ` Grzegorzek, Dominik [this message]
2023-05-24 14:29 ` [igt-dev] [PATCH i-g-t 2/9] meson: Introduce xe_staging build option Dominik Grzegorzek
2023-05-26 10:51 ` Zbigniew Kempczyński
2023-05-26 10:59 ` Grzegorzek, Dominik
2023-05-24 14:29 ` [igt-dev] [PATCH i-g-t 3/9] xe/staging/xe_eudebug: test eudebug connection Dominik Grzegorzek
2023-05-24 14:29 ` [igt-dev] [PATCH i-g-t 4/9] lib/staging/xe_eudebug: introduce eu debug testing framework Dominik Grzegorzek
2023-05-24 14:29 ` [igt-dev] [PATCH i-g-t 5/9] xe/staging/xe_eudebug: test open close events Dominik Grzegorzek
2023-05-24 14:29 ` [igt-dev] [PATCH i-g-t 6/9] xe/staging/xe_eudebug: exercise read_event ioctl Dominik Grzegorzek
2023-05-24 14:29 ` [igt-dev] [PATCH i-g-t 7/9] xe/staging/xe_eudebug: add vm events sanity check Dominik Grzegorzek
2023-05-24 14:29 ` [igt-dev] [PATCH i-g-t 8/9] xe/staging/xe_eudebug: Race discovery against eudebug attach Dominik Grzegorzek
2023-05-24 14:29 ` [igt-dev] [PATCH i-g-t 9/9] xe/staging/xe_eudebug: Add TEST/SUBTEST documentation Dominik Grzegorzek
2023-05-24 16:01 ` [igt-dev] ✓ Fi.CI.BAT: success for Add initial eudebug coverage (rev3) Patchwork
2023-05-25 4:13 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b9a3ca101f6939dc2d53c404191efea7f1c13756.camel@intel.com \
--to=dominik.grzegorzek@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=zbigniew.kempczynski@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox