[Intel-xe] ✓ CI.checkpatch: success for drm/xe: Assorted memory-management fixes (rev4)

Patchwork patchwork at emeril.freedesktop.org
Fri Nov 24 18:21:12 UTC 2023


== Series Details ==

Series: drm/xe: Assorted memory-management fixes (rev4)
URL   : https://patchwork.freedesktop.org/series/126753/
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
63c2b6b160bca2df6efc7bc4cea6f442097d7854
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit a7b4fd7854c786d44a2f10e27acfe2f879049d4e
Author: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Date:   Fri Nov 24 16:33:45 2023 +0100

    drm/xe/vm: Fix ASID XA usage
    
    xa_alloc_cyclic() returns 1 on successful allocation, if wrapping occurs,
    but the code incorrectly treats that as an error. Fix that.
    Also, xa_alloc_cyclic() requires xa_init_flags(..., XA_FLAGS_ALLOC), so
    fix that, and assuming we don't want a zero ASID, instead of using
    XA_FLAGS_ALLOC1, adjust the xa limits at alloc_cyclic time.
    
    v2:
    - On CONFIG_DRM_XE_DEBUG, Initialize the cyclic ASID allocation in such a
      way that the next allocated ASID will be the maximum one, and the one
      following will cause an ASID wrap, (all to have CI test high ASIDs
      and ASID wraps).
    v3:
    - Stricter return value checking from xa_alloc_cyclic() (Matthew Auld)
    
    Suggested-by: Ohad Sharabi <osharabi at habana.ai>
    Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/946
    Signed-off-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
    Reviewed-by: Ohad Sharabi <osharabi at habana.ai> #v1
    Reviewed-by: Matthew Auld <matthew.auld at intel.com>
+ /mt/dim checkpatch 1832821c7e4c5bd24353183f060f1435b2eb7992 drm-intel
bf0013206 drm/xe: Ensure that we don't access the placements array out-of-bounds
b1f42ddaf drm/xe/bo: Rename xe_bo_get_sg() to xe_bo_sg()
41ea6e093 drm/xe/bo: Remove leftover trace_printk()
a7b4fd785 drm/xe/vm: Fix ASID XA usage




More information about the Intel-xe mailing list