diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2013-10-25 12:33:26 +0200 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2013-10-25 12:33:26 +0200 |
commit | 783d0281043b9a1111d81d11ed0610b83d8857ed (patch) | |
tree | 1d838be8915a500134122baa5b7e16894ca5015b /lib/swiotlb.c | |
parent | swiotlb-xen: use xen_dma_map/unmap_page, xen_dma_sync_single_for_cpu/device (diff) | |
download | linux-783d0281043b9a1111d81d11ed0610b83d8857ed.tar.xz linux-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 'lib/swiotlb.c')
-rw-r--r-- | lib/swiotlb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 4e8686c7e5a4..cdc051eaf667 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -502,6 +502,7 @@ phys_addr_t swiotlb_tbl_map_single(struct device *hwdev, not_found: spin_unlock_irqrestore(&io_tlb_lock, flags); + dev_warn(hwdev, "swiotlb buffer is full\n"); return SWIOTLB_MAP_ERROR; found: spin_unlock_irqrestore(&io_tlb_lock, flags); |