[PATCH] HAX drm/i915: Print more info about init power domain.

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Wed Jan 10 16:09:21 UTC 2018

Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
 drivers/gpu/drm/i915/intel_drv.h        | 3 ++-
 drivers/gpu/drm/i915/intel_runtime_pm.c | 6 ++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index 36df82602d8a..2eebee47f397 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -1876,7 +1876,8 @@ bool intel_runtime_pm_get_if_in_use(struct drm_i915_private *dev_priv);
 void intel_runtime_pm_get_noresume(struct drm_i915_private *dev_priv);
 void intel_runtime_pm_put(struct drm_i915_private *dev_priv);
-void intel_display_set_init_power(struct drm_i915_private *dev, bool enable);
+void __intel_display_set_init_power(struct drm_i915_private *dev, bool enable, const char *fn, const int line);
+#define intel_display_set_init_power(a, b) __intel_display_set_init_power(a, b, __func__, __LINE__)
 void chv_phy_powergate_lanes(struct intel_encoder *encoder,
 			     bool override, unsigned int mask);
diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c
index d758da6156a8..80885122a992 100644
--- a/drivers/gpu/drm/i915/intel_runtime_pm.c
+++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
@@ -249,9 +249,11 @@ bool intel_display_power_is_enabled(struct drm_i915_private *dev_priv,
  * of this little hack. While the initial power domain state is enabled runtime
  * pm is effectively disabled.
-void intel_display_set_init_power(struct drm_i915_private *dev_priv,
-				  bool enable)
+void __intel_display_set_init_power(struct drm_i915_private *dev_priv,
+				    bool enable, const char *fn, const int line)
+	DRM_DEBUG_KMS("%s/%u: Setting power well to %u from %u\n", fn, line, enable, dev_priv->power_domains.init_power_on);
 	if (dev_priv->power_domains.init_power_on == enable)

More information about the Intel-gfx-trybot mailing list