From: sashiko-bot@kernel.org
To: "Jouni Högander" <jouni.hogander@intel.com>,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/psr: Allow PSR1 with joiner on display ver 35+
Date: Thu, 03 Dec 2026 14:54:45 +0000 [thread overview]
Message-ID: <sashiko-outbox-248026@kernel.org> (raw)
In-Reply-To: <20261203142101.2040686-1-jouni.hogander@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/i915/psr: missing joined pipe A/B check when enabling
PSR1 on ver 35+
--
commit 390208f3f2e76a149f5f5599bb82e11757699fe4
Author: Jouni Högander <jouni.hogander@intel.com>
drm/i915/psr: Allow PSR1 with joiner on display ver 35+
This commit restricts the joiner PSR1 rejection in
intel_psr_compute_config() and intel_psr_compute_config_late() to display
versions before 35, allowing plain PSR1 with joined pipes on display
version 35 and later.
> diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
> index bd16563603249..7b86a328f8ad2 100644
> --- a/drivers/gpu/drm/i915/display/intel_psr.c
> +++ b/drivers/gpu/drm/i915/display/intel_psr.c
> @@ -1909,8 +1909,9 @@ void intel_psr_compute_config(struct intel_dp *intel_dp,
>
> crtc_state->has_sel_update = intel_sel_update_config_valid(crtc_state, conn_state);
>
> - /* Plain PSR1 is not supported with joiner. */
> - if (crtc_state->joiner_pipes && !crtc_state->has_panel_replay &&
> + /* Plain PSR1 is not supported with joiner before display version 35. */
> + if (DISPLAY_VER(display) < 35 && crtc_state->joiner_pipes &&
> + !crtc_state->has_panel_replay &&
> !crtc_state->has_sel_update) {
> drm_dbg_kms(display->drm,
> "PSR disabled, PSR1 not supported with joiner\n");
> @@ -4762,8 +4763,8 @@ void intel_psr_compute_config_late(struct intel_dp *intel_dp,
> crtc_state->enable_psr2_su_region_et = false;
> crtc_state->enable_psr2_sel_fetch = false;
>
> - /* Plain PSR1 is not supported with joiner. */
> - if (crtc_state->joiner_pipes)
> + /* Plain PSR1 is not supported with joiner before display version 35. */
> + if (DISPLAY_VER(display) < 35 && crtc_state->joiner_pipes)
> crtc_state->has_psr = false;
> }
[Severity: Medium]
Does allowing plain PSR1 with joiner on display version 35+ miss a check
that all joined pipes are within PIPE_A and PIPE_B?
On 4-pipe display version 35, 2-pipe joiner can use pipes B+C or C+D.
_panel_replay_compute_config() rejects masks outside PIPE_A | PIPE_B per
82a273802e29 ("drm/i915/psr: Allow Panel Replay and PSR2 with joiner")
because pipe C has no PSR/Panel Replay register block.
intel_psr_compute_config() then falls through to _psr_compute_config(),
which has no pipe check, leaving has_psr set for plain PSR1 in both paths
above. Programming PSR1 on joined pipes extending onto pipe C or D risks
unclaimed register accesses or display corruption.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203142101.2040686-1-jouni.hogander@intel.com?part=1
prev parent reply other threads:[~2026-12-03 14:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 14:21 [PATCH] drm/i915/psr: Allow PSR1 with joiner on display ver 35+ Jouni Högander
2026-12-03 14:54 ` 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-248026@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jouni.hogander@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