mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
drm/i915/display: Enable DC3CO idle protocol in ALPM
Add PR_ALPM_CTL_USE_DC3CO_IDLE_PROTOCOL bit definition and set it when DC3CO is allowed. Changes in v2: - Squash "Define DC3CO idle protocol bit in PR_ALPM_CTL" into this patch (Uma Shankar) - Use intel_display_power_dc3co_allowed(display) instead of intel_dc3co_allowed(state) Changes in v3: - check only intel_display_power_dc3co_allowed() before wiriting PR_ALPM_CTL_USE_DC3CO_IDLE_PROTOCOL (Jani Nikula) BSpec: 75253 Signed-off-by: Dibin Moolakadan Subrahmanian <dibin.moolakadan.subrahmanian@intel.com> Reviewed-by: Uma Shankar <uma.shankar@intel.com> Reviewed-by: Animesh Manna <animesh.manna@intel.com> Signed-off-by: Animesh Manna <animesh.manna@intel.com> Link: https://patch.msgid.link/20260616162154.2630995-12-dibin.moolakadan.subrahmanian@intel.com
This commit is contained in:
parent
c525b2f81d
commit
645a651450
|
|
@ -407,6 +407,11 @@ static void lnl_alpm_configure(struct intel_dp *intel_dp,
|
|||
if (crtc_state->disable_as_sdp_when_pr_active)
|
||||
pr_alpm_ctl |= PR_ALPM_CTL_AS_SDP_TRANSMISSION_IN_ACTIVE_DISABLE;
|
||||
|
||||
if (intel_display_power_dc3co_allowed(display))
|
||||
pr_alpm_ctl |= PR_ALPM_CTL_USE_DC3CO_IDLE_PROTOCOL;
|
||||
else
|
||||
pr_alpm_ctl &= ~PR_ALPM_CTL_USE_DC3CO_IDLE_PROTOCOL;
|
||||
|
||||
intel_de_write(display, PR_ALPM_CTL(display, cpu_transcoder),
|
||||
pr_alpm_ctl);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -268,6 +268,7 @@
|
|||
|
||||
#define _PR_ALPM_CTL_A 0x60948
|
||||
#define PR_ALPM_CTL(dev_priv, tran) _MMIO_TRANS2(dev_priv, tran, _PR_ALPM_CTL_A)
|
||||
#define PR_ALPM_CTL_USE_DC3CO_IDLE_PROTOCOL BIT(7)
|
||||
#define PR_ALPM_CTL_ALLOW_LINK_OFF_BETWEEN_AS_SDP_AND_SU BIT(6)
|
||||
#define PR_ALPM_CTL_RFB_UPDATE_CONTROL BIT(5)
|
||||
#define PR_ALPM_CTL_AS_SDP_TRANSMISSION_IN_ACTIVE_DISABLE BIT(4)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user