[PATCH 0/4] drm/xe: Fix userptr races and missed validations

Thomas Hellström thomas.hellstrom at linux.intel.com
Wed Feb 26 15:33:40 UTC 2025


A series that fixes a couple of userptr races and a missed validation.

Patch 1
- Fixes a missed userptr validation causing a potential infinite loop.
Patch 2
- Fixes a misplaced #endif in preparation for patch 3.
Patch 3
- Fixes a race between fault mode invalidation and unbind, where
  the userptr invalidation could attempt to traverse a page-table
  tree under modification
Patch 4
- Fixes a race between fault mode invalidation and multiple bind
  operation, where the invalidation could potentially get lost.

Cc: Matthew Brost <matthew.brost at intel.com>
Cc: Matthew Auld <matthew.auld at intel.com>

Matthew Brost (1):
  drm/xe: Add staging tree for VM binds

Thomas Hellström (3):
  drm/xe/vm: Validate userptr during gpu vma prefetching
  drm/xe/vm: Fix a misplaced #endif
  drm/xe: Fix fault mode invalidation with unbind

 drivers/gpu/drm/xe/xe_pt.c       | 96 ++++++++++++++++----------------
 drivers/gpu/drm/xe/xe_pt_walk.c  |  3 +-
 drivers/gpu/drm/xe/xe_pt_walk.h  |  4 ++
 drivers/gpu/drm/xe/xe_vm.c       | 87 +++++++++++++++++++----------
 drivers/gpu/drm/xe/xe_vm.h       | 10 +++-
 drivers/gpu/drm/xe/xe_vm_types.h |  4 +-
 6 files changed, 123 insertions(+), 81 deletions(-)

-- 
2.48.1



More information about the Intel-xe mailing list