Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: "Jouni Högander" <jouni.hogander@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 5/7] drm/i915/display: Ignore only psr specific part of vsc sdp
Date: Fri, 15 Dec 2023 12:29:13 -0500	[thread overview]
Message-ID: <ZXyM6XdZhqzZimhM@intel.com> (raw)
In-Reply-To: <20231214114838.1113648-6-jouni.hogander@intel.com>

On Thu, Dec 14, 2023 at 01:48:36PM +0200, Jouni Högander wrote:
> Pipe config check is currently ignoring vsc sdp changes completely
> if psr is enabled. We want to ignore only PSR part of it as there
> might be changes in colorimetry data. Also read back vsc_sdp when psr is
> used.
> 
> Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_display.c | 9 ++++++---
>  drivers/gpu/drm/i915/display/intel_dp.c      | 4 ----
>  2 files changed, 6 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index f1e58163277d..0faf84d3680a 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -4764,7 +4764,11 @@ static bool
>  intel_compare_dp_vsc_sdp(const struct drm_dp_vsc_sdp *a,
>  			 const struct drm_dp_vsc_sdp *b)
>  {
> -	return memcmp(a, b, sizeof(*a)) == 0;
> +	return a->pixelformat == b->pixelformat &&
> +		a->colorimetry == b->colorimetry &&
> +		a->bpc == b->bpc &&
> +		a->dynamic_range == b->dynamic_range &&
> +		a->content_type == b->content_type;
>  }
>  
>  static bool
> @@ -5045,8 +5049,7 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,
>  } while (0)
>  
>  #define PIPE_CONF_CHECK_DP_VSC_SDP(name) do { \
> -	if (!current_config->has_psr && !pipe_config->has_psr && \
> -	    !intel_compare_dp_vsc_sdp(&current_config->infoframes.name, \
> +	if (!intel_compare_dp_vsc_sdp(&current_config->infoframes.name, \
>  				      &pipe_config->infoframes.name)) { \
>  		pipe_config_dp_vsc_sdp_mismatch(dev_priv, fastset, __stringify(name), \
>  						&current_config->infoframes.name, \
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 635790ec2fb7..b7e9b6eb6f66 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -4425,10 +4425,6 @@ static void intel_read_dp_vsc_sdp(struct intel_encoder *encoder,
>  	struct dp_sdp sdp = {};
>  	int ret;
>  
> -	/* When PSR is enabled, VSC SDP is handled by PSR routine */
> -	if (crtc_state->has_psr)
> -		return;

I almost got confused by this one, but checking the patch 3 again,
it makes total sense.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> -
>  	if ((crtc_state->infoframes.enable &
>  	     intel_hdmi_infoframe_enable(type)) == 0)
>  		return;
> -- 
> 2.34.1
> 

  reply	other threads:[~2023-12-15 17:29 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-14 11:48 [PATCH 0/7] VSC SDP rework Jouni Högander
2023-12-14 11:48 ` [PATCH 1/7] drm/i915/display: Remove intel_crtc_state->psr_vsc Jouni Högander
2023-12-14 16:26   ` Rodrigo Vivi
2023-12-14 11:48 ` [PATCH 2/7] drm/i915/display: Move colorimetry_support from intel_psr to intel_dp Jouni Högander
2023-12-14 16:26   ` Rodrigo Vivi
2023-12-14 11:48 ` [PATCH 3/7] drm/i915/display: Unify VSC SPD preparation Jouni Högander
2023-12-15 16:57   ` Rodrigo Vivi
2023-12-14 11:48 ` [PATCH 4/7] drm/i915/display: Fix vsc_sdp computation Jouni Högander
2023-12-15 17:05   ` Rodrigo Vivi
2023-12-14 11:48 ` [PATCH 5/7] drm/i915/display: Ignore only psr specific part of vsc sdp Jouni Högander
2023-12-15 17:29   ` Rodrigo Vivi [this message]
2023-12-14 11:48 ` [PATCH 6/7] drm/i915/display: Read PSR configuration before VSC SDP Jouni Högander
2023-12-15 17:08   ` Rodrigo Vivi
2023-12-14 11:48 ` [PATCH 7/7] drm/i915/display: Take care of VSC select field in video dip ctl register Jouni Högander
2023-12-15 17:26   ` Rodrigo Vivi
2023-12-20  8:02     ` Kahola, Mika
2023-12-14 14:04 ` ✗ Fi.CI.CHECKPATCH: warning for VSC SDP rework Patchwork
2023-12-14 14:04 ` ✗ Fi.CI.SPARSE: " Patchwork
2023-12-14 14:22 ` ✓ Fi.CI.BAT: success " Patchwork
2023-12-14 15:21 ` ✓ Fi.CI.IGT: " 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=ZXyM6XdZhqzZimhM@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jouni.hogander@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