Commit c18d2388170132ce015475f1fdab272b62c1e2da
1 parent
d04e0ba343
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
iommu/irq: Use amd_iommu_irq_ops if supported
Finally enable interrupt remapping for AMD systems. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff
drivers/iommu/irq_remapping.c
... | ... | @@ -51,6 +51,11 @@ |
51 | 51 | void __init setup_irq_remapping_ops(void) |
52 | 52 | { |
53 | 53 | remap_ops = &intel_irq_remap_ops; |
54 | + | |
55 | +#ifdef CONFIG_AMD_IOMMU | |
56 | + if (amd_iommu_irq_ops.prepare() == 0) | |
57 | + remap_ops = &amd_iommu_irq_ops; | |
58 | +#endif | |
54 | 59 | } |
55 | 60 | |
56 | 61 | int irq_remapping_supported(void) |