]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: use DMA_ATTR_NO_KERNEL_MAPPING attribute
authorInki Dae <inki.dae@samsung.com>
Fri, 7 Dec 2012 08:51:27 +0000 (17:51 +0900)
committerInki Dae <daeinki@gmail.com>
Thu, 13 Dec 2012 14:05:45 +0000 (06:05 -0800)
commita04d1dc8abe157790e9c593bff16956ba6573e6e
tree3c06797a1a8899d5687064aff27030e2d1b2f80b
parentf1bfff01a0a87dcb3543ff8a6a13eab327623465
drm/exynos: use DMA_ATTR_NO_KERNEL_MAPPING attribute

Changelog v3:
just code cleanup.

Changelog v2:
fix argument to dma_mmap_attr function.
- use pages instead of kvaddr because kvaddr is 0 with
  DMA_ATTR_NO_KERNEL_MAPPING.

Changelog v1:
When gem allocation is requested, kernel space mapping isn't needed.
But if need, such as console framebuffer, the physical pages would be
mapped with kernel space though vmap function.

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
drivers/gpu/drm/exynos/exynos_drm_fb.c
drivers/gpu/drm/exynos/exynos_drm_fbdev.c
drivers/gpu/drm/exynos/exynos_drm_gem.c
drivers/gpu/drm/exynos/exynos_drm_gem.h