Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 500c25ed authored by Borislav Petkov's avatar Borislav Petkov Committed by Joerg Roedel
Browse files

iommu/amd: Fix features reporting



When the AMD IOMMU doesn't have extended features, an empty line
gets issued in dmesg like so:

[    3.061417] AMD-Vi: Found IOMMU at 0000:00:00.2 cap 0x40
[    3.066757] 							<---
[    3.068294] pci 0000:00:00.2: irq 72 for MSI/MSI-X
[    3.081213] AMD-Vi: Lazy IO/TLB flushing enabled

Fix it.

Signed-off-by: default avatarBorislav Petkov <borislav.petkov@amd.com>
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent df805abb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1114,10 +1114,10 @@ static void print_iommu_info(void)
				if (iommu_feature(iommu, (1ULL << i)))
					pr_cont(" %s", feat_str[i]);
			}
		}
		pr_cont("\n");
		}
	}
}

static int __init amd_iommu_init_pci(void)
{