diff options
| author | Joerg Roedel <[email protected]> | 2017-10-06 10:16:39 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2017-10-10 14:03:43 +0000 |
| commit | 37946d95fc1a41ed79efb613b0818c2cdecbb2fa (patch) | |
| tree | b03dc00f35958ffe8e76fe2071b64b57c4ff2e8f /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | Linux 4.14-rc3 (diff) | |
| download | kernel-37946d95fc1a41ed79efb613b0818c2cdecbb2fa.tar.gz kernel-37946d95fc1a41ed79efb613b0818c2cdecbb2fa.zip | |
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 <[email protected]>
Fixes: 2b324506341cb ('iommu/amd: Add routines to manage irq remapping tables')
Reviewed-by: Thomas Gleixner <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
