drm/xe/uapi: add exec_queue_id member to drm_xe_wait_user_fence structure
authorBommu Krishnaiah <krishnaiah.bommu@intel.com>
Fri, 15 Dec 2023 15:45:33 +0000 (15:45 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:46:20 +0000 (11:46 -0500)
commit9212da07187f86db8bd124b1ce551a18b8a710d6
tree2b853271f62d60222d76b9477c5a5227894a06d7
parent7a8bc11782d39e4d35dc7e78405dfe052cbba9cf
drm/xe/uapi: add exec_queue_id member to drm_xe_wait_user_fence structure

remove the num_engines/instances members from drm_xe_wait_user_fence
structure and add a exec_queue_id member

Right now this is only checking if the engine list is sane and nothing
else. In the end every operation with this IOCTL is a soft check.
So, let's formalize that and only use this IOCTL to wait on the fence.

exec_queue_id member will help to user space to get proper error code
from kernel while in exec_queue reset

Signed-off-by: Bommu Krishnaiah <krishnaiah.bommu@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Acked-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Francois Dugast <francois.dugast@intel.com>
Acked-by: José Roberto de Souza <jose.souza@intel.com>
Acked-by: Mateusz Naklicki <mateusz.naklicki@intel.com>
Signed-off-by: Francois Dugast <francois.dugast@intel.com>
drivers/gpu/drm/xe/xe_wait_user_fence.c
include/uapi/drm/xe_drm.h