All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/alpm: Fix tCDS multiplier in AUX-less wake time
@ 2026-12-03  3:46 Lee Shawn C
  2026-12-03  3:58 ` sashiko-bot
                   ` (9 more replies)
  0 siblings, 10 replies; 16+ messages in thread
From: Lee Shawn C @ 2026-12-03  3:46 UTC (permalink / raw)
  To: intel-gfx; +Cc: Lee Shawn C, Ankit Nautiyal, Jouni Högander

eDP 1.5 Figure 5-8 shows the CDS period as 2 x t2.
Use it in the wake time calculation instead of 1 x t2.

Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Cc: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Lee Shawn C <shawn.c.lee@intel.com>
---
 drivers/gpu/drm/i915/display/intel_alpm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_alpm.c b/drivers/gpu/drm/i915/display/intel_alpm.c
index 105006ca6be7..897b24c7fafd 100644
--- a/drivers/gpu/drm/i915/display/intel_alpm.c
+++ b/drivers/gpu/drm/i915/display/intel_alpm.c
@@ -92,7 +92,7 @@ static int get_lfps_half_cycle_clocks(const struct intel_crtc_state *crtc_state)
  * The tLFPS_Period, Max term is 800ns
  * The tSilence, Max term is 180ns
  * The tPHY Establishment (a.k.a. t1) term is 50us
- * The tCDS term is 1 or 2 times t2
+ * The tCDS term is 2 times t2, it can be configurable
  * t2 = Number ML_PHY_LOCK * tML_PHY_LOCK
  * Number ML_PHY_LOCK = ( 7 + CEILING( 6.5us / tML_PHY_LOCK ) + 1)
  * Rounding up the 6.5us padding to the next ML_PHY_LOCK boundary and
@@ -111,7 +111,7 @@ static int _lnl_compute_aux_less_wake_time(const struct intel_crtc_state *crtc_s
 	int tml_phy_lock = 1000 * 1000 * tps4 / crtc_state->port_clock;
 	int num_ml_phy_lock = 7 + DIV_ROUND_UP(6500, tml_phy_lock) + 1;
 	int t2 = num_ml_phy_lock * tml_phy_lock;
-	int tcds = 1 * t2;
+	int tcds = 2 * t2;
 
 	return DIV_ROUND_UP(tphy2_p2_to_p0 + get_lfps_cycle_time(crtc_state) +
 			    SILENCE_PERIOD_TIME + t1 + tcds, 1000);
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-12-04  8:24 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  3:46 [PATCH] drm/i915/alpm: Fix tCDS multiplier in AUX-less wake time Lee Shawn C
2026-12-03  3:58 ` sashiko-bot
2026-12-03  4:12 ` [PATCH v2] " Lee Shawn C
2026-12-03  6:07   ` Hogander, Jouni
2026-12-03  7:00     ` Lee, Shawn C
2026-12-03  7:32       ` Hogander, Jouni
2026-12-03  8:07         ` Nautiyal, Ankit K
2026-12-03  4:31 ` ✓ CI.KUnit: success for " Patchwork
2026-12-03  4:33 ` ✓ i915.CI.BAT: " Patchwork
2026-12-03  5:02 ` ✓ i915.CI.BAT: success for drm/i915/alpm: Fix tCDS multiplier in AUX-less wake time (rev2) Patchwork
2026-12-03  5:05 ` ✓ Xe.CI.BAT: success for drm/i915/alpm: Fix tCDS multiplier in AUX-less wake time Patchwork
2026-12-03 10:38 ` [PATCH v3] " Lee Shawn C
2026-12-04  8:24   ` Hogander, Jouni
2026-12-03 12:02 ` ✓ i915.CI.BAT: success for drm/i915/alpm: Fix tCDS multiplier in AUX-less wake time (rev3) Patchwork
2026-12-03 23:56 ` ✓ i915.CI.Full: " Patchwork
2026-12-04  1:57 ` ✓ Xe.CI.FULL: success for drm/i915/alpm: Fix tCDS multiplier in AUX-less wake time Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.