From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: Animesh Manna <animesh.manna@intel.com>,
<intel-gfx@lists.freedesktop.org>,
<intel-xe@lists.freedesktop.org>
Cc: <jouni.hogander@intel.com>, <stable@vger.kernel.org>
Subject: Re: [PATCH] drm/i915/alpm: Fix swapped wake lines in LOBF late config
Date: Thu, 3 Sep 2026 19:18:38 +0530 [thread overview]
Message-ID: <f649d0c2-d833-41bf-96de-d13865595d0c@intel.com> (raw)
In-Reply-To: <20260825055239.3455987-1-animesh.manna@intel.com>
On 8/25/2026 11:22 AM, Animesh Manna wrote:
> intel_alpm_lobf_compute_config_late() selected the main-link wake time
> with the two cases inverted: when aux-less wake was supported it used the
> aux-wake io_wake_lines, and otherwise the aux_less_wake_lines. This is the
> opposite of the mapping used in intel_psr_compute_config_late() and of the
> underlying meaning of the two values.
>
> As a result the LOBF enable decision (scl + guardband > first_sdp_position
> + waketime_in_lines) was computed against the wrong wake time, so LOBF
> could be enabled or rejected incorrectly.
>
> Use aux_less_wake_lines when aux-less wake is supported and io_wake_lines
> otherwise, matching the PSR path.
>
> Cc: Jouni Högander <jouni.hogander@intel.com>
> Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com
> Cc: stable@vger.kernel.org
> Fixes: 9090fa44a6d45 ("drm/i915/alpm: Compute LOBF late after guardband is already determined")
I think the fixes should be below commit:
Fixes: 15438b325987 ("drm/i915/alpm: Add compute config for lobf")
Cc: <stable@vger.kernel.org> # v6.11+
Regards,
Ankit
> Assisted-by: Claude:claude-opus-4-8
> Signed-off-by: Animesh Manna <animesh.manna@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_alpm.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_alpm.c b/drivers/gpu/drm/i915/display/intel_alpm.c
> index f1383764b702..559fe6d14c01 100644
> --- a/drivers/gpu/drm/i915/display/intel_alpm.c
> +++ b/drivers/gpu/drm/i915/display/intel_alpm.c
> @@ -314,9 +314,9 @@ void intel_alpm_lobf_compute_config_late(struct intel_dp *intel_dp,
> */
> first_sdp_position = adjusted_mode->crtc_vtotal - adjusted_mode->crtc_vsync_start;
> if (intel_alpm_aux_less_wake_supported(intel_dp))
> - waketime_in_lines = crtc_state->alpm_state.io_wake_lines;
> - else
> waketime_in_lines = crtc_state->alpm_state.aux_less_wake_lines;
> + else
> + waketime_in_lines = crtc_state->alpm_state.io_wake_lines;
>
> crtc_state->has_lobf = (crtc_state->set_context_latency + crtc_state->vrr.guardband) >
> (first_sdp_position + waketime_in_lines);
prev parent reply other threads:[~2026-09-03 13:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-25 5:52 [PATCH] drm/i915/alpm: Fix swapped wake lines in LOBF late config Animesh Manna
2026-08-25 8:39 ` ✗ CI.checkpatch: warning for " Patchwork
2026-08-25 8:40 ` ✓ CI.KUnit: success " Patchwork
2026-08-25 9:18 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-08-25 13:07 ` ✗ Xe.CI.FULL: " Patchwork
2026-09-02 5:19 ` [PATCH] " Hogander, Jouni
2026-09-03 13:48 ` Nautiyal, Ankit K [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=f649d0c2-d833-41bf-96de-d13865595d0c@intel.com \
--to=ankit.k.nautiyal@intel.com \
--cc=animesh.manna@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jouni.hogander@intel.com \
--cc=stable@vger.kernel.org \
/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