Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'dma-mapping-5.18-2' of git://git.infradead.org/users/hch/dma-mapping

Pull dma-mapping fix from Christoph Hellwig:

- avoid a double memory copy for swiotlb (Chao Gao)

* tag 'dma-mapping-5.18-2' of git://git.infradead.org/users/hch/dma-mapping:
dma-direct: avoid redundant memory sync for swiotlb

+2 -1
+2 -1
kernel/dma/direct.h
··· 114 114 dma_direct_sync_single_for_cpu(dev, addr, size, dir); 115 115 116 116 if (unlikely(is_swiotlb_buffer(dev, phys))) 117 - swiotlb_tbl_unmap_single(dev, phys, size, dir, attrs); 117 + swiotlb_tbl_unmap_single(dev, phys, size, dir, 118 + attrs | DMA_ATTR_SKIP_CPU_SYNC); 118 119 } 119 120 #endif /* _KERNEL_DMA_DIRECT_H */