From: Inki Dae Date: Mon, 23 Apr 2012 10:47:18 +0000 (+0900) Subject: drm/exynos: added missed vm area region mapping type. X-Git-Tag: v3.4-rc5~14^2~3^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=818c4ea7c589c521912430ea54e0c0a0671b2c6d;p=karo-tx-linux.git 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 Signed-off-by: Kyungmin Park --- 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, if (!buffer->pages) return -EINVAL; + vma->vm_flags |= VM_MIXEDMAP; + do { ret = vm_insert_page(vma, uaddr, buffer->pages[i++]); if (ret) {