✓ CI.checkpatch: success for drm/xe: Ensure XE_BO_FLAG_CPU_ADDR_MIRROR has a unique value

Patchwork patchwork at emeril.freedesktop.org
Fri Apr 4 22:26:21 UTC 2025


== Series Details ==

Series: drm/xe: Ensure XE_BO_FLAG_CPU_ADDR_MIRROR has a unique value
URL   : https://patchwork.freedesktop.org/series/147286/
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
99e5a866b5e13f134e606a3e29d9508d97826fb3
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 623ffd0cd81b9cd497ccee2442f07f2b6629bc6a
Author: Matt Roper <matthew.d.roper at intel.com>
Date:   Fri Apr 4 15:00:54 2025 -0700

    drm/xe: Ensure XE_BO_FLAG_CPU_ADDR_MIRROR has a unique value
    
    When XE_BO_FLAG_PINNED_NORESTORE and XE_BO_FLAG_PINNED_LATE_RESTORE were
    added, they were assigned BO flag values in the middle of the flag
    range, requiring renumbering of the higher flags.  In both cases,
    XE_BO_FLAG_CPU_ADDR_MIRROR was overlooked during renumbering because it
    was defined below XE_BO_FLAG_GGTT_ALL and thus was not immediately
    visible in code diffs changing this area of the code; this resulted in
    XE_BO_FLAG_CPU_ADDR_MIRROR clashing with another flag.
    
    Assign XE_BO_FLAG_CPU_ADDR_MIRROR a unique value, and also move the
    definition of XE_BO_FLAG_GGTT_ALL down below all of the individual flags
    so that this kind of mistake is less likely in the future.  Also, while
    we're at it, fix up some space vs tab whitespace inconsistency in these
    flag definitions.
    
    Fixes: 7f387e6012b6 ("drm/xe: add XE_BO_FLAG_PINNED_LATE_RESTORE")
    Fixes: 045448da87bf ("drm/xe: Add XE_BO_FLAG_PINNED_NORESTORE")
    Cc: Matthew Auld <matthew.auld at intel.com>
    Cc: Matthew Brost <matthew.brost at intel.com>
    Signed-off-by: Matt Roper <matthew.d.roper at intel.com>
+ /mt/dim checkpatch 60b7ecc2c5c979cfb8863272348bd6724559b5be drm-intel
623ffd0cd81b drm/xe: Ensure XE_BO_FLAG_CPU_ADDR_MIRROR has a unique value




More information about the Intel-xe mailing list