Skip to contentSkip to conversation

passthrough/amd: Drop "IOMMU not found" message

PATCH In review Andrew Cooper 3 participants 3 messages Aug 5, 2019 – Aug 6, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 passthrough/amd: Drop "IOMMU not found" message

Since c/s 9fa94e10585 "x86/ACPI: also parse AMD IOMMU tables early", this function is unconditionally called in all cases where a DMAR ACPI table doesn't exist.

As a consequnce, "AMD-Vi: IOMMU not found!" is printed in all cases where an IOMMU isn't present, even on non-AMD systems. Drop the message - it isn't terribly interesting anyway, and is now misleading is a number of common cases.

---
CC: Jan Beulich <[email protected]>
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Boris Ostrovsky <[email protected]>
CC: Suravee Suthikulpanit <[email protected]>
CC: Brian Woods <[email protected]>

---
 xen/drivers/passthrough/amd/pci_amd_iommu.c | 1 -
 1 file changed, 1 deletion(-)
xen/drivers/passthrough/amd/pci_amd_iommu.c +0 -1
index b3e1933b53..3bcfcc8404 100644
@@ -155,7 +155,6 @@ int __init acpi_ivrs_init(void)
 
     if ( (amd_iommu_detect_acpi() !=0) || (iommu_found() == 0) )
     {
-        printk("AMD-Vi: IOMMU not found!\n");
         iommu_intremap = 0;
         return -ENODEV;
     }
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Andrew Cooper

Since c/s 9fa94e10585 "x86/ACPI: also parse AMD IOMMU tables early", this function is unconditionally called in all cases where a DMAR ACPI table doesn't exist.

As a consequnce, "AMD-Vi: IOMMU not found!" is printed in all cases where an IOMMU isn't present, even on non-AMD systems.

Oh, I didn't even notice this yet.

Quoted 3 lines

Drop the message - it isn't
terribly interesting anyway, and is now misleading is a number of common cases.

Plus there's no VT-d side equivalent message.

Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Acked-by on v1 1/1
#2 lore raw
In reply to Andrew Cooper
Quoted 10 lines · Andy Cooper

Since c/s 9fa94e10585 "x86/ACPI: also parse AMD IOMMU tables early", this function is unconditionally called in all cases where a DMAR ACPI table doesn't exist.

As a consequnce, "AMD-Vi: IOMMU not found!" is printed in all cases where an IOMMU isn't present, even on non-AMD systems. Drop the message - it isn't terribly interesting anyway, and is now misleading is a number of common cases.

Quoted 26 lines

---
CC: Jan Beulich <[email protected]>
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Boris Ostrovsky <[email protected]>
CC: Suravee Suthikulpanit <[email protected]>
CC: Brian Woods <[email protected]>

---
 xen/drivers/passthrough/amd/pci_amd_iommu.c | 1 -
 1 file changed, 1 deletion(-)
xen/drivers/passthrough/amd/pci_amd_iommu.c +0 -1
index b3e1933b53..3bcfcc8404 100644
@@ -155,7 +155,6 @@ int __init acpi_ivrs_init(void)
 
     if ( (amd_iommu_detect_acpi() !=0) || (iommu_found() == 0) )
     {
-        printk("AMD-Vi: IOMMU not found!\n");
         iommu_intremap = 0;
         return -ENODEV;
     }
Signature · 1 line
2.11.0
Signature · 6 lines
Brian Woods

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel