drm/i915/alpm: Calculate ALPM Entry check
authorJouni Högander <jouni.hogander@intel.com>
Tue, 30 Jan 2024 11:11:29 +0000 (13:11 +0200)
committerJouni Högander <jouni.hogander@intel.com>
Wed, 7 Feb 2024 07:58:03 +0000 (09:58 +0200)
commit29f3067a236ac55f245ea8f23712a0d240cf1f30
treeed0a57da22626137c682b806c2834fc3c2356629
parent96a24945731fe9fab4cc7d1063f20a9d4dd4395a
drm/i915/alpm: Calculate ALPM Entry check

ALPM Entry Check represents the number of lines needed to put the main link
to sleep and keep it in the sleep state before it can be taken out of the
SLEEP state (eDP requires the main link to be in the SLEEP state for a
minimum of 5us).

Bspec: 71477

v2: move display version check into _lnl_compute_alpm_param

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240130111130.3298779-4-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_psr.c