• Inki Dae's avatar
    drm/exynos: consider DMA_NONE flag to dmabuf import · b8b5c139
    Inki Dae authored
    This patch considers DMA_NONE flag for other drivers not using
    dma mapping framework with iommu such as 3d gpu driver or others.
    
    For example, there might be 3d gpu driver that has its own iommu
    hw unit and iommu table mapping mechnism. So in this case,
    the dmabuf buffer imported into this driver needs just only
    sg table to map the buffer with its own iommu table itself.
    
    So this patch makes dma_buf_map_attachment ignore dma_map_sg call
    and just return sg table containing pages if dma_data_direction
    is DMA_NONE.
    Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
    Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
    b8b5c139
exynos_drm_dmabuf.c 7.31 KB