linux/drivers/gpu/drm/virtio
Chia-I Wu 1425a4ce49 drm/virtio: remove incorrect ENOSPC check
The handling of virtqueue_add_sgs ENOSPC error is incorrect because
it can result in out-of-order virtqueue_add_sgs and break fences.
We never get ENOSPC anyway because the caller waits until there is
enough space (the other caller that did not wait was removed in
commit 32d6c2c5b5 ("drm/virtio: Rewrite virtio_gpu_queue_ctrl_buffer
using fenced version.")).  Remove the incorrect and unnecessary error
path.

This also adds a WARN_ON(ret) until we properly handle errors.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Cc: David Riley <davidriley@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20200205181955.202485-3-olvaffe@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2020-02-06 11:55:08 +01:00
..
Kconfig drm/virtio: switch from ttm to gem shmem helpers 2019-09-04 06:54:11 +02:00
Makefile drm/virtio: switch from ttm to gem shmem helpers 2019-09-04 06:54:11 +02:00
virtgpu_debugfs.c drm/virtgpu: drop use of drmP.h 2019-07-15 18:11:31 +02:00
virtgpu_display.c drm/virtio: fix vblank handling 2020-02-05 11:47:47 +01:00
virtgpu_drv.c drm/virtgpu: fix double unregistration 2019-11-12 19:13:18 +01:00
virtgpu_drv.h drm/virtio: move drm_connector_to_virtio_gpu_output to virtgpu_display 2019-12-19 07:13:46 +01:00
virtgpu_fence.c drm/virtio: move to_virtio_fence inside virtgpu_fence 2019-12-19 07:13:46 +01:00
virtgpu_gem.c drm/virtio: simplify getting fake offset 2019-12-19 07:13:45 +01:00
virtgpu_ioctl.c drm/virtio: fix byteorder handling in virtio_gpu_cmd_transfer_{from, to}_host_3d functions 2019-11-20 09:22:26 +01:00
virtgpu_kms.c drm/virtio: print a single line with device features 2019-10-22 11:34:03 +02:00
virtgpu_object.c drm/shmem: switch shmem helper to &drm_gem_object_funcs.mmap 2019-10-17 13:59:16 +02:00
virtgpu_plane.c drm/virtio: use damage info for display updates. 2019-12-16 12:39:50 +01:00
virtgpu_prime.c drm/virtio: switch from ttm to gem shmem helpers 2019-09-04 06:54:11 +02:00
virtgpu_trace_points.c drm/virtio: add trace events for commands 2019-05-06 10:52:58 +02:00
virtgpu_trace.h drm/virtio: add trace events for commands 2019-05-06 10:52:58 +02:00
virtgpu_vq.c drm/virtio: remove incorrect ENOSPC check 2020-02-06 11:55:08 +01:00