• Inki Dae's avatar
    drm/exynos: add dmabuf attach/detach callbacks. · a7b362fb
    Inki Dae authored
    With this patch, When dma_buf_unmap_attachment is called,
    the pages of sgt aren't unmapped from iommu table.
    Instead, when dma_buf_detach is called, that would be done.
    
    And also removes exynos_get_sgt function used to get clone sgt
    and uses attachment's sgt instead. This patch would resolve
    performance deterioration issue when v4l2-based driver is using
    the buffer imported from gem.
    
    This change is derived from videobuf2-dma-contig.c
    Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
    Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
    a7b362fb
exynos_drm_dmabuf.c 8.02 KB