>From 9588cf7c376237ee0c2708c4e648328f433257d5 Mon Sep 17 00:00:00 2001 From: Jiang Liu Date: Thu, 11 Dec 2014 22:25:40 +0800 Subject: [PATCH] Signed-off-by: Jiang Liu --- drivers/iommu/intel_irq_remapping.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c index ff35b0336d2b..8503cd467484 100644 --- a/drivers/iommu/intel_irq_remapping.c +++ b/drivers/iommu/intel_irq_remapping.c @@ -1207,6 +1207,19 @@ static void intel_irq_remapping_activate(struct irq_domain *domain, { struct intel_ir_data *data = irq_data->chip_data; + if (irq_data->irq >= 91 && irq_data->irq <= 106) { + struct irq_2_iommu *irq_iommu; + struct intel_iommu *iommu; + + irq_iommu = &data->irq_2_iommu; + iommu = irq_iommu->iommu; + pr_warn("iommu: chip_data %p, iommu %p, index %d, subindex %d, ir_table %p, table_base %p, queue %p\n", + data, iommu, irq_iommu->irte_index, irq_iommu->sub_handle, + iommu ? iommu->ir_table : NULL, + iommu && iommu->ir_table ? iommu->ir_table->base : NULL, + iommu && iommu->qi ? iommu->qi->desc : NULL); + } + modify_irte(&data->irq_2_iommu, &data->irte_entry); } -- 1.7.10.4