Skip to content

Commit 6be7e07

Browse files
committed
drm/virtio: fix mmap page attributes
virtio-gpu uses cached mappings, set drm_gem_shmem_object.map_cached accordingly. Cc: [email protected] Fixes: c66df70 ("drm/virtio: switch from ttm to gem shmem helpers") Reported-by: Gurchetan Singh <[email protected]> Reported-by: Guillaume Gardet <[email protected]> Signed-off-by: Gerd Hoffmann <[email protected]> Reviewed-by: Gurchetan Singh <[email protected]> Tested-by: Guillaume Gardet <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 1cad629 commit 6be7e07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/virtio/virtgpu_object.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ struct drm_gem_object *virtio_gpu_create_object(struct drm_device *dev,
9999
return NULL;
100100

101101
bo->base.base.funcs = &virtio_gpu_gem_funcs;
102+
bo->base.map_cached = true;
102103
return &bo->base.base;
103104
}
104105

0 commit comments

Comments
 (0)