[RFC PATCH] genirq/matrix: Dynamic bitmap allocation
Björn Töpel
bjorn at kernel.org
Thu Oct 26 10:26:38 PDT 2023
Anup Patel <apatel at ventanamicro.com> writes:
> On Thu, Oct 26, 2023 at 3:50 PM Björn Töpel <bjorn at kernel.org> wrote:
>>
>> From: Björn Töpel <bjorn at rivosinc.com>
>>
>> Some (future) users of the irq matrix allocator, do not know the size
>> of the matrix bitmaps at compile time.
>>
>> To avoid wasting memory on unnecessary large bitmaps, size the bitmap
>> at matrix allocation time.
>>
>> Signed-off-by: Björn Töpel <bjorn at rivosinc.com>
>> ---
>> Here's a cleaned up, boot tested, proper patch.
>>
>> Thomas, this is just FYI/RFC. This change would only make sense, if
>> the RISC-V AIA series starts using the IRQ matrix allocator.
>
> I have dropped "multi-MSI" support from the AIA v12 series
> and also integrated the IRQ matrix allocator. This patch is
> included in the AIA v12 series.
Ok!
> For reference, look at riscv_aia_v12 branch at:
> https://github.com/avpatel/linux.git
>
> I still need to rebase this upon device MSI domain support
> from Thomas.
Note that the per-device domain support is already upstream, it's only
the ARM cleanups that are not.
IOW, there's no need to wait for the ARM cleanups. :-)
Björn
More information about the linux-riscv
mailing list