drm/shmem: drop VM_IO
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 16 Oct 2019 11:51:56 +0000 (13:51 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 17 Oct 2019 11:59:16 +0000 (13:59 +0200)
VM_IO is wrong here, shmem uses normal ram not io memory.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20191016115203.20095-5-kraxel@redhat.com
drivers/gpu/drm/drm_gem_shmem_helper.c

index 6efedab15016296cbb054b3d05bcf672f3a27b61..3bc69b1ffa7dc5554197b99e4b84c99844cb1673 100644 (file)
@@ -536,7 +536,7 @@ int drm_gem_shmem_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma)
                return ret;
        }
 
-       vma->vm_flags |= VM_IO | VM_MIXEDMAP | VM_DONTEXPAND;
+       vma->vm_flags |= VM_MIXEDMAP | VM_DONTEXPAND;
        vma->vm_page_prot = pgprot_writecombine(vm_get_page_prot(vma->vm_flags));
        vma->vm_page_prot = pgprot_decrypted(vma->vm_page_prot);
        vma->vm_ops = &drm_gem_shmem_vm_ops;