aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/swiotlb-xen.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-10-25 10:33:26 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-10-25 10:33:26 +0000
commit783d0281043b9a1111d81d11ed0610b83d8857ed (patch)
tree1d838be8915a500134122baa5b7e16894ca5015b /drivers/xen/swiotlb-xen.c
parentswiotlb-xen: use xen_dma_map/unmap_page, xen_dma_sync_single_for_cpu/device (diff)
downloadlinux-dev-783d0281043b9a1111d81d11ed0610b83d8857ed.tar.xz
linux-dev-783d0281043b9a1111d81d11ed0610b83d8857ed.zip
swiotlb: print a warning when the swiotlb is full
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Changes in v7: - use dev_warn instead of pr_warn.
Diffstat (limited to 'drivers/xen/swiotlb-xen.c')
-rw-r--r--drivers/xen/swiotlb-xen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c
index 4221cb52387d..4d50058d9630 100644
--- a/drivers/xen/swiotlb-xen.c
+++ b/drivers/xen/swiotlb-xen.c
@@ -542,6 +542,7 @@ xen_swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl,
sg->length,
dir);
if (map == SWIOTLB_MAP_ERROR) {
+ dev_warn(hwdev, "swiotlb buffer is full\n");
/* Don't panic here, we expect map_sg users
to do proper error handling. */
xen_swiotlb_unmap_sg_attrs(hwdev, sgl, i, dir,