From: sashiko-bot@kernel.org
To: "Mika Kahola" <mika.kahola@intel.com>,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/display: Leave the PSR frame change to the joiner primary
Date: Fri, 27 Nov 2026 16:21:27 +0000 [thread overview]
Message-ID: <sashiko-outbox-237871@kernel.org> (raw)
In-Reply-To: <20261127160235.3208777-1-mika.kahola@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/i915/display: unguarded intel_vrr_send_push() on joiner
secondary
--
commit 05528a5f86f8437e1527e9f06b9d3d7e6f314404
Author: Mika Kahola <mika.kahola@intel.com>
drm/i915/display: Leave the PSR frame change to the joiner primary
This commit skips intel_vrr_send_push() and intel_psr_wait_for_idle_dsb()
on a joiner secondary CRTC in intel_atomic_dsb_finish() when the joiner
primary CRTC is part of the same atomic commit.
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index 19caae633d29f..f9d0a5972feb4 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);
[Severity: Medium]
Should intel_crtc_is_joiner_secondary() be checked directly inside
intel_vrr_send_push() and intel_psr_wait_for_idle_dsb() (similar to
intel_psr2_program_trans_man_trk_ctl())?
Guarding the calls only in this branch leaves two other commit paths
calling intel_vrr_send_push() on the joiner secondary:
1. When intel_color_uses_chained_dsb() is true (such as LUT updates on
DISPLAY_VER == 20), intel_color_prepare_commit() still calls
intel_vrr_send_push(crtc_state->dsb_color, crtc_state) on the
secondary's color DSB.
2. On INTEL_COMMIT_MMIO commits, skl_commit_modeset_enables() commits
pipes in reverse order, so intel_pipe_update_end() on the joiner
secondary calls intel_vrr_send_push(NULL, new_crtc_state) and
triggers the PSR frame change on the shared primary transcoder before
the primary CRTC has programmed PSR2_MAN_TRK_CTL or armed its planes.
Since intel_joiner_add_affected_crtcs() always adds all joined pipes to
the atomic state, bailing out on intel_crtc_is_joiner_secondary() inside
intel_vrr_send_push() and intel_psr_wait_for_idle_dsb() would cover all
commit paths.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261127160235.3208777-1-mika.kahola@intel.com?part=1
prev parent reply other threads:[~2026-11-27 16:21 UTC|newest]
Thread overview: 2+ 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 [this message]
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=sashiko-outbox-237871@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=mika.kahola@intel.com \
--cc=sashiko-reviews@lists.linux.dev \
/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