All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Xizhe Tang" <xizheTang2005@163.com>
Cc: dri-devel@lists.freedesktop.org, intel-xe@lists.freedesktop.org,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/dp: Only send AS SDP when VRR is enabled or PR !async
Date: Wed, 23 Sep 2026 08:05:38 +0000	[thread overview]
Message-ID: <20260923080539.3C32F1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260923052937.22817-1-xizheTang2005@163.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] drm/i915/dp: AS SDP transmission disabled for CMRR
--

commit ec709d876da894a1dbf999ecfaaa9f0515c311ce
Author: Xizhe Tang <xizheTang2005@163.com>

drm/i915/dp: Only send AS SDP when VRR is enabled or PR !async

This commit changes the terminal condition for transmitting the
Adaptive-Sync SDP on DP links from intel_vrr_possible() to
crtc_state->vrr.enable, avoiding sending the AS SDP to fixed-refresh
links that merely advertise VRR capability.

Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/work_items/9252

> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -3113,7 +3113,7 @@ static bool intel_dp_needs_as_sdp(struct intel_dp *intel_dp,
>  	    !intel_psr_pr_async_video_timing_supported(intel_dp))
>  		return true;
>  
> -	return intel_vrr_possible(crtc_state);
> +	return crtc_state->vrr.enable;

[Severity: High]
Does this inadvertently disable AS SDP transmission when Continuous Mode
Refresh Rate (CMRR) is active?

When CMRR is configured on the fixed refresh rate path, it sets
crtc_state->vrr.cmrr.enable to true, but crtc_state->vrr.enable is left as
false. Returning crtc_state->vrr.enable here evaluates to false for CMRR,
causing intel_dp_needs_as_sdp() to skip AS SDP transmission and breaking
CMRR synchronization.

Consequently, in intel_dp_compute_as_sdp() this leads to unreachable code:

intel_dp_compute_as_sdp() {
    ...
    if (!intel_dp_needs_as_sdp(intel_dp, crtc_state))
        return;
    ...
    if (crtc_state->vrr.cmrr.enable) {
        as_sdp->mode = DP_AS_SDP_FAVT_TRR_REACHED;
        ...

The CMRR configuration block becomes dead code because the function
exits early when vrr.enable is false.

Should this condition also check for crtc_state->vrr.cmrr.enable to
ensure AS SDP is still transmitted for CMRR?

>  }

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260923052937.22817-1-xizheTang2005@163.com?part=1

  reply	other threads:[~2026-09-23  8:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-23  5:29 [PATCH] drm/i915/dp: Only send AS SDP when VRR is enabled or PR !async Xizhe Tang
2026-09-23  8:05 ` sashiko-bot [this message]
2026-09-23 15:09 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
2026-09-23 23:12 ` 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=20260923080539.3C32F1F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=xizheTang2005@163.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.