Skip to content

Commit 05e13bb

Browse files
jdelvareChristoph Hellwig
authored andcommitted
swiotlb: silent unwanted warning "buffer is full"
If DMA_ATTR_NO_WARN is passed to swiotlb_alloc_buffer(), it should be passed further down to swiotlb_tbl_map_single(). Otherwise we escape half of the warnings but still log the other half. This is one of the multiple causes of spurious warnings reported at: https://bugs.freedesktop.org/show_bug.cgi?id=104082 Signed-off-by: Jean Delvare <[email protected]> Fixes: 0176adb ("swiotlb: refactor coherent buffer allocation") Cc: Christoph Hellwig <[email protected]> Cc: Christian König <[email protected]> Cc: Michel Dänzer <[email protected]> Cc: Takashi Iwai <[email protected]> Cc: [email protected] # v4.16
1 parent 75bc37f commit 05e13bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/swiotlb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ swiotlb_alloc_buffer(struct device *dev, size_t size, dma_addr_t *dma_handle,
714714

715715
phys_addr = swiotlb_tbl_map_single(dev,
716716
__phys_to_dma(dev, io_tlb_start),
717-
0, size, DMA_FROM_DEVICE, 0);
717+
0, size, DMA_FROM_DEVICE, attrs);
718718
if (phys_addr == SWIOTLB_MAP_ERROR)
719719
goto out_warn;
720720

0 commit comments

Comments
 (0)