]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/alpm: Compute ALPM parameters into crtc_state->alpm_state
authorJouni Högander <jouni.hogander@intel.com>
Mon, 29 Sep 2025 13:00:02 +0000 (16:00 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Thu, 9 Oct 2025 06:06:13 +0000 (09:06 +0300)
commit2bc98c6f97afaa55d7d1d3b66ea850166180d4fa
treee9e32610a797990ca84251cc0fc4796b7615c0ac
parent32fdf8f418d74da3e22a2c1319285010192edc73
drm/i915/alpm: Compute ALPM parameters into crtc_state->alpm_state

Currently ALPM parameters are computed directly into
intel_dp->alpm_parameters. This is a problem when compute config ends up to
not using the computed state.

Fix this by adding ALPM parameters into intel_crtc_state and compute into
there. Copy needed parameters (io_wake_lines and fast_wake_lines used by
PSR activate/exit) from crtc_state->alpm_state into
intel_dp->alpm.alpm_parameters when they are configured into HW.

v3:
  - enhance commit message
v2:
  - store io/fast wake lines into intel_dp->dp instead of
    intel_dp->alpm_parameters and do it in intel_psr_enable_locked
  - rename crtc_state->alpm_parameters -> crtc_state->alpm_state
  - clarify commit message

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Link: https://lore.kernel.org/r/20250929130003.28365-1-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_alpm.c
drivers/gpu/drm/i915/display/intel_alpm.h
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_psr.c