Skip to content

Commit

Permalink
drm/exynos: added missed vm area region mapping type.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Inki Dae committed Apr 23, 2012
1 parent f6ead8d commit 818c4ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/exynos/exynos_drm_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 818c4ea

Please sign in to comment.