mbox series

[v4,0/6] drm: add per-connector hotplug events

Message ID 20211018084707.32253-1-contact@emersion.fr (mailing list archive)
Headers show
Series drm: add per-connector hotplug events | expand

Message

Simon Ser Oct. 18, 2021, 8:47 a.m. UTC
When a uevent only updates a single connector, add a CONNECTOR property
to the uevent. This allows user-space to ignore other connectors when
handling the uevent. This is purely an optimization, drivers can still
send a uevent without the CONNECTOR property.

The CONNECTOR property is already set when sending HDCP property update
uevents, see drm_sysfs_connector_status_event.

This has been tested with a wlroots patch [1].

amdgpu and the probe-helper has been updated to use these new fine-grained
uevents.

Changes in v4: address comments from Ville, Maxime and Sam.

Simon Ser (6):
  drm/sysfs: introduce drm_sysfs_connector_hotplug_event
  drm/probe-helper: add drm_kms_helper_connector_hotplug_event
  drm/connector: use drm_sysfs_connector_hotplug_event
  amdgpu: use drm_kms_helper_connector_hotplug_event
  drm/probe-helper: use drm_kms_helper_connector_hotplug_event
  i915/display/dp: send a more fine-grained link-status uevent

 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |  8 ++--
 .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c |  4 +-
 drivers/gpu/drm/drm_connector.c               |  2 +-
 drivers/gpu/drm/drm_probe_helper.c            | 48 +++++++++++++++----
 drivers/gpu/drm/drm_sysfs.c                   | 25 ++++++++++
 drivers/gpu/drm/i915/display/intel_dp.c       |  2 +-
 include/drm/drm_probe_helper.h                |  1 +
 include/drm/drm_sysfs.h                       |  1 +
 8 files changed, 75 insertions(+), 16 deletions(-)


base-commit: f6632721cd6231e1bf28b5317dcc7543e43359f7