> -----Original Message----- > From: Intel-gfx <intel-gfx-boun...@lists.freedesktop.org> On Behalf Of Ankit > Nautiyal > Sent: 18 August 2025 13:01 > To: intel-gfx@lists.freedesktop.org; intel...@lists.freedesktop.org > Cc: ville.syrj...@linux.intel.com; Nautiyal, Ankit K > <ankit.k.nauti...@intel.com> > Subject: [PATCH 06/12] drm/i915/alpm: Add function to compute max link- > wake latency > > Introduce a helper to compute the max link wake latency when using > Auxless/Aux wake mechanism for PSR/Panel Replay/LOBF features. > > This will be used to compute the minimum guardband so that the link wake > latencies are accounted and these features work smoothly for higher refresh > rate > panels. > > Bspec: 70151, 71477 > Signed-off-by: Ankit Nautiyal <ankit.k.nauti...@intel.com> > --- > drivers/gpu/drm/i915/display/intel_alpm.c | 15 +++++++++++++++ > drivers/gpu/drm/i915/display/intel_alpm.h | 2 ++ > 2 files changed, 17 insertions(+) > > diff --git a/drivers/gpu/drm/i915/display/intel_alpm.c > b/drivers/gpu/drm/i915/display/intel_alpm.c > index dfdde8e4eabe..42b4a0ceb53b 100644 > --- a/drivers/gpu/drm/i915/display/intel_alpm.c > +++ b/drivers/gpu/drm/i915/display/intel_alpm.c > @@ -628,3 +628,18 @@ bool intel_alpm_get_error(struct intel_dp *intel_dp) > > return false; > } > + > +int intel_alpm_compute_max_link_wake_latency(struct intel_crtc_state > *crtc_state, > + bool assume_all_enabled) > +{ > + int psr2_vblank_time = 0; > + int auxless_wake_time = 0; > + > + if (assume_all_enabled || crtc_state->has_sel_update) > + psr2_vblank_time = io_buffer_wake_time(crtc_state); > + > + if (assume_all_enabled || crtc_state->has_panel_replay) > + auxless_wake_time = > +_lnl_compute_aux_less_wake_time(crtc_state->port_clock); > + > + return max(psr2_vblank_time, auxless_wake_time); } > diff --git a/drivers/gpu/drm/i915/display/intel_alpm.h > b/drivers/gpu/drm/i915/display/intel_alpm.h > index a861c20b5d79..8f1db54eecf5 100644 > --- a/drivers/gpu/drm/i915/display/intel_alpm.h > +++ b/drivers/gpu/drm/i915/display/intel_alpm.h > @@ -38,4 +38,6 @@ bool intel_alpm_is_alpm_aux_less(struct intel_dp > *intel_dp, > const struct intel_crtc_state *crtc_state); > void > intel_alpm_disable(struct intel_dp *intel_dp); bool > intel_alpm_get_error(struct > intel_dp *intel_dp); > +int intel_alpm_compute_max_link_wake_latency(struct intel_crtc_state > *crtc_state, > + bool assume_all_enabled); Reviewed-by: Mitul Golani <mitulkumar.ajitkumar.gol...@intel.com> > #endif > -- > 2.45.2
RE: [PATCH 06/12] drm/i915/alpm: Add function to compute max link-wake latency
Golani, Mitulkumar Ajitkumar Mon, 18 Aug 2025 09:55:52 -0700
- ✓ i915.CI.BAT: success for Optimize vrr.guard... Patchwork
- [PATCH 00/12] Optimize vrr.guardband and fix ... Ankit Nautiyal
- [PATCH 01/12] drm/i915/skl_watermark: Fi... Ankit Nautiyal
- [PATCH 02/12] drm/i915/skl_watermark: Pa... Ankit Nautiyal
- [PATCH 03/12] drm/i915/skl_scaler: Intro... Ankit Nautiyal
- [PATCH 05/12] drm/i915/dp: Add SDP laten... Ankit Nautiyal
- RE: [PATCH 05/12] drm/i915/dp: Add S... Golani, Mitulkumar Ajitkumar
- [PATCH 04/12] drm/i915/display: Extract ... Ankit Nautiyal
- RE: [PATCH 04/12] drm/i915/display: ... Golani, Mitulkumar Ajitkumar
- [PATCH 06/12] drm/i915/alpm: Add functio... Ankit Nautiyal
- RE: [PATCH 06/12] drm/i915/alpm: Add... Golani, Mitulkumar Ajitkumar
- [PATCH 07/12] drm/i915/vrr: Use vrr.sync... Ankit Nautiyal
- [PATCH 08/12] drm/i915/display: Add guar... Ankit Nautiyal
- RE: [PATCH 08/12] drm/i915/display: ... Golani, Mitulkumar Ajitkumar
- [PATCH 09/12] drm/i915/skl_watermark: Re... Ankit Nautiyal
- [PATCH 10/12] drm/i915/vrr: Use static g... Ankit Nautiyal
- RE: [PATCH 10/12] drm/i915/vrr: Use ... Golani, Mitulkumar Ajitkumar
- [PATCH 11/12] drm/i915/panel: Refactor h... Ankit Nautiyal
- RE: [PATCH 11/12] drm/i915/panel: Re... Golani, Mitulkumar Ajitkumar
- [PATCH 12/12] drm/i915/vrr: Fix seamless... Ankit Nautiyal
- RE: [PATCH 12/12] drm/i915/vrr: Fix ... Golani, Mitulkumar Ajitkumar