]> Pileus Git - ~andy/linux/blobdiff - lib/swiotlb.c
swiotlb: print a warning when the swiotlb is full
[~andy/linux] / lib / swiotlb.c
index 4e8686c7e5a4085753121337755bf522ccfe6300..cdc051eaf66754c4f900439730b9b1faa24431d9 100644 (file)
@@ -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);