[PATCH 0/4] Unregister mst connectors when hotplug

Wayne Lin Wayne.Lin at amd.com
Tue Jul 20 16:03:38 UTC 2021


By patches below, we change to clean up resources of a mst connector
and put port's malloc_kref when we start to destroy a connector.
* 09b974e8983 drm/amd/amdgpu_dm/mst: Remove ->destroy_connector() callback
* 72dc0f51591 drm/dp_mst: Remove drm_dp_mst_topology_cbs.destroy_connector

However, find out that mst connectors won't reach connector destroy flow
after hot unplug and hence will cause no more resources for new added 
connectors. Thus, this patch set is trying to solve observed
registration/unregistration problem of mst connectors.

Wayne Lin (4):
  drm/dp_mst: Put malloc_kref of vcpi pointing port when disable MST
  drm/dp_mst: Only create connector for connected end device
  drm/dp_mst: Put connector of disconnected end device when handling CSN
  drm/dp_mst: Release disconnected connectors when resume

 drivers/gpu/drm/drm_dp_mst_topology.c | 39 ++++++++++++++++++++++++---
 1 file changed, 36 insertions(+), 3 deletions(-)

-- 
2.17.1



More information about the dri-devel mailing list