|
@@ -510,7 +510,8 @@ phys_addr_t swiotlb_tbl_map_single(struct device *hwdev,
|
|
|
|
|
|
not_found:
|
|
not_found:
|
|
spin_unlock_irqrestore(&io_tlb_lock, flags);
|
|
spin_unlock_irqrestore(&io_tlb_lock, flags);
|
|
- dev_warn(hwdev, "swiotlb buffer is full\n");
|
|
|
|
|
|
+ if (printk_ratelimit())
|
|
|
|
+ dev_warn(hwdev, "swiotlb buffer is full (sz: %zd bytes)\n", size);
|
|
return SWIOTLB_MAP_ERROR;
|
|
return SWIOTLB_MAP_ERROR;
|
|
found:
|
|
found:
|
|
spin_unlock_irqrestore(&io_tlb_lock, flags);
|
|
spin_unlock_irqrestore(&io_tlb_lock, flags);
|