summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_query.c
diff options
context:
space:
mode:
authorFrancois Dugast <francois.dugast@intel.com>2023-11-10 18:41:50 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 19:44:32 +0300
commitde84aa96e4427125d00af1706b59584b2cbb0085 (patch)
tree97a979b2aa90923166e7346355aac704890d2a7a /drivers/gpu/drm/xe/xe_query.c
parent3d78923bd07ad99a33b06eaa69194b35ac1637f1 (diff)
downloadlinux-de84aa96e4427125d00af1706b59584b2cbb0085.tar.xz
drm/xe/uapi: Remove useless XE_QUERY_CONFIG_NUM_PARAM
num_params can be used to retrieve the size of the info array for the specific version of the kernel being used. v2: Also remove XE_QUERY_CONFIG_NUM_PARAM (José Roberto de Souza) Signed-off-by: Francois Dugast <francois.dugast@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_query.c')
-rw-r--r--drivers/gpu/drm/xe/xe_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_query.c b/drivers/gpu/drm/xe/xe_query.c
index 10b9878ec95a..58fb06a63db2 100644
--- a/drivers/gpu/drm/xe/xe_query.c
+++ b/drivers/gpu/drm/xe/xe_query.c
@@ -305,7 +305,7 @@ static int query_memory_usage(struct xe_device *xe,
static int query_config(struct xe_device *xe, struct drm_xe_device_query *query)
{
- u32 num_params = XE_QUERY_CONFIG_NUM_PARAM;
+ const u32 num_params = XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY + 1;
size_t size =
sizeof(struct drm_xe_query_config) + num_params * sizeof(u64);
struct drm_xe_query_config __user *query_ptr =