Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH v1 1/2] drm/i915/display: Skip state checker for AS SDP infoframe enable
Date: Mon,  3 Feb 2025 21:44:46 +0530	[thread overview]
Message-ID: <20250203161447.2643039-2-mitulkumar.ajitkumar.golani@intel.com> (raw)
In-Reply-To: <20250203161447.2643039-1-mitulkumar.ajitkumar.golani@intel.com>

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.

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));
 
 	PIPE_CONF_CHECK_X(infoframes.gcp);
 	PIPE_CONF_CHECK_INFOFRAME(avi);
-- 
2.48.1


  reply	other threads:[~2025-02-03 16:17 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 ` Mitul Golani [this message]
2025-02-04  4:21   ` [PATCH v1 1/2] drm/i915/display: Skip state checker for AS SDP infoframe enable Nautiyal, Ankit K
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=20250203161447.2643039-2-mitulkumar.ajitkumar.golani@intel.com \
    --to=mitulkumar.ajitkumar.golani@intel.com \
    --cc=intel-gfx@lists.freedesktop.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