✓ CI.checkpatch: success for drm/xe: Fix userptr races and missed validations (rev3)

Patchwork patchwork at emeril.freedesktop.org
Tue Mar 4 19:31:27 UTC 2025


== Series Details ==

Series: drm/xe: Fix userptr races and missed validations (rev3)
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
0e065e7fc7a503d5e87f2d2781c5e1fc719d16dd
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 96c2e45067f77729ca913d5e1baaffa3a98bf6dd
Author: Matthew Brost <matthew.brost at intel.com>
Date:   Fri Feb 28 08:30:58 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 ff2d693d88726e29a1d87291105135c31c21fa26 drm-intel
5cadb1c9c24b drm/xe/vm: Validate userptr during gpu vma prefetching
afbc5c264991 drm/xe/vm: Fix a misplaced #endif
2f1e5efe2ce2 drm/xe: Fix fault mode invalidation with unbind
96c2e45067f7 drm/xe: Add staging tree for VM binds




More information about the Intel-xe mailing list