Skip to contentSkip to conversation

uxa: Do not change DPMS mode on unconnected outputs

PATCH In review Rodrigo Vivi 2 participants 2 messages Sep 20, 2013 – Sep 23, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uxa: Do not change DPMS mode on unconnected outputs

"The operation is in theory redundant, and in the case of Haswell where we have multiple outputs aliasing to the same encoder, actually harmful."

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68030
Credits-to: Chris Wilson <[email protected]>

---
 src/uxa/intel_display.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
src/uxa/intel_display.c +5 -4
index 7dc0f68..0cb63b3 100644
@@ -1123,10 +1123,11 @@ intel_output_dpms(xf86OutputPtr output, int dpms)
 				intel_output_dpms_backlight(output,
 							    intel_output->dpms_mode,
 							    dpms);
-			drmModeConnectorSetProperty(mode->fd,
-						    intel_output->output_id,
-						    props->prop_id,
-						    dpms);
+			if (output->crtc)
+				drmModeConnectorSetProperty(mode->fd,
+							    intel_output->output_id,
+							    props->prop_id,
+							    dpms);
 			if (dpms != DPMSModeOff)
 				intel_output_dpms_backlight(output,
 							    intel_output->dpms_mode,
Signature · 1 line
1.8.1.4
#1 lore raw
Quoted 7 lines · Rodrigo Vivi

"The operation is in theory redundant, and in the case of Haswell where we have multiple outputs aliasing to the same encoder, actually harmful."

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68030
Credits-to: Chris Wilson <[email protected]>

Can we have a testcase for this since this very much looks like a kernel bug, specifically in intel_connector_dpms?

I think doing a dpms off on all connectors but the one we've just enabled in kms_flip and then trying to do a few flips to check whether the pipe is still on should be good enough.

Thanks, Daniel

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