]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: batch display update commands.
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 12 Dec 2019 12:53:45 +0000 (13:53 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 16 Dec 2019 11:39:50 +0000 (12:39 +0100)
commitb627d49e9885eb777fa69d69698a23b030ef049c
tree05ef7538a0397e8bb2e0cc3117b02fa985ab60b8
parentb8138668f28c4970cb418d72cb1a098aec47695c
drm/virtio: batch display update commands.

When the driver submits multiple commands in a row it makes sense to
notify the host only after submitting the last one, so the host can
process them all at once, with a single vmexit.

Add functions to enable/disable notifications to allow that.  Use the
new functions for primary plane updates.

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