[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200310123650.814203614@linuxfoundation.org>
Date: Tue, 10 Mar 2020 13:39:07 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org,
Gurchetan Singh <gurchetansingh@...omium.org>,
Guillaume Gardet <Guillaume.Gardet@....com>,
Gerd Hoffmann <kraxel@...hat.com>
Subject: [PATCH 5.5 110/189] drm/virtio: fix mmap page attributes
From: Gerd Hoffmann <kraxel@...hat.com>
commit 6be7e07335486f5731cab748d80c68f20896581f upstream.
virtio-gpu uses cached mappings, set
drm_gem_shmem_object.map_cached accordingly.
Cc: stable@...r.kernel.org
Fixes: c66df701e783 ("drm/virtio: switch from ttm to gem shmem helpers")
Reported-by: Gurchetan Singh <gurchetansingh@...omium.org>
Reported-by: Guillaume Gardet <Guillaume.Gardet@....com>
Signed-off-by: Gerd Hoffmann <kraxel@...hat.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@...omium.org>
Tested-by: Guillaume Gardet <Guillaume.Gardet@....com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200226154752.24328-3-kraxel@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
drivers/gpu/drm/virtio/virtgpu_object.c | 1 +
1 file changed, 1 insertion(+)
--- a/drivers/gpu/drm/virtio/virtgpu_object.c
+++ b/drivers/gpu/drm/virtio/virtgpu_object.c
@@ -99,6 +99,7 @@ struct drm_gem_object *virtio_gpu_create
return NULL;
bo->base.base.funcs = &virtio_gpu_gem_funcs;
+ bo->base.map_cached = true;
return &bo->base.base;
}
Powered by blists - more mailing lists