[PATCH 18/18] debug

Ander Conselvan de Oliveira ander.conselvan.de.oliveira at intel.com
Fri May 13 09:05:04 UTC 2016


---
 drivers/gpu/drm/i915/intel_runtime_pm.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c
index 18f86f3..7bc83bc 100644
--- a/drivers/gpu/drm/i915/intel_runtime_pm.c
+++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
@@ -1020,11 +1020,21 @@ static void vlv_display_power_well_enable(struct drm_i915_private *dev_priv,
 static void vlv_display_power_well_disable(struct drm_i915_private *dev_priv,
 					   struct i915_power_well *power_well)
 {
+	enum pipe pipe;
+
 	WARN_ON_ONCE(power_well->data != PUNIT_POWER_WELL_DISP2D);
 
+	for_each_pipe(dev_priv, pipe)
+		DRM_DEBUG_KMS("[before] %c pll: %08x",
+			      pipe_name(pipe), I915_READ(DPLL(pipe)));
+
 	vlv_display_power_well_deinit(dev_priv);
 
 	vlv_set_power_well(dev_priv, power_well, false);
+
+	for_each_pipe(dev_priv, pipe)
+		DRM_DEBUG_KMS("[after] %c pll: %08x",
+			      pipe_name(pipe), I915_READ(DPLL(pipe)));
 }
 
 static void vlv_dpio_cmn_power_well_enable(struct drm_i915_private *dev_priv,
-- 
2.5.5



More information about the Intel-gfx-trybot mailing list