[Intel-xe] [PATCH v1 6/7] drm/xe/uapi: Remove unused QUERY_CONFIG_GT_COUNT
Souza, Jose
jose.souza at intel.com
Fri Nov 10 15:56:00 UTC 2023
On Fri, 2023-11-10 at 15:41 +0000, Francois Dugast wrote:
> As part of uAPI cleanup, remove this constant which is not used. Number
> of GTs are provided as num_gt in drm_xe_query_gt_list.
Reviewed-by: José Roberto de Souza <jose.souza at intel.com>
>
> Signed-off-by: Francois Dugast <francois.dugast at intel.com>
> ---
> drivers/gpu/drm/xe/xe_query.c | 1 -
> include/uapi/drm/xe_drm.h | 3 +--
> 2 files changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_query.c b/drivers/gpu/drm/xe/xe_query.c
> index 27f66de4c1cd..9320bce382de 100644
> --- a/drivers/gpu/drm/xe/xe_query.c
> +++ b/drivers/gpu/drm/xe/xe_query.c
> @@ -333,7 +333,6 @@ static int query_config(struct xe_device *xe, struct drm_xe_device_query *query)
> config->info[XE_QUERY_CONFIG_MIN_ALIGNMENT] =
> xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K ? SZ_64K : SZ_4K;
> config->info[XE_QUERY_CONFIG_VA_BITS] = xe->info.va_bits;
> - config->info[XE_QUERY_CONFIG_GT_COUNT] = xe->info.gt_count;
> config->info[XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY] =
> xe_exec_queue_device_get_max_priority(xe);
>
> diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h
> index 1ac9ae0591de..097d045d0444 100644
> --- a/include/uapi/drm/xe_drm.h
> +++ b/include/uapi/drm/xe_drm.h
> @@ -325,8 +325,7 @@ struct drm_xe_query_config {
> #define XE_QUERY_CONFIG_FLAGS_HAS_VRAM (0x1 << 0)
> #define XE_QUERY_CONFIG_MIN_ALIGNMENT 2
> #define XE_QUERY_CONFIG_VA_BITS 3
> -#define XE_QUERY_CONFIG_GT_COUNT 4
> -#define XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY 5
> +#define XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY 4
> /** @info: array of elements containing the config info */
> __u64 info[];
> };
More information about the Intel-xe
mailing list