• Christoph Hellwig's avatar
    MIPS: loongson: remove loongson_dma_supported · e799de3e
    Christoph Hellwig authored
    swiotlb_dma_supported will always return true for a mask large enough to
    cover the DMA addresses for all physical memory, which is the right
    thing to do for swiotlb based dma ops.  This function returned false
    if the mask was bigger than a firmware set dma_mask_bits that apparently
    can be either 32 or 64, and which seems completely buggys if it actually
    is not 64, as the false return negates the whole point of swiotlb.
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Patchwork: https://patchwork.linux-mips.org/patch/19533/Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
    Cc: Florian Fainelli <f.fainelli@gmail.com>
    Cc: David Daney <david.daney@cavium.com>
    Cc: Kevin Cernekee <cernekee@gmail.com>
    Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
    Cc: Tom Bogendoerfer <tsbogend@alpha.franken.de>
    Cc: Huacai Chen <chenhc@lemote.com>
    Cc: iommu@lists.linux-foundation.org
    Cc: linux-mips@linux-mips.org
    e799de3e
dma-swiotlb.c 2.7 KB