From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"Lee, Shawn C" <shawn.c.lee@intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Cc: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
Subject: Re: [PATCH v2] drm/i915/alpm: Fix tCDS multiplier in AUX-less wake time
Date: Thu, 3 Dec 2026 06:07:23 +0000 [thread overview]
Message-ID: <081499f6cd9d2c0281f82d286426adae9e11ca46.camel@intel.com> (raw)
In-Reply-To: <20261203041208.583013-1-shawn.c.lee@intel.com>
On Thu, 2026-12-03 at 04:12 +0000, Lee Shawn C wrote:
> 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.
>
> v2: Add Fixes tag
This is a good catch. There is a "Period of CDS Phase" in sink ALPM
configuration register. Have you tested if it helps to set that as 1
(1xt2) instead of switching to 2*t2? I assume this is fixing the issue
where increasing AUX Less waketime by 1 lines helps.
BR,
Jouni Högander
>
> Fixes: da6a9836ac09 ("drm/i915/psr: Calculate aux less wake time")
> 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);
next prev parent reply other threads:[~2026-12-03 6:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261203034645.582597-1-shawn.c.lee@intel.com>
2026-12-03 4:12 ` [PATCH v2] drm/i915/alpm: Fix tCDS multiplier in AUX-less wake time Lee Shawn C
2026-12-03 6:07 ` Hogander, Jouni [this message]
2026-12-03 4:31 ` ✓ CI.KUnit: success for " Patchwork
2026-12-03 5:05 ` ✓ Xe.CI.BAT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=081499f6cd9d2c0281f82d286426adae9e11ca46.camel@intel.com \
--to=jouni.hogander@intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=shawn.c.lee@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox