diff options
author | Joerg Roedel <jroedel@suse.de> | 2017-10-06 12:16:39 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2017-10-10 16:03:43 +0200 |
commit | 37946d95fc1a41ed79efb613b0818c2cdecbb2fa (patch) | |
tree | b03dc00f35958ffe8e76fe2071b64b57c4ff2e8f /drivers/iommu/tegra-gart.c | |
parent | 9e66317d3c92ddaab330c125dfe9d06eee268aff (diff) | |
download | linux-stable-37946d95fc1a41ed79efb613b0818c2cdecbb2fa.tar.gz |
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>
Diffstat (limited to 'drivers/iommu/tegra-gart.c')
0 files changed, 0 insertions, 0 deletions