[PATCH v1 05/14] drm/xe/uapi: Document DRM_XE_DEVICE_QUERY_HWCONFIG

Rodrigo Vivi rodrigo.vivi at intel.com
Wed Dec 13 18:14:59 UTC 2023


On Thu, Dec 07, 2023 at 01:50:00PM +0000, Francois Dugast wrote:
> Add a documentation on the content and format of when using query type
> DRM_XE_DEVICE_QUERY_HWCONFIG. The list of keys can be found in IGT
> under lib/intel_hwconfig_types.h.
> 
> Signed-off-by: Francois Dugast <francois.dugast at intel.com>

Reviewed-by: Rodrigo Vivi <rodrigo.vivi at intel.com>

> ---
>  include/uapi/drm/xe_drm.h | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h
> index cc1c6c5d594c..492f3c240e87 100644
> --- a/include/uapi/drm/xe_drm.h
> +++ b/include/uapi/drm/xe_drm.h
> @@ -539,6 +539,11 @@ struct drm_xe_device_query {
>  #define DRM_XE_DEVICE_QUERY_MEM_REGIONS		1
>  #define DRM_XE_DEVICE_QUERY_CONFIG		2
>  #define DRM_XE_DEVICE_QUERY_GT_LIST		3
> +	/*
> +	 * Query type to retrieve the hardware configuration of the device
> +	 * such as information on slices, memory, caches, and so on. It is
> +	 * provided as a table of attributes (key / value).
> +	 */
>  #define DRM_XE_DEVICE_QUERY_HWCONFIG		4
>  #define DRM_XE_DEVICE_QUERY_GT_TOPOLOGY		5
>  #define DRM_XE_DEVICE_QUERY_ENGINE_CYCLES	6
> -- 
> 2.34.1
> 


More information about the Intel-xe mailing list