All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Suraj Kandpal <suraj.kandpal@intel.com>
Cc: intel-gfx@lists.freedesktop.org, uma.shankar@intel.com,
	matthew.d.roper@intel.com
Subject: Re: [PATCH 1/2] drm/i915/hotplug: Reduce SHPD_FLITER_CNT for DISPLAY_VER() == 12
Date: Mon, 23 Sep 2024 20:38:35 +0300	[thread overview]
Message-ID: <ZvGnm0Uj0KzErdM5@intel.com> (raw)
In-Reply-To: <20240923031007.1058072-3-suraj.kandpal@intel.com>

On Mon, Sep 23, 2024 at 08:40:07AM +0530, Suraj Kandpal wrote:
> Reduce SHPD_CNT to 250us for display version 12 as it lines up
> with DP1.4a(Table3-4) spec.
> 
> --v2
> -Update commit message and comment [Matt]
> 
> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_hotplug_irq.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_hotplug_irq.c b/drivers/gpu/drm/i915/display/intel_hotplug_irq.c
> index 2c4e946d5575..8427386132e6 100644
> --- a/drivers/gpu/drm/i915/display/intel_hotplug_irq.c
> +++ b/drivers/gpu/drm/i915/display/intel_hotplug_irq.c
> @@ -849,7 +849,11 @@ static void icp_hpd_irq_setup(struct drm_i915_private *dev_priv)
>  	enabled_irqs = intel_hpd_enabled_irqs(dev_priv, dev_priv->display.hotplug.pch_hpd);
>  	hotplug_irqs = intel_hpd_hotplug_irqs(dev_priv, dev_priv->display.hotplug.pch_hpd);
>  
> -	if (INTEL_PCH_TYPE(dev_priv) <= PCH_TGP)
> +	/*
> +	 * We reduce the value to 250us to be able to detect SHPD when an external display
> +	 * is connected. This is also expected of us as stated in DP1.4a Table 3-4.
> +	 */
> +	if (INTEL_PCH_TYPE(dev_priv) < PCH_TGP)
>  		intel_uncore_write(&dev_priv->uncore, SHPD_FILTER_CNT, SHPD_FILTER_CNT_500_ADJ);
>  	else
>  		intel_uncore_write(&dev_priv->uncore, SHPD_FILTER_CNT, SHPD_FILTER_CNT_250);

IMO if we start reducing this for older platforms then we
should just do it for all of them, instead of based on some
random cutoff.

-- 
Ville Syrjälä
Intel

  reply	other threads:[~2024-09-23 17:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-23  3:10 [PATCH 0/2] Reduce SHPD_FILTER_CNT value Suraj Kandpal
2024-09-23  3:10 ` [PATCH 1/2] drm/i915/hotplug: Reduce SHPD_FLITER_CNT for DISPLAY_VER() == 12 Suraj Kandpal
2024-09-23 17:38   ` Ville Syrjälä [this message]
2024-09-23 17:53     ` Ville Syrjälä
2024-09-23 18:09     ` Matt Roper
2024-09-23 18:28       ` Ville Syrjälä
2024-09-24  5:17       ` Kandpal, Suraj
2024-09-24  7:34   ` [PATCH 1/2] drm/i915/hotplug: Reduce SHPD_FLITER_CNT for ICL and above Suraj Kandpal
2024-09-26 17:55     ` Matt Roper
2024-09-23  3:10 ` [PATCH 2/2] drm/i915/hotplug: Add comment for XE_LPD+ SHPD_FILTER_CNT value Suraj Kandpal
2024-09-26 23:23 ` ✓ Fi.CI.BAT: success for Reduce SHPD_FILTER_CNT value (rev3) Patchwork
2024-09-27 23:11 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-09-28  5:15 ` 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=ZvGnm0Uj0KzErdM5@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=matthew.d.roper@intel.com \
    --cc=suraj.kandpal@intel.com \
    --cc=uma.shankar@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.