From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Mika Kahola <mika.kahola@intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org,
jouni.hogander@intel.com
Subject: Re: [PATCH] drm/i915/display: Leave the PSR frame change to the joiner primary
Date: Fri, 27 Nov 2026 19:18:17 +0200 [thread overview]
Message-ID: <awm7WYkMeMlyjkgr@intel.com> (raw)
In-Reply-To: <20261127160235.3208777-1-mika.kahola@intel.com>
On Fri, Nov 27, 2026 at 04:02:35PM +0000, Mika Kahola wrote:
> 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);
We have a real function somewhere to check if the crtc is the
primary or not. That should be all you need.
But we really need to rewrite all this joiner+psr stuff to do things
in a proper way. Right now all of this is just a hack that provides
no guarantees that things get committed in the right order or that
the push is the last thing we do.
> +
> /*
> * 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
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2026-11-27 17:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Ville Syrjälä [this message]
2026-11-27 17:46 ` ✓ Xe.CI.BAT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awm7WYkMeMlyjkgr@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jouni.hogander@intel.com \
--cc=mika.kahola@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox