Skip to content

drm/virtio: fence handling in case of multi scanouts

Dongwon Kim dri-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesIn review
  2. v13 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/virtio: .release ops for virtgpu fence releasedrivers/gpu/drm/virtio/virtgpu_fence.c+8 -01 reply
2/2drm/virtio: fence created per cursor/plane updatedrivers/gpu/drm/virtio/virtgpu_drv.h drivers/gpu/drm/virtio/virtgpu_plane.c+39 -654 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchVivek Kasireddy
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] drm/virtio: fence handling in case of multi scanouts

Current primary plane update flow when blob is enabled (for zero copy display sharing) shows fence synchronization problems when multi planes are referencing a same single large FB (i.e. multi displays in extended mode). This is because there is only one fence bound to the FB and this single fence is re-used asynchronously when flushing all associated planes.

The way to prevent this is to assign the fence for each plane so that flushing one plane won't be affecting or affected by other plane's flush operation.

The 1st patch "drm/virtio: .release ops for virtgpu fence release" which adds device specific release ops is for making the virtio_gpu fence freed upon the last dma_fence_put call.

The 2nd patch "drm/virtio: fence created per cursor/plane update" contains the main implementation of per-plane fence.

Dongwon Kim (2):
drm/virtio: .release ops for virtgpu fence release drm/virtio: fence created per cursor/plane update

 drivers/gpu/drm/virtio/virtgpu_drv.h   |   1 -
 drivers/gpu/drm/virtio/virtgpu_fence.c |   8 ++
 drivers/gpu/drm/virtio/virtgpu_plane.c | 103 ++++++++++---------------
 3 files changed, 47 insertions(+), 65 deletions(-)
Signature · 1 line
2.20.1