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>
Subject: Re: [PATCH v1 1/2] drm/i915/display: Skip state checker for AS SDP infoframe enable
Date: Tue, 4 Feb 2025 09:51:41 +0530	[thread overview]
Message-ID: <67bce9f6-93b7-4baf-929f-77bd0d4ddaf3@intel.com> (raw)
In-Reply-To: <20250203161447.2643039-2-mitulkumar.ajitkumar.golani@intel.com>


On 2/3/2025 9:44 PM, Mitul Golani wrote:
> Avoid full modeset by skipping infoframe.enable check when toggling
> AS SDP while enabling VRR or while state change from PSR to VRR,
> preventing full modeset while pipe config changes.

I dont think this is related to PSR.


>
> Signed-off-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
> ---
>   drivers/gpu/drm/i915/display/intel_display.c | 6 ++++--
>   1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index a6383ddde871..8415b305f702 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -5744,9 +5744,11 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,
>   
>   	if (current_config->has_psr || pipe_config->has_psr)
>   		PIPE_CONF_CHECK_X_WITH_MASK(infoframes.enable,
> -					    ~intel_hdmi_infoframe_enable(DP_SDP_VSC));
> +					    ~(intel_hdmi_infoframe_enable(DP_SDP_VSC) |
> +					      intel_hdmi_infoframe_enable(DP_SDP_ADAPTIVE_SYNC)));
>   	else
> -		PIPE_CONF_CHECK_X(infoframes.enable);
> +		PIPE_CONF_CHECK_X_WITH_MASK(infoframes.enable,
> +					    ~intel_hdmi_infoframe_enable(DP_SDP_ADAPTIVE_SYNC));

As I understand we want to skip the check for DP_SDP_VSC when PSR is 
involved and DP_SDP_ADAPTIVE_SYNC when VRR is enabled so as to avoid 
full modeset when switch happens for these features.

how about:

exclude_infoframes = 0;
if (current_config->has_psr || pipe_config->has_psr)
           exclude_infoframes |= intel_hdmi_infoframe_enable(DP_SDP_VSC);

if (pipe_config->vrr.enable)
           exclude_infoframes |= 
intel_hdmi_infoframe_enable(DP_SDP_ADAPTIVE_SYNC)));

PIPE_CONF_CHECK_X_WITH_MASK(infoframes.enable, exclude_infoframes);


Regards,

Ankit

>   
>   	PIPE_CONF_CHECK_X(infoframes.gcp);
>   	PIPE_CONF_CHECK_INFOFRAME(avi);

  reply	other threads:[~2025-02-04  4:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-03 16:14 [PATCH v1 0/2] Compute as_sdp when vrr is enabled Mitul Golani
2025-02-03 16:14 ` [PATCH v1 1/2] drm/i915/display: Skip state checker for AS SDP infoframe enable Mitul Golani
2025-02-04  4:21   ` Nautiyal, Ankit K [this message]
2025-02-03 16:14 ` [PATCH v1 2/2] drm/i915/dp: Compute AS SDP only when vrr.enable is set Mitul Golani
2025-02-03 20:55 ` ✗ Fi.CI.SPARSE: warning for Compute as_sdp when vrr is enabled Patchwork
2025-02-03 21:09 ` ✓ i915.CI.BAT: success " Patchwork
2025-02-04  0:43 ` ✗ 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=67bce9f6-93b7-4baf-929f-77bd0d4ddaf3@intel.com \
    --to=ankit.k.nautiyal@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=mitulkumar.ajitkumar.golani@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