From dddab9fa778d85f9b2f11eeec2b635b02b46e54f Mon Sep 17 00:00:00 2001 From: Shuicheng Lin Date: Fri, 17 Nov 2023 13:21:33 +0000 Subject: [PATCH] intel/xe: Correct DRM_XE_EXEC_QUEUE_SET_PROPERTY's ioctl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DRM_XE_EXEC_QUEUE_SET_PROPERTY is the offset, while DRM_IOCTL_XE_EXEC_QUEUE_SET_PROPERTY is the real number. Signed-off-by: Shuicheng Lin Reviewed-by: Lionel Landwerlin Reviewed-by: José Roberto de Souza Part-of: --- src/gallium/drivers/iris/xe/iris_batch.c | 2 +- src/intel/vulkan/xe/anv_queue.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/iris/xe/iris_batch.c b/src/gallium/drivers/iris/xe/iris_batch.c index 5f29aa27c4e..c5a8afdb5b5 100644 --- a/src/gallium/drivers/iris/xe/iris_batch.c +++ b/src/gallium/drivers/iris/xe/iris_batch.c @@ -90,7 +90,7 @@ iris_xe_init_batch(struct iris_bufmgr *bufmgr, goto error_create_exec_queue; exec_queue_property.exec_queue_id = create.exec_queue_id; - intel_ioctl(iris_bufmgr_get_fd(bufmgr), DRM_XE_EXEC_QUEUE_SET_PROPERTY, + intel_ioctl(iris_bufmgr_get_fd(bufmgr), DRM_IOCTL_XE_EXEC_QUEUE_SET_PROPERTY, &exec_queue_property); /* TODO: handle "protected" context/exec_queue */ diff --git a/src/intel/vulkan/xe/anv_queue.c b/src/intel/vulkan/xe/anv_queue.c index 2c51b22b721..b4aefa29cd8 100644 --- a/src/intel/vulkan/xe/anv_queue.c +++ b/src/intel/vulkan/xe/anv_queue.c @@ -121,7 +121,7 @@ create_engine(struct anv_device *device, .property = XE_EXEC_QUEUE_SET_PROPERTY_PRIORITY, .value = anv_vk_priority_to_drm_sched_priority(priority), }; - ret = intel_ioctl(device->fd, DRM_XE_EXEC_QUEUE_SET_PROPERTY, + ret = intel_ioctl(device->fd, DRM_IOCTL_XE_EXEC_QUEUE_SET_PROPERTY, &exec_queue_property); if (ret && priority > VK_QUEUE_GLOBAL_PRIORITY_MEDIUM_KHR) goto priority_error;