Skip to content

RFC drm/virtio:virtio-gpu driver freeze-and-restore implementation

Dongwon Kim dri-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/virtio: freeze and restore hooks to support suspend and resumedrivers/gpu/drm/virtio/virtgpu_drv.c drivers/gpu/drm/virtio/virtgpu_drv.h drivers/gpu/drm/virtio/virtgpu_kms.c+69 -70 replies
2/2drm/virtio: restore virtio_gpu_objects upon suspend and resumedrivers/gpu/drm/virtio/virtgpu_drv.c drivers/gpu/drm/virtio/virtgpu_drv.h drivers/gpu/drm/virtio/virtgpu_kms.c +1 more+110 -290 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] drm/virtio:virtio-gpu driver freeze-and-restore implementation

This series is for adding virtio-gpu driver the support for the suspend and resume (or freeze and restore).

First patch adds virtio-dev hooks that adds .freeze and .restore hooks that basically flush and remove virtqueue before going into suspension then reinitialize them upon wake-up event.

Second patch is the implementation of virtio-gpu resource restoration machanism that is needed for the synchronization of resources between the host and the guest when suspend(and hibernation) and resume happens.

Dongwon Kim (2):
drm/virtio: freeze and restore hooks to support suspend and resume drm/virtio: restore virtio_gpu_objects upon suspend and resume

 drivers/gpu/drm/virtio/virtgpu_drv.c    |  59 +++++++++++-
 drivers/gpu/drm/virtio/virtgpu_drv.h    |  11 +++
 drivers/gpu/drm/virtio/virtgpu_kms.c    |  23 +++--
 drivers/gpu/drm/virtio/virtgpu_object.c | 122 ++++++++++++++++++------
 4 files changed, 179 insertions(+), 36 deletions(-)
Signature · 1 line
2.20.1