[LINUX KERNEL PATCH v2 0/1] add S3 support for virtgpu

2023-06-30 Thread Jiqian Chen
ing is supported or not. V2 of Qemu patch https://lore.kernel.org/qemu-devel/20230630070016.841459-1-jiqian.c...@amd.com/T/#t Best regards, Jiqian Chen. v1: link: https://lore.kernel.org/lkml/20230608063857.1677973-1-jiqian.c...@amd.com/ Hi all, I am working to implement virtgpu S3 function on

[LINUX KERNEL PATCH v2 1/1] virtgpu: init vq during resume and notify qemu guest status

2023-06-30 Thread Jiqian Chen
a new feature flag VIRTIO_GPU_F_FREEZING, so that guest and host can negotiate whenever freezing is supported or not. Signed-off-by: Jiqian Chen --- drivers/gpu/drm/virtio/virtgpu_debugfs.c | 1 + drivers/gpu/drm/virtio/virtgpu_drv.c | 37 drivers/gpu/drm/virtio/vir

[LINUX KERNEL PATCH v3 1/1] virtgpu: init vq during resume and notify qemu guest status

2023-07-20 Thread Jiqian Chen
a new feature flag VIRTIO_GPU_F_FREEZE_S3, so that guest and host can negotiate whenever freeze_S3 is supported or not. Signed-off-by: Jiqian Chen --- drivers/gpu/drm/virtio/virtgpu_debugfs.c | 1 + drivers/gpu/drm/virtio/virtgpu_drv.c | 39 drivers/gpu/drm/virtio/vir

[LINUX KERNEL PATCH v3 0/1] add S3 support for virtgpu

2023-07-20 Thread Jiqian Chen
v3: Hi all, Thanks for Gerd Hoffmann's advice. V3 makes below changes: * Use enum for freeze mode, so this can be extended with more modes in the future. * Rename functions and paratemers with "_S3" postfix. And no functional changes. Best regards, Jiqian Chen. v2: Hi all,

[LINUX KERNEL PATCH 0/1] add S3 support for virtgpu

2023-06-07 Thread Jiqian Chen
ons on Qemu end is: https://lore.kernel.org/qemu-devel/20230608025655.1674357-2-jiqian.c...@amd.com/ Best regards, Jiqian Chen. Jiqian Chen (1): virtgpu: init vq during resume and notify qemu guest status drivers/gpu/drm/virtio/virtgpu_drv.c | 32 drivers/gpu/drm

[LINUX KERNEL PATCH 1/1] virtgpu: init vq during resume and notify qemu guest status

2023-06-07 Thread Jiqian Chen
status to false to notify Qemu that guest exited suspending, and then Qemu will keep its origin actions. As a result, the display can come back and everything of guest can come back to the time when guest was suspended. Signed-off-by: Jiqian Chen --- drivers/gpu/drm/virtio

[RESEND LINUX KERNEL PATCH 0/1] add S3 support for virtgpu

2023-09-11 Thread Jiqian Chen
Hi all, I hope you’ll forgive me if this disturb you. Since it has been almost two months since the latest patch was sent out, I didn't receive any reply, so I rebase the latest master branch and sent it again. I am looking forward to getting your response. Best regards, Jiqian Chen v3: H

[RESEND LINUX KERNEL PATCH 1/1] virtgpu: init vq during resume and notify qemu guest status

2023-09-11 Thread Jiqian Chen
a new feature flag VIRTIO_GPU_F_FREEZE_S3, so that guest and host can negotiate whenever freeze_S3 is supported or not. Signed-off-by: Jiqian Chen --- drivers/gpu/drm/virtio/virtgpu_debugfs.c | 1 + drivers/gpu/drm/virtio/virtgpu_drv.c | 39 drivers/gpu/drm/virtio/vir

[LINUX KERNEL PATCH v5 0/1] add freeze_mode for virtio_pci and add S3 support for virtgpu

2023-09-19 Thread Jiqian Chen
in restore(). The link to trace this issue: https://gitlab.com/qemu-project/qemu/-/issues/1860 Best regards, Jiqian Chen v4: Link: no v4 of kernel patch. V4 of Qemu patch: https://lore.kernel.org/qemu-devel/20230720120816.8751-1-jiqian.c...@amd.com/ v3: makes below changes: * Use enum for free

[LINUX KERNEL PATCH v5 1/2] virtio_pci: Add freeze_mode for virtio_pci_common_cfg

2023-09-19 Thread Jiqian Chen
set freeze_mode to be FREEZE_S3, so that virtio devices can change their reset behavior on Qemu side according to that mode. Signed-off-by: Jiqian Chen --- drivers/virtio/virtio.c| 13 + drivers/virtio/virtio_pci_modern.c | 9 + drivers/virtio/virtio_pci

[LINUX KERNEL PATCH v5 2/2] virtgpu: Add freeze and restore func to reinit vqs

2023-09-19 Thread Jiqian Chen
initializes virtqueues. And then, Qemu and guest can communicate normally. Signed-off-by: Jiqian Chen --- drivers/gpu/drm/virtio/virtgpu_drv.c | 23 + drivers/gpu/drm/virtio/virtgpu_drv.h | 1 + drivers/gpu/drm/virtio/virtgpu_kms.c | 30 +++- 3 files