Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Mika Kahola" <mika.kahola@intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v2 4/6] drm/i915/psr: Merge the selective fetch area across joined pipes
Date: Mon, 12 Oct 2026 12:56:10 +0000	[thread overview]
Message-ID: <sashiko-outbox-168133@kernel.org> (raw)
In-Reply-To: <20261012124145.1960050-5-mika.kahola@intel.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] drm/i915/psr: Dead code in psr2_sel_fetch_align_su_area for cursor_in_su_area
--

commit 7a64006c52d0dd79eca20d987ffe7b3c8f8b6c66
Author: Mika Kahola <mika.kahola@intel.com>
Date:   Mon Oct 12 12:41:43 2026 +0000

    drm/i915/psr: Merge the selective fetch area across joined pipes

This commit updates PSR2 selective fetch to handle joined pipes by merging
the selective fetch area across the pipes. It ensures only the primary pipe
programs the transcoder register, and falls back to a full update if a joined
pipe fails area calculation or if no joined pipe has damage.

> diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
> index 0483dad5bdd82..9a57339c004a5 100644
> --- a/drivers/gpu/drm/i915/display/intel_psr.c
> +++ b/drivers/gpu/drm/i915/display/intel_psr.c
[ ... ]
> +static void psr2_sel_fetch_align_su_area(struct intel_atomic_state *state,
> +					 u8 joined_pipes)
> +{
> +	struct intel_display *display = to_intel_display(state);
> +	struct intel_crtc *crtc;
> +	bool su_area_changed;
> +
> +	do {
> +		su_area_changed = false;
> +
> +		for_each_intel_crtc_in_pipe_mask(display, crtc, joined_pipes) {
> +			struct intel_crtc_state *crtc_state =
> +				intel_atomic_get_new_crtc_state(state, crtc);
> +			struct drm_rect display_area = {
> +				.x1 = 0,
> +				.y1 = 0,
> +				.x2 = crtc_state->hw.pipe_mode.crtc_hdisplay,
> +				.y2 = crtc_state->hw.pipe_mode.crtc_vdisplay,
> +			};
> +			struct drm_rect old_su_area = crtc_state->psr2_su_area;
> +			bool cursor_in_su_area = false;
> +
> +			/* Needs the planes already pulled into the state. */
> +			intel_psr2_sel_fetch_et_alignment(state, crtc, &display_area,
> +							  &cursor_in_su_area);
> +

[Severity: Low]
Could the cursor_in_su_area variable and its corresponding parameter in
intel_psr2_sel_fetch_et_alignment() be removed?

The previous implementation used cursor_in_su_area to conditionally break out
of the alignment loop early. Since this patch removes that break condition,
the variable is initialized and populated by intel_psr2_sel_fetch_et_alignment()
but its value is never checked, making it dead code.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261012124145.1960050-1-mika.kahola@intel.com?part=4

  reply	other threads:[~2026-10-12 12:56 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-12 12:41 [PATCH v2 0/6] drm/i915/psr: Panel Replay and PSR2 with the joiner Mika Kahola
2026-10-12 12:41 ` [PATCH v2 1/6] drm/i915/psr: Track all joined pipes for frontbuffer tracking Mika Kahola
2026-10-12 12:41 ` [PATCH v2 2/6] drm/i915/psr: Exclude the joiner secondary from active_non_psr_pipes Mika Kahola
2026-10-12 12:41 ` [PATCH v2 3/6] drm/i915/psr: Take the selective fetch area from pipe_mode Mika Kahola
2026-10-12 12:41 ` [PATCH v2 4/6] drm/i915/psr: Merge the selective fetch area across joined pipes Mika Kahola
2026-10-12 12:56   ` sashiko-bot [this message]
2026-10-13 11:07   ` [PATCH v3 " Mika Kahola
2026-10-13 11:16     ` Mika Kahola
2026-10-12 12:41 ` [PATCH v2 5/6] drm/i915/psr: Allow Panel Replay and PSR2 with joiner Mika Kahola
2026-10-12 12:41 ` [PATCH v2 6/6] drm/i915/display: Allow forcing the joiner on eDP Mika Kahola
2026-10-12 12:52   ` sashiko-bot
2026-10-12 14:35 ` ✓ i915.CI.BAT: success for drm/i915/psr: Panel Replay and PSR2 with the joiner Patchwork
2026-10-12 17:25 ` ✗ i915.CI.Full: failure " Patchwork
2026-10-13 12:08 ` ✓ i915.CI.BAT: success for drm/i915/psr: Panel Replay and PSR2 with the joiner (rev3) Patchwork
2026-10-13 14:09 ` ✗ i915.CI.Full: failure " 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=sashiko-outbox-168133@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