Re: [PATCH] irqchip/bcm2712-mip: Fix multi-MSI allocation for non-power-of-two counts
From: Florian Fainelli
Date: Thu Nov 12 2026 - 15:37:51 EST
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@xxxxxxxxxxxxxxx
Signed-off-by: Nicolai Buchwitz <nb@xxxxxxxxxxx>
Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian