diff mbox series

i915/display/dp: Compute AS SDP when vrr is also enabled

Message ID 20240725133110.112401-1-mitulkumar.ajitkumar.golani@intel.com (mailing list archive)
State New, archived
Headers show
Series i915/display/dp: Compute AS SDP when vrr is also enabled | expand

Commit Message

Golani, Mitulkumar Ajitkumar July 25, 2024, 1:31 p.m. UTC
AS SDP should be computed when VRR timing generator is also enabled.
Correct the compute condition to compute params of Adaptive sync SDP
when VRR timing genrator is enabled along with sink support indication.

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(-)

Comments

Jani Nikula July 25, 2024, 2:12 p.m. UTC | #1
On Thu, 25 Jul 2024, Mitul Golani <mitulkumar.ajitkumar.golani@intel.com> wrote:
> AS SDP should be computed when VRR timing generator is also enabled.
> Correct the compute condition to compute params of Adaptive sync SDP
> when VRR timing genrator is enabled along with sink support indication.
>
> 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 5d6568c8e186..dc75d1c14a94 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -2617,7 +2617,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 (!(crtc_state->vrr.enable && intel_dp->as_sdp_supported))
>  		return;

That's the same as

	if (!crtc_state->vrr.enable || !intel_dp->as_sdp_supported)

BR,
Jani.


>  
>  	crtc_state->infoframes.enable |= intel_hdmi_infoframe_enable(DP_SDP_ADAPTIVE_SYNC);
Golani, Mitulkumar Ajitkumar July 26, 2024, 8:50 a.m. UTC | #2
> -----Original Message-----
> From: Jani Nikula <jani.nikula@linux.intel.com>
> Sent: Thursday, July 25, 2024 7:43 PM
> To: Golani, Mitulkumar Ajitkumar <mitulkumar.ajitkumar.golani@intel.com>;
> intel-gfx@lists.freedesktop.org
> Cc: Nautiyal, Ankit K <ankit.k.nautiyal@intel.com>
> Subject: Re: [PATCH] i915/display/dp: Compute AS SDP when vrr is also enabled
> 
> On Thu, 25 Jul 2024, Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
> wrote:
> > AS SDP should be computed when VRR timing generator is also enabled.
> > Correct the compute condition to compute params of Adaptive sync SDP
> > when VRR timing genrator is enabled along with sink support indication.
> >
> > 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 5d6568c8e186..dc75d1c14a94 100644
> > --- a/drivers/gpu/drm/i915/display/intel_dp.c
> > +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> > @@ -2617,7 +2617,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 (!(crtc_state->vrr.enable && intel_dp->as_sdp_supported))
> >  		return;
> 
> That's the same as
> 
> 	if (!crtc_state->vrr.enable || !intel_dp->as_sdp_supported)
> 
> BR,
> Jani.

Thanks Jani, I have addressed comments.

Regards,
Mitul
> 
> 
> >
> >  	crtc_state->infoframes.enable |=
> > intel_hdmi_infoframe_enable(DP_SDP_ADAPTIVE_SYNC);
> 
> --
> Jani Nikula, Intel
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 5d6568c8e186..dc75d1c14a94 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -2617,7 +2617,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 (!(crtc_state->vrr.enable && intel_dp->as_sdp_supported))
 		return;
 
 	crtc_state->infoframes.enable |= intel_hdmi_infoframe_enable(DP_SDP_ADAPTIVE_SYNC);