Skip to contentSkip to conversation

drm/i915: don't probe oui for eDP panels

PATCH In review Daniel Vetter 3 participants 6 messages Jun 12, 2012 – Jun 13, 2012

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

PATCH 1/1 drm/i915: don't probe oui for eDP panels

At least not in the detect function. We'd need eDP vdd to do so if the panel is off, but I've figured just disabling it is easier.

This issue has been introduce in

commit 0d198328538276c4459ef5de081e68ae60e6c4c2

Author: Adam Jackson <[email protected]>
Date:   Mon May 14 16:05:47 2012 -0400

drm/i915/dp: Probe branch/sink OUIs

Cc: Adam Jackson <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50808

Bugreport: http://permalink.gmane.org/gmane.comp.video.dri.devel/69695

---
 drivers/gpu/drm/i915/intel_dp.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/i915/intel_dp.c +3 -0
index 296cfc2..34e1769 100644
@@ -1970,6 +1970,9 @@ intel_dp_probe_oui(struct intel_dp *intel_dp)
 {
 	u8 buf[3];
 
+	if (is_edp(intel_dp))
+		return;
+
 	if (!(intel_dp->dpcd[DP_DOWN_STREAM_PORT_COUNT] & DP_OUI_SUPPORT))
 		return;
 
Signature · 1 line
1.7.10
#1 lore raw
Quoted 26 lines · Daniel Vetter

At least not in the detect function. We'd need eDP vdd to do so if the panel is off, but I've figured just disabling it is easier.

This issue has been introduce in

commit 0d198328538276c4459ef5de081e68ae60e6c4c2

Author: Adam Jackson <[email protected]>
Date:   Mon May 14 16:05:47 2012 -0400

drm/i915/dp: Probe branch/sink OUIs

Cc: Adam Jackson <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50808

Bugreport: http://permalink.gmane.org/gmane.comp.video.dri.devel/69695

---
 drivers/gpu/drm/i915/intel_dp.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/i915/intel_dp.c +0 -0
index 296cfc2..34e1769 100644

drivers/gpu/drm/i915/intel_dp.c intel_dp_probe_oui(struct intel_dp *intel_dp) · line 1974

Quoted 5 lines
drivers/gpu/drm/i915/intel_dp.c +2 -0
@@ -1970,6 +1970,9 @@ intel_dp_probe_oui(struct intel_dp *intel_dp)
 {
 	u8 buf[3];
 
+	if (is_edp(intel_dp))
+		return;

Can I be annoying and ask this be annotated that we bail here for convenience and not due to lack of hw support? Otherwise we just add a moment of confusion should we ever need to log oui for eDP. (If manufacturers thought eDP -> LVDS dongles were a good idea, just imagine the chain in a couple of years time...)
-Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
#2 lore raw

PATCH 1/1 drm/i915: eDP aux needs vdd

The new oui probe has been missing these.

This issue has been introduce in

commit 0d198328538276c4459ef5de081e68ae60e6c4c2

Author: Adam Jackson <[email protected]>
Date:   Mon May 14 16:05:47 2012 -0400

drm/i915/dp: Probe branch/sink OUIs

v2: Do the eDP vdd dance of simply not probing the OUI on eDP panels as suggested by Chris Wilson.

Cc: Adam Jackson <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50808

Bugreport: http://permalink.gmane.org/gmane.comp.video.dri.devel/69695

---
 drivers/gpu/drm/i915/intel_dp.c |    4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/i915/intel_dp.c +4 -0
index 296cfc2..fbc30a5 100644
@@ -1970,6 +1970,8 @@ intel_dp_probe_oui(struct intel_dp *intel_dp)
 {
 	u8 buf[3];
 
+	ironlake_edp_panel_vdd_on(intel_dp);
+
 	if (!(intel_dp->dpcd[DP_DOWN_STREAM_PORT_COUNT] & DP_OUI_SUPPORT))
 		return;
 
@@ -1980,6 +1982,8 @@ intel_dp_probe_oui(struct intel_dp *intel_dp)
 	if (intel_dp_aux_native_read_retry(intel_dp, DP_BRANCH_OUI, buf, 3))
 		DRM_DEBUG_KMS("Branch OUI: %02hx%02hx%02hx\n",
 			      buf[0], buf[1], buf[2]);
+
+	ironlake_edp_panel_vdd_off(intel_dp, false);
 }
 
 static bool
Signature · 1 line
1.7.10
#3 lore raw

Re: [PATCH] drm/i915: eDP aux needs vdd

Quoted 28 lines · Daniel Vetter

The new oui probe has been missing these.

This issue has been introduce in

commit 0d198328538276c4459ef5de081e68ae60e6c4c2

Author: Adam Jackson <[email protected]>
Date:   Mon May 14 16:05:47 2012 -0400

drm/i915/dp: Probe branch/sink OUIs

v2: Do the eDP vdd dance of simply not probing the OUI on eDP panels as suggested by Chris Wilson.

Cc: Adam Jackson <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50808

Bugreport: http://permalink.gmane.org/gmane.comp.video.dri.devel/69695

---
 drivers/gpu/drm/i915/intel_dp.c |    4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/i915/intel_dp.c +0 -0
index 296cfc2..fbc30a5 100644

drivers/gpu/drm/i915/intel_dp.c intel_dp_probe_oui(struct intel_dp *intel_dp) · line 1976

Quoted 7 lines
drivers/gpu/drm/i915/intel_dp.c +2 -0
@@ -1970,6 +1970,8 @@ intel_dp_probe_oui(struct intel_dp *intel_dp)
 {
 	u8 buf[3];
 
+	ironlake_edp_panel_vdd_on(intel_dp);
+
 	if (!(intel_dp->dpcd[DP_DOWN_STREAM_PORT_COUNT] & DP_OUI_SUPPORT))
 		return;

The side effect is that we then need to introduce a layer of onion here.

Quoted 8 lines
drivers/gpu/drm/i915/intel_dp.c +2 -0
@@ -1980,6 +1982,8 @@ intel_dp_probe_oui(struct intel_dp *intel_dp)
 	if (intel_dp_aux_native_read_retry(intel_dp, DP_BRANCH_OUI, buf, 3))
 		DRM_DEBUG_KMS("Branch OUI: %02hx%02hx%02hx\n",
 			      buf[0], buf[1], buf[2]);
+
+	ironlake_edp_panel_vdd_off(intel_dp, false);
 }
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
#4 lore raw

PATCH 1/1 drm/i915: eDP aux needs vdd

In reply to Chris Wilson

The new oui probe has been missing these.

This issue has been introduce in

commit 0d198328538276c4459ef5de081e68ae60e6c4c2

Author: Adam Jackson <[email protected]>
Date:   Mon May 14 16:05:47 2012 -0400

drm/i915/dp: Probe branch/sink OUIs

v2: Do the eDP vdd dance of simply not probing the OUI on eDP panels as suggested by Chris Wilson.

v3: Fix up the error path fail - I suck.

Cc: Adam Jackson <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50808

Bugreport: http://permalink.gmane.org/gmane.comp.video.dri.devel/69695

---
 drivers/gpu/drm/i915/intel_dp.c |    4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/i915/intel_dp.c +4 -0
index 296cfc2..c574ff0 100644
@@ -1973,6 +1973,8 @@ intel_dp_probe_oui(struct intel_dp *intel_dp)
 	if (!(intel_dp->dpcd[DP_DOWN_STREAM_PORT_COUNT] & DP_OUI_SUPPORT))
 		return;
 
+	ironlake_edp_panel_vdd_on(intel_dp);
+
 	if (intel_dp_aux_native_read_retry(intel_dp, DP_SINK_OUI, buf, 3))
 		DRM_DEBUG_KMS("Sink OUI: %02hx%02hx%02hx\n",
 			      buf[0], buf[1], buf[2]);
@@ -1980,6 +1982,8 @@ intel_dp_probe_oui(struct intel_dp *intel_dp)
 	if (intel_dp_aux_native_read_retry(intel_dp, DP_BRANCH_OUI, buf, 3))
 		DRM_DEBUG_KMS("Branch OUI: %02hx%02hx%02hx\n",
 			      buf[0], buf[1], buf[2]);
+
+	ironlake_edp_panel_vdd_off(intel_dp, false);
 }
 
 static bool
Signature · 1 line
1.7.10
#5 lore raw

Re: [PATCH] drm/i915: eDP aux needs vdd

Quoted 13 lines · Daniel Vetter

The new oui probe has been missing these.

This issue has been introduce in

commit 0d198328538276c4459ef5de081e68ae60e6c4c2

Author: Adam Jackson <[email protected]>
Date:   Mon May 14 16:05:47 2012 -0400

drm/i915/dp: Probe branch/sink OUIs

v2: Do the eDP vdd dance of simply not probing the OUI on eDP panels as suggested by Chris Wilson.

Quoted 8 lines

v3: Fix up the error path fail - I suck.

Cc: Adam Jackson <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50808

Bugreport: http://permalink.gmane.org/gmane.comp.video.dri.devel/69695

Picked up for -fixes with Jesse's irc-r-b added.
-Daniel

Signature · 3 lines
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48