[PATCH v2 0/4] drm/xe: Fix userptr races and missed validations
Thomas Hellström
thomas.hellstrom at linux.intel.com
Fri Feb 28 07:30:54 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.
v2:
- Fix an unintended Fallthrough (Matt Brost)
- Don't recommend backport of Patch2 for older kernels
than 6.12+ (Lucas)
- Update the locking requirement docs and asserts for
forced invalidations
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 | 96 ++++++++++++++++++++++----------
drivers/gpu/drm/xe/xe_vm.h | 10 +++-
drivers/gpu/drm/xe/xe_vm_types.h | 4 +-
6 files changed, 132 insertions(+), 81 deletions(-)
--
2.48.1
More information about the Intel-xe
mailing list