✓ CI.checkpatch: success for drm/xe/gt: Fix assert in L3 bank mask generation
Patchwork
patchwork at emeril.freedesktop.org
Tue Apr 30 08:48:48 UTC 2024
== Series Details ==
Series: drm/xe/gt: Fix assert in L3 bank mask generation
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 63c07418f46c092373ad5ed2de2da3ab4ac8eb60
Author: Francois Dugast <francois.dugast at intel.com>
Date: Tue Apr 30 08:43:09 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.
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 429c710ab5eee230e239c85040716ed068fff345 drm-intel
63c07418f46c drm/xe/gt: Fix assert in L3 bank mask generation
More information about the Intel-xe
mailing list