drm/exynos: added missed vm area region mapping type.
authorInki Dae <inki.dae@samsung.com>
Mon, 23 Apr 2012 10:47:18 +0000 (19:47 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 23 Apr 2012 11:31:54 +0000 (20:31 +0900)
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>
drivers/gpu/drm/exynos/exynos_drm_gem.c

index f09d292a2e37136f5923b600d88fa461d5876924..01139c8139532c5ac3b4f74e000e3632bf9cc299 100644 (file)
@@ -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) {