have a useful line reporting when IOMMU_BUG_ON trigger

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
This commit is contained in:
vh249@arcadians.cl.cam.ac.uk committed 2005-08-17 15:09:31 +00:00
1 parent 9a0d977633
commit 206e4c4033
1 file changed
+7 -7
@@ -24,13 +24,13 @@ struct dma_coherent_mem {
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,
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.