Skip to content

Commit 0a3e0fb

Browse files
committed
Revert "drm: hide unregistered connectors from GETCONNECTOR IOCTL"
This reverts commit 981f092. It turns out this causes logically active but disconnected DP MST connectors to disappear from the KMS resources list, and Mutter then assumes the connector is already disabled. Later on Mutter tries to re-use the same CRTC but fails since on the kernel side it's still tied to the disconnected DP MST connector. Signed-off-by: Simon Ser <[email protected]> Tested-by: Jonas Ådahl <[email protected]> Reviewed-by: Lyude Paul <[email protected]> Cc: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent eca13f3 commit 0a3e0fb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/gpu/drm/drm_mode_config.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,6 @@ int drm_mode_getresources(struct drm_device *dev, void *data,
151151
count = 0;
152152
connector_id = u64_to_user_ptr(card_res->connector_id_ptr);
153153
drm_for_each_connector_iter(connector, &conn_iter) {
154-
if (connector->registration_state != DRM_CONNECTOR_REGISTERED)
155-
continue;
156-
157154
/* only expose writeback connectors if userspace understands them */
158155
if (!file_priv->writeback_connectors &&
159156
(connector->connector_type == DRM_MODE_CONNECTOR_WRITEBACK))

0 commit comments

Comments
 (0)