aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/exynos
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2012-04-23 06:47:18 -0400
committerInki Dae <inki.dae@samsung.com>2012-04-23 07:31:54 -0400
commit818c4ea7c589c521912430ea54e0c0a0671b2c6d (patch)
treee6a34bd6c6d6ad8f8f754cae7afc537ca351b86d /drivers/gpu/drm/exynos
parentf6ead8dea518d0d02c576432eba4fa145e64b02a (diff)
drm/exynos: added missed vm area region mapping type.
with this patch, if the memory region is physically non-continuous then VM_MIXEDMAP is set to vm->vm_flags otherwise VM_PFNMAP. we had missed this flag setting. Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_gem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c
index f09d292a2e37..01139c813953 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_gem.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c
@@ -514,6 +514,8 @@ static int exynos_drm_gem_mmap_buffer(struct file *filp,
514 if (!buffer->pages) 514 if (!buffer->pages)
515 return -EINVAL; 515 return -EINVAL;
516 516
517 vma->vm_flags |= VM_MIXEDMAP;
518
517 do { 519 do {
518 ret = vm_insert_page(vma, uaddr, buffer->pages[i++]); 520 ret = vm_insert_page(vma, uaddr, buffer->pages[i++]);
519 if (ret) { 521 if (ret) {