• Inki Dae's avatar
    drm/exynos: consider buffer allocation without iommu · 694be458
    Inki Dae authored
    This patch fixes the issue that when buffer allocation is requested
    without iommu, the allocation is failed.
    
    Without iommu, dma_alloc_attrs function allocates some memory region
    and returns cpu address so this patch makes the cpu address to be set
    to buf->kvaddr correctly.
    
    Changelog v2:
    - fix buffer free
      . Without iommu, dma_free_attrs function requires kernel space address
        as argument. So it changes the argument, buf->pages to buf->kvaddr.
    Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
    Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
    694be458
exynos_drm_buf.c 4.49 KB