Skip to content

Commit 01b297a

Browse files
Maxim Levitskyjoergroedel
authored andcommitted
iommu/amd: X2apic mode: re-enable after resume
Otherwise it is guaranteed to not work after the resume... Fixes: 6692981 ("iommu/amd: Add support for X2APIC IOMMU interrupts") Signed-off-by: Maxim Levitsky <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent a8d4a37 commit 01b297a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/iommu/amd/init.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2172,7 +2172,6 @@ static int iommu_setup_intcapxt(struct amd_iommu *iommu)
21722172
return ret;
21732173
}
21742174

2175-
iommu_feature_enable(iommu, CONTROL_INTCAPXT_EN);
21762175
return 0;
21772176
}
21782177

@@ -2195,6 +2194,10 @@ static int iommu_init_irq(struct amd_iommu *iommu)
21952194

21962195
iommu->int_enabled = true;
21972196
enable_faults:
2197+
2198+
if (amd_iommu_xt_mode == IRQ_REMAP_X2APIC_MODE)
2199+
iommu_feature_enable(iommu, CONTROL_INTCAPXT_EN);
2200+
21982201
iommu_feature_enable(iommu, CONTROL_EVT_INT_EN);
21992202

22002203
if (iommu->ppr_log != NULL)

0 commit comments

Comments
 (0)