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

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


== Series Details ==

Series: drm/xe: Assorted memory-management fixes (rev2)
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 016715465e52d22f99386dff8949a1449644c310
Author: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Date:   Thu Nov 23 16:31:58 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).
    
    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: Matthew Auld <matthew.auld at intel.com>
+ /mt/dim checkpatch 1832821c7e4c5bd24353183f060f1435b2eb7992 drm-intel
92999c6d9 drm/xe: Ensure that we don't access the placements array out-of-bounds
563f3cdc4 drm/xe/bo: Rename xe_bo_get_sg() to xe_bo_sg()
4e4145e07 drm/xe/bo: Remove leftover trace_printk()
016715465 drm/xe/vm: Fix ASID XA usage




More information about the Intel-xe mailing list