[PATCH 2/3] drm/i915/dp: Set panel power cycle delay to 500ms instead of current 400ms

Manasi Navare manasi.d.navare at intel.com
Wed Jun 21 00:13:08 UTC 2017


Also fix the hW readout to fix pps mismatch warning

Signed-off-by: Manasi Navare <manasi.d.navare at intel.com>
---
 drivers/gpu/drm/i915/intel_dp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 22f7014..9ee851e 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -5188,8 +5188,8 @@ intel_pps_readout_hw_state(struct drm_i915_private *dev_priv,
 		else
 			seq->t11_t12 = 0;
 	} else {
-		seq->t11_t12 = ((pp_div & PANEL_POWER_CYCLE_DELAY_MASK) >>
-		       PANEL_POWER_CYCLE_DELAY_SHIFT) * 1000;
+		seq->t11_t12 = (((pp_div & PANEL_POWER_CYCLE_DELAY_MASK) >>
+				 PANEL_POWER_CYCLE_DELAY_SHIFT) - 1) * 1000;
 	}
 }
 
@@ -5345,7 +5345,7 @@ intel_dp_init_panel_power_sequencer_registers(struct drm_device *dev,
 				<< BXT_POWER_CYCLE_DELAY_SHIFT);
 	} else {
 		pp_div = ((100 * div)/2 - 1) << PP_REFERENCE_DIVIDER_SHIFT;
-		pp_div |= (DIV_ROUND_UP(seq->t11_t12, 1000)
+		pp_div |= (DIV_ROUND_UP((seq->t11_t12 + 1), 1000)
 				<< PANEL_POWER_CYCLE_DELAY_SHIFT);
 	}
 
-- 
2.1.4



More information about the Intel-gfx-trybot mailing list