Skip to contentSkip to conversation

Revert "drm: copy mode type in drm_mode_connector_list_update()"

PATCH In review Daniel Vetter 2 participants 3 messages Nov 27, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "drm: copy mode type in drm_mode_connector_list_update()"

This reverts commit 3fbd6439e4639ecaeaae6c079e0aa497a1ac3482.

This breaks the boot on my g33 here, right when the initial modeset happens. The modeset seems to complete (the external screen lights up at the native resolution), but then the box is dead.

Strangely enough when delaying disabling modesetting and manually loading the driver later on everything is perfectly fine. I've run out of clues, ideas highly welcome. At least the revert here gets my box going again.

Cc Marc-André Lureau <[email protected]>
Cc Dave Airlie <[email protected]>
---
 drivers/gpu/drm/drm_modes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_modes.c +1 -1
index 85071a1c4547..b0733153dfd2 100644
@@ -1041,7 +1041,7 @@ void drm_mode_connector_list_update(struct drm_connector *connector)
 				/* if equal delete the probed mode */
 				mode->status = pmode->status;
 				/* Merge type bits together */
-				mode->type = pmode->type;
+				mode->type |= pmode->type;
 				list_del(&pmode->head);
 				drm_mode_destroy(connector->dev, pmode);
 				break;
Signature · 6 lines
1.8.3.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 10 lines · Daniel Vetter

This reverts commit 3fbd6439e4639ecaeaae6c079e0aa497a1ac3482.

This breaks the boot on my g33 here, right when the initial modeset happens. The modeset seems to complete (the external screen lights up at the native resolution), but then the box is dead.

Strangely enough when delaying disabling modesetting and manually loading the driver later on everything is perfectly fine. I've run out of clues, ideas highly welcome. At least the revert here gets my box going again.

Out of curiousity, what does the debug say the two modes being merged are? -Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
#2 lore raw
Quoted 7 lines · Chris Wilson
Quoted 6 lines · Daniel Vetter

This reverts commit 3fbd6439e4639ecaeaae6c079e0aa497a1ac3482.

This breaks the boot on my g33 here, right when the initial modeset happens. The modeset seems to complete (the external screen lights up at the native resolution), but then the box is dead.

Quoted 6 lines
Quoted 4 lines

Strangely enough when delaying disabling modesetting and manually loading the driver later on everything is perfectly fine. I've run out of clues, ideas highly welcome. At least the revert here gets my box going again.

Out of curiousity, what does the debug say the two modes being merged are?

The old mode somehow has the preferred mode bit whereas the replacement mode doesn't have it. This happens on the sdvo hdmi port. I have no idea why this really matters, since like I've said modesetting works fine anytime afterwards.

I'm stumped.
-Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch