drm/i915/psr: Calculate aux less wake time
authorJouni Högander <jouni.hogander@intel.com>
Thu, 28 Mar 2024 14:19:25 +0000 (16:19 +0200)
committerJouni Högander <jouni.hogander@intel.com>
Tue, 2 Apr 2024 09:15:43 +0000 (12:15 +0300)
commitda6a9836ac090403e7ffa59e47b4b8c70386d064
treecf62577ca3dd96330e3412a46e19a6c46f9141d8
parent295099580f0464759c4e3649062272ca64d5d992
drm/i915/psr: Calculate aux less wake time

Calculate aux less wake time and store it into alpm_params struct

Bspec: 71477

v4:
  - re-use fast_wake_lines to store aux_less_wake_lines
v3:
  - use ALPM_CTL_AUX_LESS_WAKE_TIME_MASK instead of value 63
v2:
  - use variables instead of values directly
  - fix max value
  - move converting port clock to Mhz into _lnl_compute_aux_less_wake_time

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240328141928.1311284-3-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_psr.c