]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
iommu/amd: Add align parameter to alloc_irq_index()
authorJoerg Roedel <jroedel@suse.de>
Fri, 6 Oct 2017 10:16:39 +0000 (12:16 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 10 Oct 2017 14:03:43 +0000 (16:03 +0200)
commit37946d95fc1a41ed79efb613b0818c2cdecbb2fa
treeb03dc00f35958ffe8e76fe2071b64b57c4ff2e8f
parent9e66317d3c92ddaab330c125dfe9d06eee268aff
iommu/amd: Add align parameter to alloc_irq_index()

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@linutronix.de>
Fixes: 2b324506341cb ('iommu/amd: Add routines to manage irq remapping tables')
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c