Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>,
	<intel-gfx@lists.freedesktop.org>
Cc: <ville.syrjala@linux.intel.com>, <jani.nikula@intel.com>
Subject: Re: [PATCH v4 5/5] drm/i915/dp: Compute as_sdp based on if vrr possible
Date: Thu, 28 Nov 2024 10:09:11 +0530	[thread overview]
Message-ID: <43ecac3f-90f9-4f6c-bb5b-f8099b791989@intel.com> (raw)
In-Reply-To: <20241120084948.1834306-6-mitulkumar.ajitkumar.golani@intel.com>


On 11/20/2024 2:19 PM, Mitul Golani wrote:
> Adaptive sync sdp param computation, we can configure during
> full modeset as well when sink is having vrr support, where
> it doesn't need dependency on vrr.enable status and can also
> match vrr enable/disable fastset requirement.
>
> --v2:
>   - Separate the change from as_sdp.vtotal. [Ankit]
>
> Signed-off-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
> ---
>   drivers/gpu/drm/i915/display/intel_dp.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index e39ae59370c0..bff9d2ec08e3 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -2807,7 +2807,7 @@ static void intel_dp_compute_as_sdp(struct intel_dp *intel_dp,
>   	const struct drm_display_mode *adjusted_mode =
>   		&crtc_state->hw.adjusted_mode;
>   
> -	if (!crtc_state->vrr.enable || !intel_dp->as_sdp_supported)
> +	if (!intel_vrr_possible(crtc_state) || !intel_dp->as_sdp_supported)

I agree with the change, but along with this we need to avoid comparing 
for as_sdp parameters for fastset case as done in rev1: 
https://patchwork.freedesktop.org/patch/607526/?series=137035&rev=1

Without this, seamless switch between VRR to CMRR (and fixed refresh 
rate case, which is currently work in progress) will not happen.

Regards,

Ankit


>   		return;
>   
>   	crtc_state->infoframes.enable |= intel_hdmi_infoframe_enable(DP_SDP_ADAPTIVE_SYNC);

  reply	other threads:[~2024-11-28  4:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-20  8:49 [PATCH v4 0/5] Add AS_SDP to fastset Mitul Golani
2024-11-20  8:49 ` [PATCH v4 1/5] drm/i915/vrr: Add crtc_state dump for vrr.vsync params Mitul Golani
2024-11-20 12:50   ` Jani Nikula
2024-11-21  4:38     ` Golani, Mitulkumar Ajitkumar
2024-11-20  8:49 ` [PATCH v4 2/5] drm/i915/vrr: Update vrr.vsync_{start, end} computation Mitul Golani
2024-11-20 12:55   ` Nautiyal, Ankit K
2024-11-21  4:41     ` Golani, Mitulkumar Ajitkumar
2024-11-20  8:49 ` [PATCH v4 3/5] drm/i915/dp: fix the Adaptive sync Operation mode for SDP Mitul Golani
2024-11-20  8:49 ` [PATCH v4 4/5] drm/i915/dp: Compute as_sdp.vtotal based on vrr timings Mitul Golani
2024-11-28  4:34   ` Nautiyal, Ankit K
2024-11-20  8:49 ` [PATCH v4 5/5] drm/i915/dp: Compute as_sdp based on if vrr possible Mitul Golani
2024-11-28  4:39   ` Nautiyal, Ankit K [this message]
2024-11-20  9:34 ` ✗ Fi.CI.SPARSE: warning for Add AS_SDP to fastset (rev3) 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=43ecac3f-90f9-4f6c-bb5b-f8099b791989@intel.com \
    --to=ankit.k.nautiyal@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    --cc=mitulkumar.ajitkumar.golani@intel.com \
    --cc=ville.syrjala@linux.intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox