[PATCH] drm/xe/gt: Fix assert in L3 bank mask generation
Lucas De Marchi
lucas.demarchi at intel.com
Thu May 2 18:49:49 UTC 2024
On Thu, 02 May 2024 14:43:10 +0200, Francois Dugast wrote:
> 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. XE_MAX_L3_BANK_MASK_BITS would be the
> returned value if the pattern is 0, which can be the case on some
> platforms.
>
> [...]
Applied to drm-xe-next, thanks!
[1/1] drm/xe/gt: Fix assert in L3 bank mask generation
commit: 8ad0e1810bf23f22cedb8a2664548b15646570c7
Best regards,
--
Lucas De Marchi <lucas.demarchi at intel.com>
More information about the Intel-xe
mailing list