Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/display: Leave the PSR frame change to the joiner primary
@ 2026-11-27 16:02 Mika Kahola
  2026-11-27 16:21 ` sashiko-bot
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Mika Kahola @ 2026-11-27 16:02 UTC (permalink / raw)
  To: intel-gfx, intel-xe; +Cc: jouni.hogander, Mika Kahola

With PSR2 on joined pipes the secondary's DSB also sends the trans push
and polls the PSR2 status of the primary's transcoder. The poll gets no
response and the DSB times out:

 [CRTC:354:pipe B] DSB 0 response timeout
 [CRTC:354:pipe B] DSB 0 timed out waiting for idle (current head=0x140, head=0x0, tail=0x180)

Both are per transcoder and the primary already does them. Skip them
on the secondary when the primary is in the same commit.

Signed-off-by: Mika Kahola <mika.kahola@intel.com>
---
 drivers/gpu/drm/i915/display/intel_display.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index 19caae633d29..f9d0a5972feb 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -7649,6 +7649,11 @@ static void intel_atomic_dsb_finish(struct intel_atomic_state *state,
 
 	if (new_crtc_state->commit_type == INTEL_COMMIT_DSB &&
 	    !intel_color_uses_chained_dsb(new_crtc_state)) {
+		struct intel_crtc *primary_crtc = intel_primary_crtc(new_crtc_state);
+		/* One transcoder: the joiner primary pushes and waits for PSR */
+		bool via_primary = primary_crtc != crtc &&
+			intel_atomic_get_new_crtc_state(state, primary_crtc);
+
 		/*
 		 * Dsb wait vblank may or may not skip. Let's remove it for PSR
 		 * trans push case to ensure we are not waiting two vblanks
@@ -7656,7 +7661,8 @@ static void intel_atomic_dsb_finish(struct intel_atomic_state *state,
 		if (!intel_psr_use_trans_push(new_crtc_state))
 			intel_dsb_wait_vblanks(new_crtc_state->dsb_commit, 1);
 
-		intel_vrr_send_push(new_crtc_state->dsb_commit, new_crtc_state);
+		if (!via_primary)
+			intel_vrr_send_push(new_crtc_state->dsb_commit, new_crtc_state);
 
 		/*
 		 * Wait for idle is needed for corner case where PSR HW
@@ -7665,8 +7671,9 @@ static void intel_atomic_dsb_finish(struct intel_atomic_state *state,
 		 * here for both Frame Change mechanism (trans push
 		 * and register write).
 		 */
-		intel_psr_wait_for_idle_dsb(new_crtc_state->dsb_commit,
-					    new_crtc_state);
+		if (!via_primary)
+			intel_psr_wait_for_idle_dsb(new_crtc_state->dsb_commit,
+						    new_crtc_state);
 
 		/*
 		 * In case PSR uses trans push as a "frame change" event and
-- 
2.43.0


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

end of thread, other threads:[~2026-11-27 17:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 16:02 [PATCH] drm/i915/display: Leave the PSR frame change to the joiner primary Mika Kahola
2026-11-27 16:21 ` sashiko-bot
2026-11-27 16:58 ` ✗ CI.checkpatch: warning for " Patchwork
2026-11-27 17:00 ` ✓ CI.KUnit: success " Patchwork
2026-11-27 17:18 ` [PATCH] " Ville Syrjälä
2026-11-27 17:46 ` ✓ Xe.CI.BAT: success for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox