public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Stop calling intel_prepare_ddi during power well initialization.
@ 2015-09-22 15:03 Rodrigo Vivi
  2015-09-23 15:58 ` Daniel Vetter
  0 siblings, 1 reply; 10+ messages in thread
From: Rodrigo Vivi @ 2015-09-22 15:03 UTC (permalink / raw)
  To: intel-gfx; +Cc: Suketu Shah, Rodrigo Vivi

The comment removed along with the calls explains why they shouldn't be here:

/* DDI buffer programming unnecessary during driver-load/resume
 * as it's already done during modeset initialization then.
 * It's also invalid here as encoder list is still uninitialized.
 */

And the protection is not working well causing issues during the boot where
power well initialization doesn't go as expected.

So this call during modeset initialization where the encoder list is yet
unitilized causes a NULL dereference breaking i915.

While we don't find the right protection and we don't understand why this is
actually needed I believe it is safe to just remove these calls.

Cc: Suketu Shah <suketu.j.shah@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
 drivers/gpu/drm/i915/intel_runtime_pm.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c
index 85c35fd..f7027ea 100644
--- a/drivers/gpu/drm/i915/intel_runtime_pm.c
+++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
@@ -246,7 +246,6 @@ static void skl_power_well_post_enable(struct drm_i915_private *dev_priv,
 	}
 
 	if (power_well->data == SKL_DISP_PW_1) {
-		intel_prepare_ddi(dev);
 		gen8_irq_power_well_post_enable(dev_priv, 1 << PIPE_A);
 	}
 }
@@ -632,13 +631,6 @@ static void skl_set_power_well(struct drm_i915_private *dev_priv,
 				power_well->data == SKL_DISP_PW_2) {
 				if (SKL_ENABLE_DC6(dev)) {
 					skl_disable_dc6(dev_priv);
-					/*
-					 * DDI buffer programming unnecessary during driver-load/resume
-					 * as it's already done during modeset initialization then.
-					 * It's also invalid here as encoder list is still uninitialized.
-					 */
-					if (!dev_priv->power_domains.initializing)
-						intel_prepare_ddi(dev);
 				} else {
 					gen9_disable_dc5(dev_priv);
 				}
-- 
2.4.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-09-28  8:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-22 15:03 [PATCH] drm/i915: Stop calling intel_prepare_ddi during power well initialization Rodrigo Vivi
2015-09-23 15:58 ` Daniel Vetter
2015-09-23 17:34   ` Vivi, Rodrigo
2015-09-23 17:48     ` Imre Deak
2015-09-23 18:32       ` [PATCH] drm/i915: Don't call intel_prepare_ddi when encoder list isn't yet initialized Rodrigo Vivi
2015-09-24 13:08         ` Imre Deak
2015-09-25 10:52         ` Jani Nikula
2015-09-25 16:09           ` Vivi, Rodrigo
2015-09-28  8:11             ` Jani Nikula
2015-09-28  8:40             ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox