[PATCH] drm/i915: Suspend resume timing optimization.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Abhay Kumar <abhay.kumar@xxxxxxxxx>

Moving 250ms from T12 timing to suspend path so that
resume path will be faster.

Signed-off-by: Abhay Kumar <abhay.kumar@xxxxxxxxx>
---
 drivers/gpu/drm/i915/intel_ddi.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
index 7f618cf..2679c9e 100644
--- a/drivers/gpu/drm/i915/intel_ddi.c
+++ b/drivers/gpu/drm/i915/intel_ddi.c
@@ -2389,6 +2389,12 @@ static void intel_ddi_post_disable(struct intel_encoder *intel_encoder)
 		intel_dp_sink_dpms(intel_dp, DRM_MODE_DPMS_OFF);
 		intel_edp_panel_vdd_on(intel_dp);
 		intel_edp_panel_off(intel_dp);
+
+		/* Give additional delay of 250 ms so that resume time will
+		   be faster and also meets T12 delay.
+		*/
+		wait_remaining_ms_from_jiffies(intel_dp->last_power_cycle,
+                                      (intel_dp->panel_power_cycle_delay/2));
 	}
 
 	if (IS_SKYLAKE(dev) || IS_KABYLAKE(dev))
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux