]> git.baikalelectronics.ru Git - 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)
commit659f3c06e021ef47c6397a49bf07a2c244c3da90
tree3790a9c569e93d98f8603742d85bf23ae5958dd5
parentfa50cc398226672a84bca6c9a5928338e163ecba
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