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

Patchwork patchwork at emeril.freedesktop.org
Fri Nov 24 10:24:09 UTC 2023


== Series Details ==

Series: drm/xe: Assorted memory-management fixes (rev3)
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 fa70296a612ad2ee71068738e764529cc48b9f6a
Author: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Date:   Fri Nov 24 10:11:11 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
74123a725 drm/xe: Ensure that we don't access the placements array out-of-bounds
5fb88fbc5 drm/xe/bo: Rename xe_bo_get_sg() to xe_bo_sg()
a9e7ce997 drm/xe/bo: Remove leftover trace_printk()
fa70296a6 drm/xe/vm: Fix ASID XA usage




More information about the Intel-xe mailing list