[PATCH 2/6] drm/i915/display: Revert "drm/i915: Disable PSR around cdclk changes"

Anusha Srivatsa anusha.srivatsa at intel.com
Tue Jun 15 23:54:07 UTC 2021


This reverts commit 17c1a4b7ac6ffcebcc97442b9af4a34a95d4a1f8.
---
 drivers/gpu/drm/i915/display/intel_cdclk.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_cdclk.c b/drivers/gpu/drm/i915/display/intel_cdclk.c
index 613ffcc68eba..f24bd9cf1318 100644
--- a/drivers/gpu/drm/i915/display/intel_cdclk.c
+++ b/drivers/gpu/drm/i915/display/intel_cdclk.c
@@ -28,7 +28,6 @@
 #include "intel_cdclk.h"
 #include "intel_de.h"
 #include "intel_display_types.h"
-#include "intel_psr.h"
 #include "intel_sideband.h"
 
 /**
@@ -1962,12 +1961,6 @@ static void intel_set_cdclk(struct drm_i915_private *dev_priv,
 
 	intel_dump_cdclk_config(cdclk_config, "Changing CDCLK to");
 
-	for_each_intel_encoder_with_psr(&dev_priv->drm, encoder) {
-		struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
-
-		intel_psr_pause(intel_dp);
-	}
-
 	/*
 	 * Lock aux/gmbus while we change cdclk in case those
 	 * functions use cdclk. Not all platforms/ports do,
@@ -1990,12 +1983,6 @@ static void intel_set_cdclk(struct drm_i915_private *dev_priv,
 	}
 	mutex_unlock(&dev_priv->gmbus_mutex);
 
-	for_each_intel_encoder_with_psr(&dev_priv->drm, encoder) {
-		struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
-
-		intel_psr_resume(intel_dp);
-	}
-
 	if (drm_WARN(&dev_priv->drm,
 		     intel_cdclk_changed(&dev_priv->cdclk.hw, cdclk_config),
 		     "cdclk state doesn't match!\n")) {
-- 
2.32.0



More information about the Intel-gfx-trybot mailing list