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)
commit16845c5d540929d2f4dc845f11fbbb238e69170a
tree973396e50605edb1f16a176ce4945f06e970e7fc
parent5c824604e5601a7150e434931243ee9e820fb473
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]