Skip to contentSkip to conversation

drm/i915: mark display port DPMS state as 'ON' when enabling output

PATCH In review Keith Packard 2 participants 4 messages Oct 3, 2010 – Oct 4, 2010

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

PATCH 1/1 drm/i915: mark display port DPMS state as 'ON' when enabling output

The display port DPMS state is tracked internally in the display port driver so that when a hotplug event comes along, the driver can know whether to try retraining the link. This doesn't work well if the driver never sets the DPMS state to ON when the output is enabled.

---
 drivers/gpu/drm/i915/intel_dp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/gpu/drm/i915/intel_dp.c +1 -0
index 9ab8708..8602143 100644
@@ -881,6 +881,7 @@ static void intel_dp_commit(struct drm_encoder *encoder)
 	}
 	if (IS_eDP(intel_dp) || IS_PCH_eDP(intel_dp))
 		ironlake_edp_backlight_on(dev);
+	intel_dp->dpms_mode = DRM_MODE_DPMS_ON;
 }
 
 static void
Signature · 1 line
1.7.1
#1 lore raw

Re: [PATCH] drm/i915: mark display port DPMS state as ON when enabling output

Quoted 4 lines · Keith Packard

The display port DPMS state is tracked internally in the display port driver so that when a hotplug event comes along, the driver can know whether to try retraining the link. This doesn't work well if the driver never sets the DPMS state to ON when the output is enabled.

It appears that all users (crtc and encoders) are tracking dpms_mode, in one form or another. Should we move this to core?

Is there any hardware that requires notification even when there is no change?
-Chris

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

Re: [PATCH] drm/i915: mark display port DPMS state as ON when enabling output

Quoted 2 lines · Chris Wilson

It appears that all users (crtc and encoders) are tracking dpms_mode, in one form or another. Should we move this to core?

Sounds like a good idea. Would you prefer to do that yourself?

Quoted 2 lines

Is there any hardware that requires notification even when there is no change?

I don't know, but it seems unlikely.

Signature · 1 line
[email protected]

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw

Re: [Intel-gfx] [PATCH] drm/i915: mark display port DPMS state as ON when enabling output

Quoted 6 lines · Keith Packard
Quoted 2 lines · Chris Wilson

It appears that all users (crtc and encoders) are tracking dpms_mode, in one form or another. Should we move this to core?

Sounds like a good idea. Would you prefer to do that yourself?

I've applied the patch to -next and I'll look through to see if there is a clean solution to moving the checks to core.
-Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre