|
@@ -1003,7 +1003,10 @@ intel_ir_set_affinity(struct irq_data *data, const struct cpumask *mask,
|
|
|
*/
|
|
|
irte->vector = cfg->vector;
|
|
|
irte->dest_id = IRTE_DEST(cfg->dest_apicid);
|
|
|
- modify_irte(&ir_data->irq_2_iommu, irte);
|
|
|
+
|
|
|
+ /* Update the hardware only if the interrupt is in remapped mode. */
|
|
|
+ if (ir_data->irq_2_iommu.mode == IRQ_REMAPPING)
|
|
|
+ modify_irte(&ir_data->irq_2_iommu, irte);
|
|
|
|
|
|
/*
|
|
|
* After this point, all the interrupts will start arriving
|