• Catalin Marinas's avatar
    arm64: Increase ARCH_DMA_MINALIGN to 128 · ebc7e21e
    Catalin Marinas authored
    This patch increases the ARCH_DMA_MINALIGN to 128 so that it covers the
    currently known Cache Writeback Granule (CTR_EL0.CWG) on arm64 and moves
    the fallback in cache_line_size() from L1_CACHE_BYTES to this constant.
    In addition, it warns (and taints) if the CWG is larger than
    ARCH_DMA_MINALIGN as this is not safe with non-coherent DMA.
    
    Cc: Will Deacon <will.deacon@arm.com>
    Cc: Robin Murphy <robin.murphy@arm.com>
    Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    ebc7e21e
cache.h 2.18 KB