Skip to content

Commit b74aa02

Browse files
ssuthiku-amdjoergroedel
authored andcommitted
iommu/amd: Fix legacy interrupt remapping for x2APIC-enabled system
Currently, system fails to boot because the legacy interrupt remapping mode does not enable 128-bit IRTE (GA), which is required for x2APIC support. Fix by using AMD_IOMMU_GUEST_IR_LEGACY_GA mode when booting with kernel option amd_iommu_intr=legacy instead. The initialization logic will check GASup and automatically fallback to using AMD_IOMMU_GUEST_IR_LEGACY if GA mode is not supported. Fixes: 3928aa3 ("iommu/amd: Detect and enable guest vAPIC support") Signed-off-by: Suravee Suthikulpanit <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 9dd124b commit b74aa02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/amd_iommu_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2936,7 +2936,7 @@ static int __init parse_amd_iommu_intr(char *str)
29362936
{
29372937
for (; *str; ++str) {
29382938
if (strncmp(str, "legacy", 6) == 0) {
2939-
amd_iommu_guest_ir = AMD_IOMMU_GUEST_IR_LEGACY;
2939+
amd_iommu_guest_ir = AMD_IOMMU_GUEST_IR_LEGACY_GA;
29402940
break;
29412941
}
29422942
if (strncmp(str, "vapic", 5) == 0) {

0 commit comments

Comments
 (0)