All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: "José Roberto de Souza" <jose.souza@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915/display/adlp: Disable underrun recovery
Date: Fri, 5 Nov 2021 19:31:31 +0200	[thread overview]
Message-ID: <YYVqc0hrHoo36GiE@intel.com> (raw)
In-Reply-To: <20211104010858.43559-1-jose.souza@intel.com>

On Wed, Nov 03, 2021 at 06:08:58PM -0700, José Roberto de Souza wrote:
> It was also defeatured for ADL-P and other platforms.
> 
> BSpec: 55424
> Signed-off-by: José Roberto de Souza <jose.souza@intel.com>

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Can you also nuke the now pointless bubble counter programming
as well?

> ---
>  drivers/gpu/drm/i915/display/intel_display.c | 39 ++++----------------
>  1 file changed, 7 insertions(+), 32 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index 29392dfc46c8d..64406408ba590 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -956,26 +956,6 @@ void intel_display_finish_reset(struct drm_i915_private *dev_priv)
>  	clear_bit_unlock(I915_RESET_MODESET, &dev_priv->gt.reset.flags);
>  }
>  
> -static bool underrun_recovery_supported(const struct intel_crtc_state *crtc_state)
> -{
> -	if (crtc_state->pch_pfit.enabled &&
> -	    (crtc_state->pipe_src_w > drm_rect_width(&crtc_state->pch_pfit.dst) ||
> -	     crtc_state->pipe_src_h > drm_rect_height(&crtc_state->pch_pfit.dst) ||
> -	     crtc_state->output_format == INTEL_OUTPUT_FORMAT_YCBCR420))
> -		return false;
> -
> -	if (crtc_state->dsc.compression_enable)
> -		return false;
> -
> -	if (crtc_state->has_psr2)
> -		return false;
> -
> -	if (crtc_state->splitter.enable)
> -		return false;
> -
> -	return true;
> -}
> -
>  static void icl_set_pipe_chicken(const struct intel_crtc_state *crtc_state)
>  {
>  	struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
> @@ -999,19 +979,14 @@ static void icl_set_pipe_chicken(const struct intel_crtc_state *crtc_state)
>  	 */
>  	tmp |= PIXEL_ROUNDING_TRUNC_FB_PASSTHRU;
>  
> -	if (IS_DG2(dev_priv)) {
> -		/*
> -		 * Underrun recovery must always be disabled on DG2.  However
> -		 * the chicken bit meaning is inverted compared to other
> -		 * platforms.
> -		 */
> +	/*
> +	 * Underrun recovery must always be disabled on display 13+.
> +	 * DG2 chicken bit meaning is inverted compared to other platforms.
> +	 */
> +	if (IS_DG2(dev_priv))
>  		tmp &= ~UNDERRUN_RECOVERY_ENABLE_DG2;
> -	} else if (DISPLAY_VER(dev_priv) >= 13) {
> -		if (underrun_recovery_supported(crtc_state))
> -			tmp &= ~UNDERRUN_RECOVERY_DISABLE_ADLP;
> -		else
> -			tmp |= UNDERRUN_RECOVERY_DISABLE_ADLP;
> -	}
> +	else if (DISPLAY_VER(dev_priv) >= 13)
> +		tmp |= UNDERRUN_RECOVERY_DISABLE_ADLP;
>  
>  	intel_de_write(dev_priv, PIPE_CHICKEN(pipe), tmp);
>  }
> -- 
> 2.33.1

-- 
Ville Syrjälä
Intel

      parent reply	other threads:[~2021-11-05 17:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-04  1:08 [Intel-gfx] [PATCH] drm/i915/display/adlp: Disable underrun recovery José Roberto de Souza
2021-11-04  4:02 ` [Intel-gfx] ✓ Fi.CI.BAT: success for " Patchwork
2021-11-04  6:40 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2021-11-05 21:57   ` Souza, Jose
2021-11-05 17:31 ` Ville Syrjälä [this message]

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=YYVqc0hrHoo36GiE@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jose.souza@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.