]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: implement blob resources: implement vram object
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 24 Sep 2020 00:32:07 +0000 (17:32 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 29 Sep 2020 09:23:33 +0000 (11:23 +0200)
commitc3ca06e11174bc5dd3b81572b2343a30f2d0e970
tree973396e50605edb1f16a176ce4945f06e970e7fc
parent6e5e7641dfc800977deebae547f7621facb50ebf
drm/virtio: implement blob resources: implement vram object

A virtio-gpu vram object is based on range-based allocation.
No guest shmemfs backing, so we call drm_gem_private_object_init.

This is for host memory without any guest backing (atleast initially).

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200924003214.662-12-gurchetansingh@chromium.org
Co-developed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
drivers/gpu/drm/virtio/Makefile
drivers/gpu/drm/virtio/virtgpu_debugfs.c
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_kms.c
drivers/gpu/drm/virtio/virtgpu_object.c
drivers/gpu/drm/virtio/virtgpu_vq.c
drivers/gpu/drm/virtio/virtgpu_vram.c [new file with mode: 0644]