mbox series

[v1,0/2] drm/virtio: Add hotplug_mode_update and suggested_x/y properties

Message ID 20221118013054.182304-1-vivek.kasireddy@intel.com (mailing list archive)
Headers show
Series drm/virtio: Add hotplug_mode_update and suggested_x/y properties | expand

Message

Kasireddy, Vivek Nov. 18, 2022, 1:30 a.m. UTC
These properties provide a way to influence the userspace with regard
to positioning of the outputs and also enable it to look for new
preferred modes when hotplug interrupts occur. 

These properties are currently used by other virtual GPU drivers
such as vmwgfx and qxl.

Testcase: After positioning the VMM's (e.g, Qemu) windows on various
monitors and launching the Guest VM, run the get-state tool (tools/
get-state.py) associated with Mutter to ensure that the Hosts' and
Guests' outputs are aligned.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Dongwon Kim <dongwon.kim@intel.com>

Vivek Kasireddy (2):
  drm/virtio: Attach and set suggested_x/y properties for the connector
  drm/virtio: Add the hotplug_mode_update property for rescanning of
    modes

 drivers/gpu/drm/virtio/virtgpu_display.c | 19 +++++++++++++++++++
 drivers/gpu/drm/virtio/virtgpu_drv.h     |  2 ++
 drivers/gpu/drm/virtio/virtgpu_vq.c      | 12 ++++++++++++
 3 files changed, 33 insertions(+)