Skip to content

drm/virtio: fixes and cleanups for vbuf queuing

Chia-I Wu dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11drm/virtio: fix a wait_event conditiondrivers/gpu/drm/virtio/virtgpu_vq.c+2 -10 replies
2/11drm/virtio: remove incorrect ENOSPC checkdrivers/gpu/drm/virtio/virtgpu_vq.c+6 -130 replies
3/11drm/virtio: add virtio_gpu_vbuf_ctrl_hdrdrivers/gpu/drm/virtio/virtgpu_vq.c+15 -50 replies
4/11drm/virtio: no need to pass virtio_gpu_ctrl_hdrdrivers/gpu/drm/virtio/virtgpu_vq.c+12 -120 replies
5/11drm/virtio: unlock object array on errorsdrivers/gpu/drm/virtio/virtgpu_vq.c+4 -10 replies
6/11drm/virtio: set up virtqueue sgs before lockingdrivers/gpu/drm/virtio/virtgpu_vq.c+35 -310 replies
7/11drm/virtio: move locking into virtio_gpu_queue_ctrl_sgsdrivers/gpu/drm/virtio/virtgpu_vq.c+35 -350 replies
8/11drm/virtio: move the check for vqs_ready earlierdrivers/gpu/drm/virtio/virtgpu_vq.c+8 -50 replies
9/11drm/virtio: avoid an infinite loopdrivers/gpu/drm/virtio/virtgpu_drv.h drivers/gpu/drm/virtio/virtgpu_ioctl.c drivers/gpu/drm/virtio/virtgpu_kms.c +1 more+7 -12 replies
10/11drm/virtio: move virtqueue_notify into virtio_gpu_queue_ctrl_sgsdrivers/gpu/drm/virtio/virtgpu_vq.c+10 -120 replies
11/11drm/virtio: rework virtio_gpu_enable_notifydrivers/gpu/drm/virtio/virtgpu_drv.h drivers/gpu/drm/virtio/virtgpu_vq.c+17 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/11] drm/virtio: fixes and cleanups for vbuf queuing

This series consists of fixes and cleanups for virtio_gpu_queue_fenced_ctrl_buffer, except for the last patch. The fixes are for corner cases that were overlooked. The cleanups make the last patch easier, but they should be good in themselves as well.

The last patch changes the disable_notify mechanism to call virtqueue_kick_prepare only once in virtio_gpu_enable_notify. It should be more efficient than doing that after each command is queued.

There is a follow-up patch that replaces the global disable_notify state by command-level bools to disable notify for individual commands, so that one process cannot affect another process. I can include it in v2 if you want to review it together with this series.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel