[PATCH] irqchip/bcm2712-mip: Fix multi-MSI allocation for non-power-of-two counts
Florian Fainelli
florian.fainelli at broadcom.com
Thu Nov 12 10:09:56 PST 2026
On 11/12/26 03:58, Nicolai Buchwitz wrote:
> ilog2() rounds down, so a request for three vectors reserves only two
> slots and the third can overlap another allocation. The alignment is
> also applied to the bitmap index and ignores the msi_offset that is
> added to the message data.
>
> Reserve exactly the requested number of slots and align the start of
> the message data block to the vector count rounded up to a power of
> two.
>
> Fixes: 32c6c054661a ("irqchip: Add Broadcom BCM2712 MSI-X interrupt controller")
> Cc: stable at vger.kernel.org
> Signed-off-by: Nicolai Buchwitz <nb at tipi-net.de>
Reviewed-by: Florian Fainelli <florian.fainelli at broadcom.com>
--
Florian
More information about the linux-rpi-kernel
mailing list