We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8d4a37 commit 01b297aCopy full SHA for 01b297a
drivers/iommu/amd/init.c
@@ -2172,7 +2172,6 @@ static int iommu_setup_intcapxt(struct amd_iommu *iommu)
2172
return ret;
2173
}
2174
2175
- iommu_feature_enable(iommu, CONTROL_INTCAPXT_EN);
2176
return 0;
2177
2178
@@ -2195,6 +2194,10 @@ static int iommu_init_irq(struct amd_iommu *iommu)
2195
2194
2196
iommu->int_enabled = true;
2197
enable_faults:
+
2198
+ if (amd_iommu_xt_mode == IRQ_REMAP_X2APIC_MODE)
2199
+ iommu_feature_enable(iommu, CONTROL_INTCAPXT_EN);
2200
2201
iommu_feature_enable(iommu, CONTROL_EVT_INT_EN);
2202
2203
if (iommu->ppr_log != NULL)
0 commit comments