[PATCH 0/2] arm64: mm: Fix cache maintenance for non-coherent streaming DMA

Will Deacon will at kernel.org
Fri Jun 10 08:12:26 PDT 2022


Hi all,

This pair of patches follows-up on the discussion we had on linux-arch
earlier this week and addresses the reported problem for arm64 only.

Other architectures should be able to do something similar if they wish,
but this all came out of discussion and code inspection rather than a
concrete failure.

Cheers,

Will

Cc: Ard Biesheuvel <ardb at kernel.org>
Cc: Christoph Hellwig <hch at lst.de>
Cc: Catalin Marinas <catalin.marinas at arm.com>
Cc: Robin Murphy <robin.murphy at arm.com>
Cc: Russell King <linux at armlinux.org.uk>

--->8

Will Deacon (2):
  arm64: mm: Don't invalidate FROM_DEVICE buffers at start of DMA
    transfer
  arm64: mm: Remove assembly DMA cache maintenance wrappers

 arch/arm64/include/asm/cacheflush.h |  7 -----
 arch/arm64/mm/cache.S               | 43 -----------------------------
 arch/arm64/mm/dma-mapping.c         | 19 +++++++++----
 3 files changed, 14 insertions(+), 55 deletions(-)

-- 
2.36.1.476.g0c4daa206d-goog




More information about the linux-arm-kernel mailing list