diff mbox series

[2/3] drm/i915/dc3co: Check for DC3C0 exit state instead of sleep

Message ID 20191101001422.209326-2-jose.souza@intel.com (mailing list archive)
State New, archived
Headers show
Series [1/3] drm/i915/psr: Share the computation of idle frames | expand

Commit Message

Souza, Jose Nov. 1, 2019, 12:14 a.m. UTC
DC3C0 could have already exit so no need to always sleep, so lets
read the register with the state.

Cc: Imre Deak <imre.deak@intel.com>
Cc: Anshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
 drivers/gpu/drm/i915/display/intel_display_power.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_display_power.c b/drivers/gpu/drm/i915/display/intel_display_power.c
index 707ac110e271..00037c529a33 100644
--- a/drivers/gpu/drm/i915/display/intel_display_power.c
+++ b/drivers/gpu/drm/i915/display/intel_display_power.c
@@ -812,7 +812,7 @@  static void tgl_disable_dc3co(struct drm_i915_private *dev_priv)
 	/*
 	 * Delay of 200us DC3CO Exit time B.Spec 49196
 	 */
-	usleep_range(200, 210);
+	intel_de_wait_for_set(dev_priv, DC_STATE_EN, DC_STATE_DC3CO_STATUS, 1);
 }
 
 static void bxt_enable_dc9(struct drm_i915_private *dev_priv)