✓ CI.checkpatch: success for drm/xe: Avoid evicting object of the same vm in none fault mode (rev2)

Patchwork patchwork at emeril.freedesktop.org
Tue Dec 3 02:11:03 UTC 2024


== Series Details ==

Series: drm/xe: Avoid evicting object of the same vm in none fault mode (rev2)
URL   : https://patchwork.freedesktop.org/series/141898/
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
30ab6715fc09baee6cc14cb3c89ad8858688d474
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 1def8594424e9211e8a76fe1e4330e04863df773
Author: Oak Zeng <oak.zeng at intel.com>
Date:   Mon Dec 2 21:19:29 2024 -0500

    drm/xe: Avoid evicting object of the same vm in none fault mode
    
    BO validation during vm_bind could trigger memory eviction when
    system runs under memory pressure. Right now we blindly evict
    BOs of all VMs. This scheme has a problem when system runs in
    none recoverable page fault mode: even though the vm_bind could
    be successful by evicting BOs, the later the rebinding of the
    evicted BOs would fail. So it is better to report an out-of-
    memory failure at vm_bind time than at time of rebinding where
    xekmd currently doesn't have a good mechanism to report error
    to user space.
    
    This patch implemented a scheme to only evict objects of other
    VMs during vm_bind time. Object of the same VM will skip eviction.
    If we failed to find enough memory for vm_bind, we report error
    to user space at vm_bind time.
    
    This scheme is not needed for recoverable page fault mode under
    what we can dynamically fault-in pages on demand.
    
    v1: Use xe_vm_in_preempt_fence_mode instead of stack variable (Thomas)
    
    Signed-off-by: Oak Zeng <oak.zeng at intel.com>
    Suggested-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
    Reviewed-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
+ /mt/dim checkpatch 4de82d50b8de6a278c1483a7f76ae830c89d1824 drm-intel
1def8594424e drm/xe: Avoid evicting object of the same vm in none fault mode




More information about the Intel-xe mailing list