Skip to contentSkip to conversation

kms/nv50: always call drm_dp_dpcd_write after drm_dp_mst_hpd_irq

PATCH New Karol Herbst 1 participant 1 message Feb 15, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kms/nv50: always call drm_dp_dpcd_write after drm_dp_mst_hpd_irq

When using the dock for the Lenovo P50 laptop it could happen quite often that on redocking the laptop no attached displays are found. Same situation when displays are connected to the dock.

There seems to be no unhandled bits in the esi though.

With this patch detecting the displays doesn't seem to fail anymore on above mentioned setup.

Maybe there is a better fix for this issue.

---
 drm/nouveau/nv50_display.c | 3 ---
 1 file changed, 3 deletions(-)
drm/nouveau/nv50_display.c +0 -3
index dd8d4352..9e360ffa 100644
@@ -3337,9 +3337,6 @@ nv50_mstm_service(struct nv50_mstm *mstm)
 		}
 
 		drm_dp_mst_hpd_irq(&mstm->mgr, esi, &handled);
-		if (!handled)
-			break;
-
 		drm_dp_dpcd_write(aux, DP_SINK_COUNT_ESI + 1, &esi[1], 3);
 	}
 }
Signature · 6 lines
2.14.3

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau