[PATCH]

From: Jiang Liu
Date: Thu Dec 11 2014 - 09:25:40 EST



Signed-off-by: Jiang Liu <jiang.liu@xxxxxxxxxxxxxxx>
---
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


--------------090302060305040407060500--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/