Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] drm/i915/display: Leave the PSR frame change to the joiner primary
@ 2026-12-03  8:45 Mika Kahola
  2026-12-03  9:18 ` sashiko-bot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mika Kahola @ 2026-12-03  8:45 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. Do it in intel_vrr_send_push() and
intel_psr_wait_for_idle_dsb() so that the color DSB and the MMIO commit
are covered too. The color DSB of the secondary fails the same way:

 [CRTC:354:pipe B] DSB 1 response timeout

v2: Use intel_crtc_is_joiner_secondary() (Ville)
    Check inside intel_vrr_send_push() and
    intel_psr_wait_for_idle_dsb() (Sashiko)

Signed-off-by: Mika Kahola <mika.kahola@intel.com>
---
 drivers/gpu/drm/i915/display/intel_psr.c | 4 ++++
 drivers/gpu/drm/i915/display/intel_vrr.c | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
index d3c7d18feff4..7576017ec57d 100644
--- a/drivers/gpu/drm/i915/display/intel_psr.c
+++ b/drivers/gpu/drm/i915/display/intel_psr.c
@@ -3514,6 +3514,10 @@ void intel_psr_wait_for_idle_dsb(struct intel_dsb *dsb,
 	if (!new_crtc_state->has_psr || new_crtc_state->has_panel_replay)
 		return;
 
+	/* The joined pipes drive one transcoder, so wait once from the primary. */
+	if (intel_crtc_is_joiner_secondary(new_crtc_state))
+		return;
+
 	if (new_crtc_state->has_sel_update)
 		_psr2_ready_for_pipe_update_locked(new_crtc_state, dsb);
 	else
diff --git a/drivers/gpu/drm/i915/display/intel_vrr.c b/drivers/gpu/drm/i915/display/intel_vrr.c
index e59345bd1d33..dc207b7b7e9c 100644
--- a/drivers/gpu/drm/i915/display/intel_vrr.c
+++ b/drivers/gpu/drm/i915/display/intel_vrr.c
@@ -773,6 +773,10 @@ void intel_vrr_send_push(struct intel_dsb *dsb,
 	if (!crtc_state->vrr.enable && !intel_psr_use_trans_push(crtc_state))
 		return;
 
+	/* The joined pipes drive one transcoder, so push once from the primary. */
+	if (intel_crtc_is_joiner_secondary(crtc_state))
+		return;
+
 	if (dsb)
 		intel_dsb_nonpost_start(dsb);
 
-- 
2.43.0


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

end of thread, other threads:[~2026-12-03 10:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  8:45 [PATCH v2] drm/i915/display: Leave the PSR frame change to the joiner primary Mika Kahola
2026-12-03  9:18 ` sashiko-bot
2026-12-03  9:48 ` ✗ Fi.CI.DOCS: warning for drm/i915/display: Leave the PSR frame change to the joiner primary (rev2) Patchwork
2026-12-03 10:12 ` ✓ i915.CI.BAT: success " Patchwork

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