mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
Introduce an arch specific function to find out whether a particular dma mapping operation needs to bounce on the swiotlb buffer. On ARM and ARM64, if the page involved is a foreign page and the device is not coherent, we need to bounce because at unmap time we cannot execute any required cache maintenance operations (we don't know how to find the pfn from the mfn). No change of behaviour for x86. Signed-off-by: Stefano Stabellini <[email protected]> Reviewed-by: David Vrabel <[email protected]> Reviewed-by: Catalin Marinas <[email protected]> Acked-by: Ian Campbell <[email protected]> Acked-by: Konrad Rzeszutek Wilk <[email protected]>