Skip to contentSkip to conversation

AMD IOMMU: Fix boot output on non-iommu system

PATCH New Wei Wang2 1 participant 1 message Sep 25, 2009

lore
Share & tools
lore

Wei Wang2

author
#0 lore raw

PATCH 1/1 AMD IOMMU: Fix boot output on non-iommu system

Hi,
A better boot output for non-iommu system.
Thanks,
Wei

Signature · 11 lines
AMD GmbH, Germany
Operating System Research Center

Legal Information:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34
85609 Dornach b. München

Geschäftsführer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis München
Registergericht München, HRB Nr. 43632
xen/drivers/passthrough/amd/pci_amd_iommu.c +4 -10
diff -r 3a71e070e3c5 xen/drivers/passthrough/amd/pci_amd_iommu.c
@@ -161,21 +161,15 @@ int amd_iov_detect(void)
 {
     INIT_LIST_HEAD(&amd_iommu_head);
 
-    if ( amd_iommu_detect_acpi() != 0 )
-    {
-        AMD_IOMMU_DEBUG("Error detection\n");
-        return -ENODEV;
-    }
-
-    if ( !iommu_found() )
-    {
-        printk("AMD_IOV: IOMMU not found!\n");
+    if ( (amd_iommu_detect_acpi() !=0) || (iommu_found() == 0) )
+    {
+        printk("AMD-Vi: IOMMU not found!\n");
         return -ENODEV;
     }
 
     if ( amd_iommu_init() != 0 )
     {
-        AMD_IOMMU_DEBUG("Error initialization\n");
+        printk("Error initialization\n");
         return -ENODEV;
     }
     return 0;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel