diff options
author | Joerg Roedel <joro@8bytes.org> | 2012-09-26 06:44:36 -0400 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2013-01-28 04:48:30 -0500 |
commit | afcc8a40a090f7a65d3b72bac1a26fc6dbb63b10 (patch) | |
tree | 68dca920cd86459c3468ae0b5d22eab5af4af4b2 /drivers/iommu | |
parent | 1c4248ca4e783e47cc34e313d9f82b4ea52774cc (diff) |
x86, io_apic: Introduce x86_io_apic_ops.print_entries for debugging
This call-back is used to dump IO-APIC entries for debugging
purposes into the kernel log. VT-d needs a special routine
for this and will overwrite the default.
Signed-off-by: Joerg Roedel <joro@8bytes.org>
Acked-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/intel_irq_remapping.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c index af8904de1d44..cb9a72d4cc09 100644 --- a/drivers/iommu/intel_irq_remapping.c +++ b/drivers/iommu/intel_irq_remapping.c | |||
@@ -617,6 +617,14 @@ static int __init intel_enable_irq_remapping(void) | |||
617 | goto error; | 617 | goto error; |
618 | 618 | ||
619 | irq_remapping_enabled = 1; | 619 | irq_remapping_enabled = 1; |
620 | |||
621 | /* | ||
622 | * VT-d has a different layout for IO-APIC entries when | ||
623 | * interrupt remapping is enabled. So it needs a special routine | ||
624 | * to print IO-APIC entries for debugging purposes too. | ||
625 | */ | ||
626 | x86_io_apic_ops.print_entries = intel_ir_io_apic_print_entries; | ||
627 | |||
620 | pr_info("Enabled IRQ remapping in %s mode\n", eim ? "x2apic" : "xapic"); | 628 | pr_info("Enabled IRQ remapping in %s mode\n", eim ? "x2apic" : "xapic"); |
621 | 629 | ||
622 | return eim ? IRQ_REMAP_X2APIC_MODE : IRQ_REMAP_XAPIC_MODE; | 630 | return eim ? IRQ_REMAP_X2APIC_MODE : IRQ_REMAP_XAPIC_MODE; |