WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] xen: temporary workaround for MSI S3

To: jeremy@xxxxxxxx
Subject: [Xen-devel] [PATCH] xen: temporary workaround for MSI S3
From: Qing He <qing.he@xxxxxxxxx>
Date: Wed, 16 Sep 2009 15:24:28 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, yunhong.jiang@xxxxxxxxx
Delivery-date: Wed, 16 Sep 2009 00:18:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.17+20080114 (2008-01-14)
(this patch is intended to provide people with a temporary
solution to S3 of MSI dom0, before a more formal solution
based on trap and emulation.)

This patch adds a temporary workaround to enable S3 resume
with MSI devices.

Signed-off-by: Yunhong Jiang <yunhong.jiang@xxxxxxxxx>
Signed-off-by: Qing He <qing.he@xxxxxxxxx>
---

diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c
index d986afb..b40c6d0 100644
--- a/drivers/pci/msi.c
+++ b/drivers/pci/msi.c
@@ -20,6 +20,8 @@
 #include <asm/errno.h>
 #include <asm/io.h>
 
+#include <asm/xen/hypervisor.h>
+
 #include "pci.h"
 #include "msi.h"
 
@@ -269,7 +271,8 @@ void write_msi_msg(unsigned int irq, struct msi_msg *msg)
 {
        struct irq_desc *desc = irq_to_desc(irq);
 
-       write_msi_msg_desc(desc, msg);
+       if (!xen_initial_domain())
+               write_msi_msg_desc(desc, msg);
 }
 
 static int msi_free_irqs(struct pci_dev* dev);

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xen: temporary workaround for MSI S3, Qing He <=