From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Harish Chegondi <harish.chegondi@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, <james.ausmus@intel.com>,
<felix.j.degrood@intel.com>, <jose.souza@intel.com>,
<matias.a.cabral@intel.com>, <joshua.santosh.ranjan@intel.com>,
<shubham.kumar@intel.com>
Subject: Re: [PATCH v4 4/5] drm/xe/query: Add a device query to get EU stall data information
Date: Mon, 14 Oct 2024 14:39:52 -0700 [thread overview]
Message-ID: <85jzea2wk7.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <8a5f3cc1a7853b76ddde9442e4d11bf19b337509.1728884074.git.harish.chegondi@intel.com>
On Sun, 13 Oct 2024 23:00:35 -0700, Harish Chegondi wrote:
Hi Harish,
Only reviewing the uapi for now (xe_drm.h changes). Mostly nits for this
patch.
>
> diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h
> index 50ad6b2e1450..f1a0f06b61f4 100644
> --- a/include/uapi/drm/xe_drm.h
> +++ b/include/uapi/drm/xe_drm.h
> @@ -700,6 +700,7 @@ struct drm_xe_device_query {
> #define DRM_XE_DEVICE_QUERY_ENGINE_CYCLES 6
> #define DRM_XE_DEVICE_QUERY_UC_FW_VERSION 7
> #define DRM_XE_DEVICE_QUERY_OA_UNITS 8
> +#define DRM_XE_DEVICE_QUERY_EU_STALL_SAMPLING 9
Just call this DRM_XE_DEVICE_QUERY_EU_STALL?
> /** @query: The type of data to query */
> __u32 query;
>
> @@ -1738,6 +1739,25 @@ enum drm_xe_eu_stall_property_id {
> DRM_XE_EU_STALL_PROP_GT_ID,
> };
>
> +/**
> + * struct drm_xe_query_eu_stall_data - Information about EU stall data
> + *
> + * If a query is made with a struct drm_xe_device_query where .query
> + * is equal to DRM_XE_DEVICE_QUERY_EU_STALL_SAMPLING, then the reply uses
> + * struct drm_xe_query_eu_stall_data in .data.
Maybe add a @ before all references in this file. So @drm_xe_device_query,
@DRM_XE_DEVICE_QUERY_EU_STALL_SAMPLING and @drm_xe_query_eu_stall_data.
I think better to do this even if this hasn't been done for queries
elsewhere in this file, looks like a miss.
> + */
> +struct drm_xe_query_eu_stall_data {
Just call this 'struct drm_xe_query_eu_stall'?
> + /** @extensions: Pointer to the first extension struct, if any */
> + __u64 extensions;
> +
> + /** @record_size: size of each EU stall data record */
> + __u64 record_size;
> +
> + /** @capabilities: EU stall capabilities bit-mask */
> + __u64 capabilities;
> +#define DRM_XE_EU_STALL_CAPS_BASE (1 << 0)
> +};
> +
> #if defined(__cplusplus)
> }
> #endif
> --
> 2.45.1
>
Thanks.
--
Ashutosh
next prev parent reply other threads:[~2024-10-14 21:39 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-14 6:00 [PATCH v4 0/5] Add support for EU stall sampling Harish Chegondi
2024-10-14 6:00 ` [PATCH v4 1/5] drm/xe/topology: Add a function to find the index of the last DSS in a mask Harish Chegondi
2024-10-14 21:26 ` Dixit, Ashutosh
2024-10-16 3:44 ` Harish Chegondi
2024-10-18 21:26 ` Matt Roper
2024-10-14 6:00 ` [PATCH v4 2/5] drm/xe/eustall: Introduce API for EU stall sampling Harish Chegondi
2024-10-14 22:21 ` Dixit, Ashutosh
2024-10-18 22:03 ` Matt Roper
2024-11-14 16:23 ` Umesh Nerlige Ramappa
2024-11-19 23:59 ` Harish Chegondi
2024-11-20 19:04 ` Dixit, Ashutosh
2024-11-21 1:05 ` Umesh Nerlige Ramappa
2024-11-21 3:18 ` Dixit, Ashutosh
2024-11-22 18:18 ` Dixit, Ashutosh
2024-11-27 18:47 ` Harish Chegondi
2024-11-29 4:31 ` Kumar, Shubham
2024-11-29 4:35 ` Kumar, Shubham
2024-10-14 6:00 ` [PATCH v4 3/5] drm/xe/eustall: Implement EU stall sampling APIs Harish Chegondi
2024-10-18 23:31 ` Matt Roper
2024-10-14 6:00 ` [PATCH v4 4/5] drm/xe/query: Add a device query to get EU stall data information Harish Chegondi
2024-10-14 21:39 ` Dixit, Ashutosh [this message]
2024-10-14 6:00 ` [PATCH v4 5/5] drm/xe/eustall: Add workaround 22016596838 which applies to PVC Harish Chegondi
2024-10-14 6:05 ` ✓ CI.Patch_applied: success for Add support for EU stall sampling Patchwork
2024-10-14 6:05 ` ✗ CI.checkpatch: warning " Patchwork
2024-10-14 6:06 ` ✓ CI.KUnit: success " Patchwork
2024-10-14 6:18 ` ✓ CI.Build: " Patchwork
2024-10-14 6:20 ` ✗ CI.Hooks: failure " Patchwork
2024-10-14 6:22 ` ✓ CI.checksparse: success " Patchwork
2024-10-14 6:47 ` ✓ CI.BAT: " Patchwork
2024-10-14 7:54 ` ✗ CI.FULL: failure " 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=85jzea2wk7.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=felix.j.degrood@intel.com \
--cc=harish.chegondi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=james.ausmus@intel.com \
--cc=jose.souza@intel.com \
--cc=joshua.santosh.ranjan@intel.com \
--cc=matias.a.cabral@intel.com \
--cc=shubham.kumar@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.