Re: [PATCH 1/2] iommu/amd: Add align parameter to alloc_irq_index()

From: Thomas Gleixner
Date: Sun Oct 08 2017 - 04:39:56 EST


On Fri, 6 Oct 2017, Joerg Roedel wrote:

> From: Joerg Roedel <jroedel@xxxxxxx>
>
> For multi-MSI IRQ ranges the IRQ index needs to be aligned
> to the power-of-two of the requested IRQ count. Extend the
> alloc_irq_index() function to allow such an allocation.
>
> Reported-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Fixes: 2b324506341cb ('iommu/amd: Add routines to manage irq remapping tables')
> Signed-off-by: Joerg Roedel <jroedel@xxxxxxx>

Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>