]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: consider buffer allocation without iommu
authorInki Dae <inki.dae@samsung.com>
Wed, 26 Dec 2012 09:06:01 +0000 (18:06 +0900)
committerInki Dae <inki.dae@samsung.com>
Fri, 4 Jan 2013 06:54:32 +0000 (15:54 +0900)
commitacd1e29d9fa47bf5fe3034f2be80ef13902ddf2e
tree5947527c4737a05be794afa84c185e6451b3c256
parent7d331476b19835504b2daca1200a5aca6ccad640
drm/exynos: consider buffer allocation without iommu

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: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_buf.c