From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 07706606A32C for ; Thu, 3 Dec 2026 14:54:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CGPM4LaB Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BF56111296D; Thu, 3 Dec 2026 14:54:52 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id CA94B11296A; Thu, 3 Dec 2026 14:54:46 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 0ABBD61E2D; Thu, 3 Dec 2026 14:54:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0AAC1F0089A; Thu, 3 Dec 2026 14:54:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796309685; bh=ejYeUD+m5qXwO7yvk3+XHdeZILxyzZVHKwO9+2gsgQk=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=CGPM4LaBCTrqRF0bP6Orzhw5f1vvjYy+NpumxrYfVG+Erx7Q9LmsXhg0MV2EijJIK 6PbUozxtyKkVQxysdzJLJ1OCLRNyG40QAI5gwqpGMuNA5ORlaEOcBgRBoE1sXlX2Y2 xSugy7i3lzmG3efM+KywbFLtzakpPlSW7YDuDyH3bki4gaqFGLbiEccVOSCoGrJQoU 2XsmieDtZD3KPWtv1Dj/C8BemLXyz/FDEWOcGnSKlPwo2KteSQCBP5D7yUbxNxfeAY PHjx550nIQ7F7alLtIzb56NESlgYZJJlgLjVhdVL6SyWqkrIB9t/69EF2/rboqmzlc mHRbD3GY/7jeg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] drm/i915/psr: Allow PSR1 with joiner on display ver 35+ To: =?utf-8?b?Sm91bmkgSMO2Z2FuZGVy?= , intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org In-Reply-To: <20261203142101.2040686-1-jouni.hogander@intel.com> References: <20261203142101.2040686-1-jouni.hogander@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 14:54:45 +0000 X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "Intel-xe" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: 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=C3=B6gander 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/i= 915/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 *inte= l_dp, > =20 > crtc_state->has_sel_update =3D intel_sel_update_config_valid(crtc_state= , conn_state); > =20 > - /* 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 =3D false; > crtc_state->enable_psr2_sel_fetch =3D false; > =20 > - /* 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 =3D 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203142101.2040= 686-1-jouni.hogander@intel.com?part=3D1