drm/xe: Fix exec IOCTL long running exec queue ring full condition
authorMatthew Brost <matthew.brost@intel.com>
Thu, 4 Jan 2024 08:00:39 +0000 (00:00 -0800)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 15 Jan 2024 14:36:37 +0000 (15:36 +0100)
commit56c253daabc8bd9dfbae52c3d9e0dd34977347a6
treeeeb88b0d11383edfd4a60f090b529a01c805ef39
parent7b1a8a5fcee4a85be1f540ac0e09761d421e562d
drm/xe: Fix exec IOCTL long running exec queue ring full condition

The intent is to return -EWOULDBLOCK to the user if a long running exec
queue is full during the exec IOCTL. -EWOULDBLOCK aliases to -EAGAIN
which results in the exec IOCTL doing a retry loop. Fix this by ensuring
the retry loop is broken when returning -EWOULDBLOCK.

Fixes: 8ae8a2e8dd21 ("drm/xe: Long running job update")
Reported-by: Sai Gowtham Ch <sai.gowtham.ch@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Brian Welty <brian.welty@intel.com>
(cherry picked from commit 97d0047cbb17318431eaf37dfe1a6855539340f9)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
drivers/gpu/drm/xe/xe_exec.c