[PATCH] net: designware: dma_sync_single_for_device buffer before passing to HW

Sascha Hauer s.hauer at pengutronix.de
Tue Jul 30 01:10:24 PDT 2024


On Wed, 24 Jul 2024 17:23:27 +0200, Ahmad Fatoum wrote:
> For cache-incoherent DMA, dma_sync_single_for_cpu with DMA_FROM_DEVICE
> invalidates the cache, so no stale lines in the cache hide what the
> hardware had written to RAM.
> 
> On the same systems, dma_sync_single_for_device with DMA_FROM_DEVICE also
> invalidates the cache, so no dirty lines from the CPU are evicted
> clobbering what the hardware had written to RAM.
> 
> [...]

Applied, thanks!

[1/1] net: designware: dma_sync_single_for_device buffer before passing to HW
      https://git.pengutronix.de/cgit/barebox/commit/?id=dcd743414b15 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list