Skip to content

Commit 85582ad

Browse files
committed
drm/i915/psr: Modify dg2_activate_panel_replay to support eDP
There are couple of bits in PSR2_CTL which needs to be written in case of eDP Panel Replay Bspec: 68920 v2: use boolean instead of assuming eDP Panel Replay mean Early Transport Signed-off-by: Jouni Högander <[email protected]> Reviewed-by: Animesh Manna <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 623ad75 commit 85582ad

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,19 @@ static u8 frames_before_su_entry(struct intel_dp *intel_dp)
951951
static void dg2_activate_panel_replay(struct intel_dp *intel_dp)
952952
{
953953
struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);
954+
struct intel_psr *psr = &intel_dp->psr;
955+
enum transcoder cpu_transcoder = intel_dp->psr.transcoder;
956+
957+
if (intel_dp_is_edp(intel_dp) && psr->sel_update_enabled) {
958+
u32 val = psr->su_region_et_enabled ?
959+
LNL_EDP_PSR2_SU_REGION_ET_ENABLE : 0;
960+
961+
if (intel_dp->psr.req_psr2_sdp_prior_scanline)
962+
val |= EDP_PSR2_SU_SDP_SCANLINE;
963+
964+
intel_de_write(dev_priv, EDP_PSR2_CTL(dev_priv, cpu_transcoder),
965+
val);
966+
}
954967

955968
intel_de_rmw(dev_priv,
956969
PSR2_MAN_TRK_CTL(dev_priv, intel_dp->psr.transcoder),

0 commit comments

Comments
 (0)