From: Wei Wang2 <wei.wang2@amd.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] AMD IOMMU: Fix boot output on non-iommu system
Date: Fri, 25 Sep 2009 16:27:35 +0200 [thread overview]
Message-ID: <200909251627.35737.wei.wang2@amd.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 430 bytes --]
Hi,
A better boot output for non-iommu system.
Thanks,
Wei
Signed-off-by: Wei Wang <wei.wang2@amd.com>
--
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
[-- Attachment #2: fix-output.patch --]
[-- Type: text/x-diff, Size: 865 bytes --]
diff -r 3a71e070e3c5 xen/drivers/passthrough/amd/pci_amd_iommu.c
--- a/xen/drivers/passthrough/amd/pci_amd_iommu.c Fri Sep 18 14:45:40 2009 +0100
+++ b/xen/drivers/passthrough/amd/pci_amd_iommu.c Fri Sep 25 16:08:20 2009 +0200
@@ -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;
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
reply other threads:[~2009-09-25 14:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200909251627.35737.wei.wang2@amd.com \
--to=wei.wang2@amd.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.