]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: move virtio_gpu_mem_entry initialization to new function
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 7 Feb 2020 07:46:38 +0000 (08:46 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 10 Feb 2020 11:54:33 +0000 (12:54 +0100)
commite09df06efbe1e6d81f2ceed8506f20ad30819f52
tree6c7eeb0793a3ebfcd217211c2cd61c96e1f21758
parentc0b2dcb4e54c5d42e16f29a27d4c0480344e693a
drm/virtio: move virtio_gpu_mem_entry initialization to new function

Introduce new virtio_gpu_object_shmem_init() helper function which will
create the virtio_gpu_mem_entry array, containing the backing storage
information for the host.  For the most path this just moves code from
virtio_gpu_object_attach().

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200207074638.26386-5-kraxel@redhat.com
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_object.c
drivers/gpu/drm/virtio/virtgpu_vq.c