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 07:32:42 +0000 [thread overview]
Message-ID: <4164b57d4669c0ed905b97ea9c36d66eacdd2de7.camel@intel.com> (raw)
In-Reply-To: <CH0PR11MB5378532E39FD870AF51988EDA34B2@CH0PR11MB5378.namprd11.prod.outlook.com>
On Thu, 2026-12-03 at 07:00 +0000, Lee, Shawn C wrote:
> On Thursday, December 3, 2026 2:07 PM, Thu, Hogander, Jouni wrote:
> > 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
> >
>
> Yes, I tried setting DPCD 0x116 bit 3 to 1 (1 x t2 on sink), with the
> wake time calculated using 1 x t2.
> The panel still flickers on Panel Replay enter/exit.
>
> With the wake time calculated with 2 x t2, the flicker is gone. From
> my point of view, 2 x t2 adds a bit more AUX-less wake time,
> but it gives better compatibility with the panel.
Ok, thank you for the confirmation. Lets use this one then:
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
>
> Best regards,
> Shawn
>
> > >
> > > 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 7:32 UTC|newest]
Thread overview: 7+ 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
2026-12-03 7:00 ` Lee, Shawn C
2026-12-03 7:32 ` Hogander, Jouni [this message]
2026-12-03 8:07 ` Nautiyal, Ankit K
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=4164b57d4669c0ed905b97ea9c36d66eacdd2de7.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