]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: Covert return of -EBUSY to -ENOMEM in VM bind IOCTL
authorMatthew Brost <matthew.brost@intel.com>
Sat, 22 Nov 2025 01:25:02 +0000 (17:25 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 26 Nov 2025 18:21:46 +0000 (10:21 -0800)
commit6028f59620927aee2e15a424004012ae05c50684
tree422c0d83600ffb73b3286fd1473eacd863136b01
parent9fb1f1256e419fcd0e5000ea8aaa71a65575a90b
drm/xe: Covert return of -EBUSY to -ENOMEM in VM bind IOCTL

xe_vma_userptr_pin_pages can return -EBUSY but -EBUSY has special
meaning in VM bind IOCTLs that user fence is pending that is attached to
the VMA. Convert -EBUSY to -ENOMEM in this case as -EBUSY in practice
means we are low or out of memory.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Link: https://patch.msgid.link/20251122012502.382587-2-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_vm.c