summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/xe/xe_execlist.c
diff options
context:
space:
mode:
authorBommu Krishnaiah <krishnaiah.bommu@intel.com>2023-12-15 15:45:34 +0000
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 11:46:20 -0500
commite670f0b4ef2419a7a51d1726044c8715ff4d4cda (patch)
tree9d2a1ca1ed9642d68be9358c03bdf5328d5fea5f /drivers/gpu/drm/xe/xe_execlist.c
parent9212da07187f86db8bd124b1ce551a18b8a710d6 (diff)
downloadlinux-stable-e670f0b4ef2419a7a51d1726044c8715ff4d4cda.tar.gz
linux-stable-e670f0b4ef2419a7a51d1726044c8715ff4d4cda.tar.bz2
linux-stable-e670f0b4ef2419a7a51d1726044c8715ff4d4cda.zip
drm/xe/uapi: Return correct error code for xe_wait_user_fence_ioctl
Currently xe_wait_user_fence_ioctl is not checking exec_queue state and blocking until timeout, with this patch wakeup the blocking wait if exec_queue reset happen and returning proper error code Signed-off-by: Bommu Krishnaiah <krishnaiah.bommu@intel.com> Cc: Oak Zeng <oak.zeng@intel.com> Cc: Kempczynski Zbigniew <Zbigniew.Kempczynski@intel.com> Cc: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Acked-by: José Roberto de Souza <jose.souza@intel.com> Acked-by: Mateusz Naklicki <mateusz.naklicki@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_execlist.c')
-rw-r--r--drivers/gpu/drm/xe/xe_execlist.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_execlist.c b/drivers/gpu/drm/xe/xe_execlist.c
index 507b6baec3dc..96b5224eb478 100644
--- a/drivers/gpu/drm/xe/xe_execlist.c
+++ b/drivers/gpu/drm/xe/xe_execlist.c
@@ -442,6 +442,12 @@ static void execlist_exec_queue_resume(struct xe_exec_queue *q)
/* NIY */
}
+static bool execlist_exec_queue_reset_status(struct xe_exec_queue *q)
+{
+ /* NIY */
+ return false;
+}
+
static const struct xe_exec_queue_ops execlist_exec_queue_ops = {
.init = execlist_exec_queue_init,
.kill = execlist_exec_queue_kill,
@@ -453,6 +459,7 @@ static const struct xe_exec_queue_ops execlist_exec_queue_ops = {
.suspend = execlist_exec_queue_suspend,
.suspend_wait = execlist_exec_queue_suspend_wait,
.resume = execlist_exec_queue_resume,
+ .reset_status = execlist_exec_queue_reset_status,
};
int xe_execlist_init(struct xe_gt *gt)