[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] have a useful line reporting when IOMMU_BUG_ON trigger



# HG changeset patch
# User vh249@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 7be2d754647db11b906edde18f9f2fe050602bc8
# Parent  5b5d1a4a754a4ba84ddfdd029bfd42ba0a94832b
have a useful line reporting when IOMMU_BUG_ON trigger

Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>

diff -r 5b5d1a4a754a -r 7be2d754647d 
linux-2.6-xen-sparse/arch/xen/i386/kernel/pci-dma.c
--- a/linux-2.6-xen-sparse/arch/xen/i386/kernel/pci-dma.c       Wed Aug 17 
14:23:16 2005
+++ b/linux-2.6-xen-sparse/arch/xen/i386/kernel/pci-dma.c       Wed Aug 17 
15:09:31 2005
@@ -24,13 +24,13 @@
        unsigned long   *bitmap;
 };
 
-static void iommu_bug(void)
-{
-       printk(KERN_ALERT "Fatal DMA error! Please use 'swiotlb=force'\n");
-       BUG();
-}
-
-#define IOMMU_BUG_ON(test) do { if (unlikely(test)) iommu_bug(); } while(0)
+#define IOMMU_BUG_ON(test) \
+do { \
+       if (unlikely(test)) { \
+               printk(KERN_ALERT "Fatal DMA error! Please use 
'swiotlb=force'\n"); \
+               BUG(); \
+       } \
+} while(0)
 
 int
 dma_map_sg(struct device *hwdev, struct scatterlist *sg, int nents,

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.