Skip to content

Commit 449c2d5

Browse files
committed
drm/i915/alpm: Alpm aux wake configuration for lnl
Lunarlake has some configurations in ALPM_CTL register for legacy ALPM as well. Write these. Bspec: 71477 v2: move version check to lnl_alpm_configure 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-5-jouni.hogander@intel.com
1 parent 29f3067 commit 449c2d5

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

drivers/gpu/drm/i915/display/intel_psr.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,6 +1554,21 @@ static void wm_optimization_wa(struct intel_dp *intel_dp,
15541554
wa_16013835468_bit_get(intel_dp), 0);
15551555
}
15561556

1557+
static void lnl_alpm_configure(struct intel_dp *intel_dp)
1558+
{
1559+
struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);
1560+
enum transcoder cpu_transcoder = intel_dp->psr.transcoder;
1561+
struct intel_psr *psr = &intel_dp->psr;
1562+
1563+
if (DISPLAY_VER(dev_priv) < 20)
1564+
return;
1565+
1566+
intel_de_write(dev_priv, ALPM_CTL(cpu_transcoder),
1567+
ALPM_CTL_EXTENDED_FAST_WAKE_ENABLE |
1568+
ALPM_CTL_ALPM_ENTRY_CHECK(psr->alpm_parameters.check_entry_lines) |
1569+
ALPM_CTL_EXTENDED_FAST_WAKE_TIME(psr->alpm_parameters.fast_wake_lines));
1570+
}
1571+
15571572
static void intel_psr_enable_source(struct intel_dp *intel_dp,
15581573
const struct intel_crtc_state *crtc_state)
15591574
{
@@ -1619,6 +1634,8 @@ static void intel_psr_enable_source(struct intel_dp *intel_dp,
16191634
intel_dp->psr.psr2_sel_fetch_enabled ?
16201635
IGNORE_PSR2_HW_TRACKING : 0);
16211636

1637+
lnl_alpm_configure(intel_dp);
1638+
16221639
/*
16231640
* Wa_16013835468
16241641
* Wa_14015648006

0 commit comments

Comments
 (0)