]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Simplify VM bind IOCTL error handling and cleanup
authorMatthew Brost <matthew.brost@intel.com>
Thu, 25 Apr 2024 04:55:06 +0000 (21:55 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Fri, 26 Apr 2024 19:10:00 +0000 (12:10 -0700)
commit4dbbe4579490b4dbc89bf9c79ef3b9f1d94366c3
tree7e3a375c3a7a01c42379fb30e039065cbd556684
parent5f677a9b6537dbfe061ec9ab1c5b34b21e4855a3
drm/xe: Simplify VM bind IOCTL error handling and cleanup

Clean up everything in VM bind IOCTL in 1 path for both errors and
non-errors. Also move VM bind IOCTL cleanup from ops (also used by
non-IOCTL binds) to the VM bind IOCTL.

v2:
 - Break ops_execute on error (Oak)

Cc: Oak Zeng <oak.zeng@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Oak Zeng <oak.zeng@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240425045513.1913039-7-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_vm.c
drivers/gpu/drm/xe/xe_vm_types.h