All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/panelreplay: Panel replay workaround with VRR
@ 2024-02-07 14:35 Animesh Manna
  2024-02-07 15:34 ` Hogander, Jouni
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Animesh Manna @ 2024-02-07 14:35 UTC (permalink / raw)
  To: intel-gfx; +Cc: jouni.hogander, arun.r.murthy, Animesh Manna

Panel Replay VSC SDP not getting sent when VRR is enabled
and W1 and W2 are 0. So Program Set Context Latency in
TRANS_SET_CONTEXT_LATENCY register to at least a value of 1.

Signed-off-by: Animesh Manna <animesh.manna@intel.com>
---
 drivers/gpu/drm/i915/display/intel_display.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index 1b844cac4c58..c1ec78b5b6c5 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -2618,8 +2618,16 @@ static void intel_set_transcoder_timings(const struct intel_crtc_state *crtc_sta
 	 * TRANS_SET_CONTEXT_LATENCY to configure the pipe vblank start.
 	 */
 	if (DISPLAY_VER(dev_priv) >= 13) {
-		intel_de_write(dev_priv, TRANS_SET_CONTEXT_LATENCY(cpu_transcoder),
-			       crtc_vblank_start - crtc_vdisplay);
+		/*
+		 * WA: Program Set Context Latency in TRANS_SET_CONTEXT_LATENCY register
+		 * to at least a value of 1 when Panel Replay is enabled with VRR.
+		 */
+		if (crtc_state->vrr.enable &&  crtc_state->has_panel_replay &&
+		    (crtc_vblank_start == crtc_vdisplay))
+			intel_de_write(dev_priv, TRANS_SET_CONTEXT_LATENCY(cpu_transcoder), 1);
+		else
+			intel_de_write(dev_priv, TRANS_SET_CONTEXT_LATENCY(cpu_transcoder),
+				       crtc_vblank_start - crtc_vdisplay);
 
 		/*
 		 * VBLANK_START not used by hw, just clear it
-- 
2.29.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-02-07 17:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-07 14:35 [PATCH] drm/i915/panelreplay: Panel replay workaround with VRR Animesh Manna
2024-02-07 15:34 ` Hogander, Jouni
2024-02-07 15:37 ` Ville Syrjälä
2024-02-07 16:56 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2024-02-07 17:14 ` ✗ Fi.CI.BAT: failure " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.