Skip to contentSkip to conversation

Revert "drm/i915: Don't enable pipe/plane/VCO early (wait for DPMS on)."

PATCH In review Carl Worth 3 participants 4 messages Apr 27, 2010 – May 14, 2010

Subsystems (2)
lore
Share & tools
lore

Carl Worth

author
#0 lore raw

PATCH 1/1 Revert "drm/i915: Don't enable pipe/plane/VCO early (wait for DPMS on)."

This reverts commit cfecde435dda78248d6fcdc424bed68d5db6be0b.

The commit was first created as an attempt to fix LVDS initialiazation on Ironlake. Testing revealed that it didn't fix that, but it was assumed to still be correct anyway.

Subsequent testing has revealed that this commit has caused other regressions:

* Change in VBlank interrupt frequency causing 60% 3D performance regression

    http://bugs.freedesktop.org/show_bug.cgi?id=27698

* Black screen on G45

    http://bugs.freedesktop.org/show_bug.cgi?id=27733

So revert this buggy code for now to revisit later when we can fix actual bugs without causing these regressions.

---
 drivers/gpu/drm/i915/intel_display.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/gpu/drm/i915/intel_display.c +5 -0
index 58668c4..e2c726b 100644
@@ -3602,6 +3602,11 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc,
 			pipeconf &= ~PIPEACONF_DOUBLE_WIDE;
 	}
 
+	dspcntr |= DISPLAY_PLANE_ENABLE;
+	pipeconf |= PIPEACONF_ENABLE;
+	dpll |= DPLL_VCO_ENABLE;
+
+
 	/* Disable the panel fitter if it was on our pipe */
 	if (!HAS_PCH_SPLIT(dev) && intel_panel_fitter_pipe(dev) == pipe)
 		I915_WRITE(PFIT_CONTROL, 0);
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 9 lines · Carl Worth

This reverts commit cfecde435dda78248d6fcdc424bed68d5db6be0b.

The commit was first created as an attempt to fix LVDS initialiazation on Ironlake. Testing revealed that it didn't fix that, but it was assumed to still be correct anyway.

Subsequent testing has revealed that this commit has caused other regressions:

Quoted 8 lines

* Change in VBlank interrupt frequency causing 60% 3D performance regression

    http://bugs.freedesktop.org/show_bug.cgi?id=27698

* Black screen on G45

    http://bugs.freedesktop.org/show_bug.cgi?id=27733

So revert this buggy code for now to revisit later when we can fix actual bugs without causing these regressions.

Since it's only in -next right now, do you have plans to look into why this went wrong? I'm concerned that we're reverting a bugfix to "revisit later" with no plan to actually revisit later.

(Also, it seems that my laptop is much more reliable at modesetting on the branch with the patch than the branch without the patch.)

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

author
#2 lore raw
Quoted 3 lines · Eric Anholt

Since it's only in -next right now, do you have plans to look into why this went wrong? I'm concerned that we're reverting a bugfix to "revisit later" with no plan to actually revisit later.

That was my attempt to get my buglist a bit cleaner before disappearing on vacation. Now that I'm back, I think it makes a lot of sense to go through these two different code paths carefully and see what is different about them, (or try to make them share more code).

-Carl

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

#3 lore raw
Quoted 10 lines · Carl Worth
Quoted 3 lines · Eric Anholt

Since it's only in -next right now, do you have plans to look into why this went wrong? I'm concerned that we're reverting a bugfix to "revisit later" with no plan to actually revisit later.

That was my attempt to get my buglist a bit cleaner before disappearing on vacation. Now that I'm back, I think it makes a lot of sense to go through these two different code paths carefully and see what is different about them, (or try to make them share more code).

Carl, still looking into this? Without revert it, KMS fails to light up CRT for my G45.

Signature · 3 lines
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827

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