AMD, iommu: Fix features reporting
PATCH 1/1 AMD, iommu: Fix features reporting
From: Borislav Petkov <[email protected]>
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 Borislav Petkov <[email protected]>
--- drivers/iommu/amd_iommu_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/amd_iommu_init.c +1 -1
@@ -1115,8 +1115,8 @@ static void print_iommu_info(void)if (iommu_feature (iommu, (1ULL << i)))pr_cont (" %s" , feat_str[i]); } - }pr_cont ("\n" ); + } } }
Signature · 1 line
1.7.11.rc1
Joerg Roedel
AppliedQuoted 5 lines · Borislav Petkov
From: Borislav Petkov <[email protected]>
When the AMD IOMMU doesn't have extended features, an empty line gets issued in dmesg like so:
Quoted 8 lines
[ 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 enabledFix it.
Signed-off-by Borislav Petkov <[email protected]>
Applied, thanks :)
Signature · 5 lines
AMD Operating System Research Center Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach General Managers: Alberto Bozzo Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632