[PATCH] arm64: dma: Drop cache invalidation from arch_dma_prep_coherent()

Christoph Hellwig hch at lst.de
Wed Sep 7 07:14:41 PDT 2022


On Wed, Sep 07, 2022 at 03:10:35PM +0100, Russell King (Oracle) wrote:
> If we allocate memory, clean (and maybe invalidate) the cache, and then
> zero the memory _after_ the clean, then couldn't we be creating dirty
> cache lines. There are caches out there that are write-allocate, which
> means that by writing zeros to memory, you drag cache lines back into
> the cache.

When writting through an uncached mapping?



More information about the linux-arm-kernel mailing list