All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Shekhar Chauhan <shekhar.chauhan@intel.com>,
	intel-gfx@lists.freedesktop.org
Cc: matthew.d.roper@intel.com, clinton.a.taylor@intel.com,
	shekhar.chauhan@intel.com
Subject: Re: [PATCH v3] drm/i915/dp: Increase idle pattern wait timeout to 2ms
Date: Mon, 04 Mar 2024 10:46:59 +0200	[thread overview]
Message-ID: <87il225qpo.fsf@intel.com> (raw)
In-Reply-To: <20240304050631.774920-1-shekhar.chauhan@intel.com>

On Mon, 04 Mar 2024, Shekhar Chauhan <shekhar.chauhan@intel.com> wrote:
> Currently, the driver is only waiting for 1ms for
> idle patterns. But starting from LNL and beyond,
> the MST wants the driver to wait for 1640us before

What does it mean that "the MST wants"?

> timing out (which we round up to 2ms).
>
> v1: Introduced the 2ms wait timeout.
> v2: Segregated the wait timeout for platforms before & after LNL.

I did not ask for this. I would rather all platforms used 2 ms. I even
said the original change looked fine. But I'd like it to be explained in
the commit message.

> v3: Fixed 2 cosmetic changes.
>
> BSpec: 68849
> Signed-off-by: Shekhar Chauhan <shekhar.chauhan@intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_ddi.c | 15 +++++++++++----
>  1 file changed, 11 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c b/drivers/gpu/drm/i915/display/intel_ddi.c
> index bea441590204..b59adb7685b8 100644
> --- a/drivers/gpu/drm/i915/display/intel_ddi.c
> +++ b/drivers/gpu/drm/i915/display/intel_ddi.c
> @@ -3677,12 +3677,19 @@ static void intel_ddi_set_idle_link_train(struct intel_dp *intel_dp,
>  	 */
>  	if (port == PORT_A && DISPLAY_VER(dev_priv) < 12)
>  		return;
> -
> -	if (intel_de_wait_for_set(dev_priv,
> -				  dp_tp_status_reg(encoder, crtc_state),
> -				  DP_TP_STATUS_IDLE_DONE, 1))
> +	if (DISPLAY_VER(dev_priv) >= 20) {
> +		if (intel_de_wait_for_set(dev_priv,
> +			dp_tp_status_reg(encoder, crtc_state),
> +			DP_TP_STATUS_IDLE_DONE, 2))
> +		drm_err(&dev_priv->drm,
> +			"Timed out waiting for DP idle patterns\n");
> +	} else {
> +		if (intel_de_wait_for_set(dev_priv,
> +			dp_tp_status_reg(encoder, crtc_state),
> +			DP_TP_STATUS_IDLE_DONE, 1))
>  		drm_err(&dev_priv->drm,
>  			"Timed out waiting for DP idle patterns\n");
> +	}

So I'd like you to go back to how it was originally.


>  }
>  
>  static bool intel_ddi_is_audio_enabled(struct drm_i915_private *dev_priv,

-- 
Jani Nikula, Intel

  reply	other threads:[~2024-03-04  8:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-04  5:06 [PATCH v3] drm/i915/dp: Increase idle pattern wait timeout to 2ms Shekhar Chauhan
2024-03-04  8:46 ` Jani Nikula [this message]
2024-03-04 11:38   ` Chauhan, Shekhar
2024-03-04 11:51     ` Jani Nikula
2024-03-04 23:23 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/dp: Increase idle pattern wait timeout to 2ms (rev2) Patchwork
2024-03-04 23:37 ` ✓ Fi.CI.BAT: success " Patchwork
2024-03-05  1:00 ` ✗ Fi.CI.IGT: 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=87il225qpo.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=clinton.a.taylor@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=matthew.d.roper@intel.com \
    --cc=shekhar.chauhan@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.