xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] AMD IOMMU: Unmapped interrupt should result io page fault
@ 2011-04-08 12:13 Wei Wang2
  0 siblings, 0 replies; only message in thread
From: Wei Wang2 @ 2011-04-08 12:13 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

This could help us to debug interrupt related issues.
Thanks,
Wei
--
Advanced Micro Devices GmbH
Sitz: Dornach, Gemeinde Aschheim, 
Landkreis München Registergericht München, 
HRB Nr. 43632
WEEE-Reg-Nr: DE 12919551
Geschäftsführer:
Alberto Bozzo, Andrew Bowd

[-- Attachment #2: unmapped_intr.patch --]
[-- Type: text/x-diff, Size: 1185 bytes --]

# HG changeset patch
# User Wei Wang <wei.wang2@amd.com>
# Node ID 2bd2f621160b93a9f8cb6e21fd1a984d7ae2f51d
# Parent  ab2944070ca99790546b34fa04a80103d3e7464f
Unmapped interrupt should generate IO page faults. This helps us to debug interrupt issues.

Signed-off-by Wei Wang <wei.wang2@amd.com>

diff -r ab2944070ca9 -r 2bd2f621160b xen/drivers/passthrough/amd/iommu_map.c
--- a/xen/drivers/passthrough/amd/iommu_map.c	Fri Apr 08 12:35:48 2011 +0200
+++ b/xen/drivers/passthrough/amd/iommu_map.c	Fri Apr 08 13:54:28 2011 +0200
@@ -327,8 +327,9 @@ void amd_iommu_set_intremap_table(u32 *d
     set_field_in_reg_u32(0xB, entry,
                          IOMMU_DEV_TABLE_INT_TABLE_LENGTH_MASK,
                          IOMMU_DEV_TABLE_INT_TABLE_LENGTH_SHIFT, &entry);
-    /* ignore unmapped interrupts */
-    set_field_in_reg_u32(IOMMU_CONTROL_ENABLED, entry,
+
+    /* unmapped interrupt results io page faults*/
+    set_field_in_reg_u32(IOMMU_CONTROL_DISABLED, entry,
                          IOMMU_DEV_TABLE_INT_TABLE_IGN_UNMAPPED_MASK,
                          IOMMU_DEV_TABLE_INT_TABLE_IGN_UNMAPPED_SHIFT, &entry);
     set_field_in_reg_u32(int_valid ? IOMMU_CONTROL_ENABLED :

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-08 12:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-08 12:13 [PATCH] AMD IOMMU: Unmapped interrupt should result io page fault Wei Wang2

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).