✓ CI.checkpatch: success for drm/xe/gt: Fix assert in L3 bank mask generation (rev2)

Patchwork patchwork at emeril.freedesktop.org
Tue Apr 30 11:46:03 UTC 2024


== Series Details ==

Series: drm/xe/gt: Fix assert in L3 bank mask generation (rev2)
URL   : https://patchwork.freedesktop.org/series/133055/
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
0daf0be5bb95eb0a0e42275e00a0e42d8d8fd543
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 9e31353df1beacf67f6b0aba0499530a0d1a949a
Author: Francois Dugast <francois.dugast at intel.com>
Date:   Tue Apr 30 11:40:45 2024 +0000

    drm/xe/gt: Fix assert in L3 bank mask generation
    
    What needs to be asserted is that the pattern fits in the number
    of bits provided by the user in patternbits, otherwise it would
    be truncated when replicated according to the mask, which is
    likely not the intended use of this function.
    The pattern argument is a bitmap so use find_last_bit() instead
    of fls(). The bit position starts at index 0 so remove "or equal"
    from the comparison, and XE_MAX_L3_BANK_MASK_BITS would be the
    returned value if the pattern is 0.
    
    Cc: Matt Roper <matthew.d.roper at intel.com>
    Cc: Lucas De Marchi <lucas.demarchi at intel.com>
    Signed-off-by: Francois Dugast <francois.dugast at intel.com>
+ /mt/dim checkpatch 39bf0b9d268e460fe2b7e9f792c9d610655eb9b7 drm-intel
9e31353df1be drm/xe/gt: Fix assert in L3 bank mask generation




More information about the Intel-xe mailing list