[igt-dev] [PATCH i-g-t v2 1/2] drm-uapi: Add DRM_I915_QUERY_L3BANK_COUNT query

Kamil Konieczny kamil.konieczny at linux.intel.com
Mon Sep 25 08:34:52 UTC 2023


Hi Jonathan,

On 2023-09-22 at 07:11:17 -0700, Jonathan Cavitt wrote:
> Add drm-uapi specifications for DRM_I915_QUERY_L3BANK_COUNT query.
> 
> Signed-off-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
> ---
>  include/drm-uapi/i915_drm.h | 13 +++++++++++++

Please put this change into lib/i915/i915_drm_local.h
as this is not in drm-next yet, see patch from Ashutosh:
include/drm-uapi: Update to latest i915_drm.h from drm-next
https://patchwork.freedesktop.org/series/124144/

+cc Ashutosh

Regards,
Kamil

>  1 file changed, 13 insertions(+)
> 
> diff --git a/include/drm-uapi/i915_drm.h b/include/drm-uapi/i915_drm.h
> index a0876ee413..edf3b1e445 100644
> --- a/include/drm-uapi/i915_drm.h
> +++ b/include/drm-uapi/i915_drm.h
> @@ -2813,6 +2813,7 @@ struct drm_i915_query_item {
>  	 *  - %DRM_I915_QUERY_MEMORY_REGIONS (see struct drm_i915_query_memory_regions)
>  	 *  - %DRM_I915_QUERY_HWCONFIG_BLOB (see `GuC HWCONFIG blob uAPI`)
>  	 *  - %DRM_I915_QUERY_GEOMETRY_SUBSLICES (see struct drm_i915_query_topology_info)
> +	 *  - %DRM_I915_QUERY_L3BANK_COUNT (see `L3 Bank Count Query uAPI`)
>  	 */
>  	__u64 query_id;
>  #define DRM_I915_QUERY_TOPOLOGY_INFO		1
> @@ -2821,6 +2822,7 @@ struct drm_i915_query_item {
>  #define DRM_I915_QUERY_MEMORY_REGIONS		4
>  #define DRM_I915_QUERY_HWCONFIG_BLOB		5
>  #define DRM_I915_QUERY_GEOMETRY_SUBSLICES	6
> +#define DRM_I915_QUERY_L3BANK_COUNT		7
>  /* Must be kept compact -- no holes and well documented */
>  
>  	/**
> @@ -3502,6 +3504,17 @@ struct drm_i915_gem_create_ext {
>  	__u64 extensions;
>  };
>  
> +/**
> + * DOC: L3 Bank Count Query uAPI
> + *
> + * The L3 bank count query called through the query id
> + * DRM_I915_QUERY_L3BANK_COUNT and returns the count of
> + * the available L3 Banks on a given engine.
> + *
> + * The count itself is an integer, and since no additional
> + * data is returned, the count is returned as such.
> + */
> +
>  /**
>   * struct drm_i915_gem_create_ext_memory_regions - The
>   * I915_GEM_CREATE_EXT_MEMORY_REGIONS extension.
> -- 
> 2.25.1
> 


More information about the igt-dev mailing list