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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

-- 
2.20.1




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux