]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/psr: Add helper to get min psr guardband
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Fri, 17 Oct 2025 12:35:00 +0000 (18:05 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Sat, 18 Oct 2025 02:11:19 +0000 (07:41 +0530)
commit77fb33cb7ccb7c76e3847795b7ffb29906d14b0b
tree5b24ed7822efa4aa515c5965199700f3ef55fbe7
parentc390bf07961b3a39f3417d75850a4e721b87e595
drm/i915/psr: Add helper to get min psr guardband

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.

v2:
- Account for flag `req_psr2_sdp_prior_scanline` and scl lines while
  computing min guardband. (Jouni)
- Use wake lines only for eDP with panel_replay and sel_update flags
  set. (Jouni)

Bspec: 70151, 71477
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://lore.kernel.org/r/20251017123504.2247954-2-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_psr.c
drivers/gpu/drm/i915/display/intel_psr.h