mbox series

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

Message ID 20220927180727.5323-1-dongwon.kim@intel.com (mailing list archive)
Headers show
Series drm/virtio:virtio-gpu driver freeze-and-restore implementation | expand

Message

Kim, Dongwon Sept. 27, 2022, 6:07 p.m. UTC
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(-)