]> git.baikalelectronics.ru Git - 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)
commit85030a8806cd05be97287cd00e1451d8d77c7975
treeb03dc00f35958ffe8e76fe2071b64b57c4ff2e8f
parentb888c937506147d5d77f24afb038b53ae6e1b4f2
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: 3ce3dea1196db ('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