• Christoph Hellwig's avatar
    dma-direct: provide mmap and get_sgtable method overrides · 34dc0ea6
    Christoph Hellwig authored
    For dma-direct we know that the DMA address is an encoding of the
    physical address that we can trivially decode.  Use that fact to
    provide implementations that do not need the arch_dma_coherent_to_pfn
    architecture hook.  Note that we still can only support mmap of
    non-coherent memory only if the architecture provides a way to set an
    uncached bit in the page tables.  This must be true for architectures
    that use the generic remap helpers, but other architectures can also
    manually select it.
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Reviewed-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
    34dc0ea6
Kconfig 12.2 KB