]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/virtio: add virtio_gpu_alloc_fence()
authorRobert Foss <robert.foss@collabora.com>
Mon, 12 Nov 2018 16:51:54 +0000 (17:51 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 14 Nov 2018 13:21:01 +0000 (14:21 +0100)
commit9fdd90c0f42440b7f1e4a3f7262d222eee4b4cdf
tree3790a9c569e93d98f8603742d85bf23ae5958dd5
parent2ae7f165c0b022a8ed1732f8ab2c11b2c173146e
drm/virtio: add virtio_gpu_alloc_fence()

Refactor fence creation, add fences to relevant GPU
operations and add cursor helper functions.

This removes the potential for allocation failures from the
cmd_submit and atomic_commit paths.
Now a fence will be allocated first and only after that
will we proceed with the rest of the execution.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20181112165157.32765-2-robert.foss@collabora.com
Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_fence.c
drivers/gpu/drm/virtio/virtgpu_ioctl.c
drivers/gpu/drm/virtio/virtgpu_plane.c
drivers/gpu/drm/virtio/virtgpu_vq.c