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

Patchwork patchwork at emeril.freedesktop.org
Fri Feb 28 09:41:23 UTC 2025


== Series Details ==

Series: drm/xe: Fix userptr races and missed validations (rev2)
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 2a898eb97d287cfa653a814a80fba61099cc50b7
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 1e777b08d64779d75f6ee2059177dbc0d650d831 drm-intel
114b9c2292b0 drm/xe/vm: Validate userptr during gpu vma prefetching
02189da740cd drm/xe/vm: Fix a misplaced #endif
5db7e8ba57f3 drm/xe: Fix fault mode invalidation with unbind
2a898eb97d28 drm/xe: Add staging tree for VM binds




More information about the Intel-xe mailing list