From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>,
<intel-xe@lists.freedesktop.org>,
<intel-gfx@lists.freedesktop.org>
Cc: <jouni.hogander@intel.com>
Subject: Re: [PATCH v2 1/2] drm/i915/display: Skip state checker for AS SDP infoframe enable
Date: Thu, 6 Feb 2025 09:43:42 +0530 [thread overview]
Message-ID: <c82bfe3a-393d-4e40-8c3c-b52bab43f502@intel.com> (raw)
In-Reply-To: <20250204130638.2800372-2-mitulkumar.ajitkumar.golani@intel.com>
On 2/4/2025 6:36 PM, Mitul Golani wrote:
> Avoid full modeset by skipping infoframe.enable check when toggling
> AS SDP while enabling VRR, preventing full modeset while pipe
> config changes.
>
> --v2:
> - Add check for exclude_infoframe. (Ankit)
> - Update commit message. (Ankit)
>
> Signed-off-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display.c | 10 ++++++++--
> 1 file changed, 8 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..b35fb6d37640 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -5388,6 +5388,7 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,
> struct drm_i915_private *dev_priv = to_i915(current_config->uapi.crtc->dev);
> struct intel_crtc *crtc = to_intel_crtc(pipe_config->uapi.crtc);
> struct drm_printer p;
> + u32 exclude_infoframes = 0;
> bool ret = true;
>
> if (fastset)
> @@ -5743,8 +5744,13 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,
> PIPE_CONF_CHECK_I(min_voltage_level);
>
> if (current_config->has_psr || pipe_config->has_psr)
> - PIPE_CONF_CHECK_X_WITH_MASK(infoframes.enable,
> - ~intel_hdmi_infoframe_enable(DP_SDP_VSC));
> + exclude_infoframes |= intel_hdmi_infoframe_enable(DP_SDP_VSC);
> +
> + if (current_config->vrr.enable || pipe_config->vrr.enable)
> + exclude_infoframes |= intel_hdmi_infoframe_enable(DP_SDP_ADAPTIVE_SYNC);
> +
> + if (exclude_infoframes)
> + PIPE_CONF_CHECK_X_WITH_MASK(infoframes.enable, ~exclude_infoframes);
> else
> PIPE_CONF_CHECK_X(infoframes.enable);
This can simply be:
PIPE_CONF_CHECK_X_WITH_MASK(infoframes.enable, ~exclude_infoframes);
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Regards,
Ankit
>
next prev parent reply other threads:[~2025-02-06 4:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-04 13:06 [PATCH v2 0/2] Compute as_sdp when vrr is enabled Mitul Golani
2025-02-04 13:06 ` [PATCH v2 1/2] drm/i915/display: Skip state checker for AS SDP infoframe enable Mitul Golani
2025-02-06 4:13 ` Nautiyal, Ankit K [this message]
2025-02-04 13:06 ` [PATCH v2 2/2] Revert "drm/i915/dp: Compute as_sdp based on if vrr possible" Mitul Golani
2025-02-04 14:00 ` [PATCH v2 0/2] Compute as_sdp when vrr is enabled Hogander, Jouni
2025-02-04 14:32 ` ✓ CI.Patch_applied: success for " Patchwork
2025-02-04 14:32 ` ✓ CI.checkpatch: " Patchwork
2025-02-04 14:34 ` ✓ CI.KUnit: " Patchwork
2025-02-04 14:50 ` ✓ CI.Build: " Patchwork
2025-02-04 14:53 ` ✓ CI.Hooks: " Patchwork
2025-02-04 14:54 ` ✓ CI.checksparse: " Patchwork
2025-02-04 15:15 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-04 17:30 ` ✗ Xe.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=c82bfe3a-393d-4e40-8c3c-b52bab43f502@intel.com \
--to=ankit.k.nautiyal@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jouni.hogander@intel.com \
--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