diff options
author | Vivek Kasireddy <vivek.kasireddy@intel.com> | 2022-11-17 17:30:54 -0800 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2023-01-26 08:31:41 +0100 |
commit | 678d45faf3684f4ec694cc19b70db7f2a0c9c841 (patch) | |
tree | e8c63beab97808b4f300641e5f27fa2087f15bce /drivers/gpu/drm/virtio/virtgpu_drv.h | |
parent | 347d001a65ba84c02ebd403000bf4e524cf678e6 (diff) | |
download | linux-drm-qemu-next.tar.gz |
drm/virtio: Add the hotplug_mode_update property for rescanning of modesdrm-qemu-next
Setting this property will allow the userspace to look for new modes or
position info when a hotplug event occurs. This is really helpful for
virtual GPU drivers to handle Host window resizing events which are
propogated as hotplug interrupts to the Guest drivers. Mutter already
uses this property while configuring the outputs.
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Dongwon Kim <dongwon.kim@intel.com>
Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20221118013054.182304-3-vivek.kasireddy@intel.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/virtio/virtgpu_drv.h')
-rw-r--r-- | drivers/gpu/drm/virtio/virtgpu_drv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h b/drivers/gpu/drm/virtio/virtgpu_drv.h index af6ffb696086..8689a589d3d2 100644 --- a/drivers/gpu/drm/virtio/virtgpu_drv.h +++ b/drivers/gpu/drm/virtio/virtgpu_drv.h @@ -260,6 +260,8 @@ struct virtio_gpu_device { uint64_t capset_id_mask; struct list_head cap_cache; + struct drm_property *hotplug_mode_update_property; + /* protects uuid state when exporting */ spinlock_t resource_export_lock; /* protects map state and host_visible_mm */ |