✓ CI.checkpatch: success for drm/xe: Fix userptr races and missed validations
Patchwork
patchwork at emeril.freedesktop.org
Wed Feb 26 16:19:21 UTC 2025
== Series Details ==
Series: drm/xe: Fix userptr races and missed validations
URL : https://patchwork.freedesktop.org/series/145498/
State : success
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
22f9cda3436b4fe965b5c5f31d2f2c1bcb483189
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit df1f8796ef69d3478e81192c01cb1893a5d69b10
Author: Matthew Brost <matthew.brost at intel.com>
Date: Wed Feb 26 16:33:44 2025 +0100
drm/xe: Add staging tree for VM binds
Concurrent VM bind staging and zapping of PTEs from a userptr notifier
do not work because the view of PTEs is not stable. VM binds cannot
acquire the notifier lock during staging, as memory allocations are
required. To resolve this race condition, use a staging tree for VM
binds that is committed only under the userptr notifier lock during the
final step of the bind. This ensures a consistent view of the PTEs in
the userptr notifier.
A follow up may only use staging for VM in fault mode as this is the
only mode in which the above race exists.
v3:
- Drop zap PTE change (Thomas)
- s/xe_pt_entry/xe_pt_entry_staging (Thomas)
Suggested-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Cc: <stable at vger.kernel.org>
Fixes: e8babb280b5e ("drm/xe: Convert multiple bind ops into single job")
Fixes: a708f6501c69 ("drm/xe: Update PT layer with better error handling")
Signed-off-by: Matthew Brost <matthew.brost at intel.com>
+ /mt/dim checkpatch d6577b928ce588c71bebfc6041b8c285b679750d drm-intel
5b1bcb6637bc drm/xe/vm: Validate userptr during gpu vma prefetching
63a256009dcf drm/xe/vm: Fix a misplaced #endif
1c776aa9e0bf drm/xe: Fix fault mode invalidation with unbind
df1f8796ef69 drm/xe: Add staging tree for VM binds
More information about the Intel-xe
mailing list