]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: batch resource creation
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 14 Feb 2020 12:55:33 +0000 (13:55 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 17 Feb 2020 13:50:49 +0000 (14:50 +0100)
commitf4989b1206099c88af37c9fbe50e2a476626a3e2
tree5585cc5f4044f33023439ead538f2d76d19bd071
parent1d7c1c7330b737830cf7acd0e8a3048a7f55d3a2
drm/virtio: batch resource creation

Move virtio_gpu_notify() to higher-level functions for
virtio_gpu_cmd_create_resource(), virtio_gpu_cmd_resource_create_3d()
and virtio_gpu_cmd_resource_attach_backing().

virtio_gpu_object_create() will batch commands and notify only once when
creating a resource.

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