From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ankit Nautiyal <ankit.k.nautiyal@intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915/dp: Check for Low voltage IO only for eDP
Date: Wed, 03 Aug 2022 17:15:31 +0300 [thread overview]
Message-ID: <87zgglpg58.fsf@intel.com> (raw)
In-Reply-To: <20220726072300.3950338-1-ankit.k.nautiyal@intel.com>
On Tue, 26 Jul 2022, Ankit Nautiyal <ankit.k.nautiyal@intel.com> wrote:
> The low voltage sku check can be ignored as OEMs need to consider that
> when designing the board and then put any limits in VBT.
>
> Due to this check many DP sink that can be run with higher link rate,
> are run at lower link rate, thereby pruning the resolutions that are
> intended to be working as per bspec.
>
> However, some eDP panels are getting issues [1] with higher link rate.
> So keep the low voltage check for eDP, but ignore for DP sinks.
What's the root cause? This seems like guess work.
BR,
Jani.
> [1] https://gitlab.freedesktop.org/drm/intel/-/issues/6205
>
> Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5272
>
> v2: Added comment about eDP HBR2 restriction for JSL/EHL (Arun).
>
> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dp.c | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 32292c0be2bd..e50bba14e8c5 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -405,7 +405,8 @@ static int icl_max_source_rate(struct intel_dp *intel_dp)
> enum phy phy = intel_port_to_phy(dev_priv, dig_port->base.port);
>
> if (intel_phy_is_combo(dev_priv, phy) &&
> - (is_low_voltage_sku(dev_priv, phy) || !intel_dp_is_edp(intel_dp)))
> + intel_dp_is_edp(intel_dp) &&
> + is_low_voltage_sku(dev_priv, phy))
> return 540000;
>
> return 810000;
> @@ -413,11 +414,8 @@ static int icl_max_source_rate(struct intel_dp *intel_dp)
>
> static int ehl_max_source_rate(struct intel_dp *intel_dp)
> {
> - struct intel_digital_port *dig_port = dp_to_dig_port(intel_dp);
> - struct drm_i915_private *dev_priv = to_i915(dig_port->base.base.dev);
> - enum phy phy = intel_port_to_phy(dev_priv, dig_port->base.port);
> -
> - if (intel_dp_is_edp(intel_dp) || is_low_voltage_sku(dev_priv, phy))
> + /* For JSL/EHL, eDP supports only HBR2 5.4 (SOC PHY restriction) */
> + if (intel_dp_is_edp(intel_dp))
> return 540000;
>
> return 810000;
> @@ -429,7 +427,9 @@ static int dg1_max_source_rate(struct intel_dp *intel_dp)
> struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev);
> enum phy phy = intel_port_to_phy(i915, dig_port->base.port);
>
> - if (intel_phy_is_combo(i915, phy) && is_low_voltage_sku(i915, phy))
> + if (intel_phy_is_combo(i915, phy) &&
> + intel_dp_is_edp(intel_dp) &&
> + is_low_voltage_sku(i915, phy))
> return 540000;
>
> return 810000;
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2022-08-03 14:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-26 7:23 [Intel-gfx] [PATCH] drm/i915/dp: Check for Low voltage IO only for eDP Ankit Nautiyal
2022-07-26 8:39 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/dp: Check for Low voltage IO only for eDP (rev2) Patchwork
2022-07-26 10:47 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2022-07-26 11:38 ` Nautiyal, Ankit K
2022-07-26 18:51 ` Vudum, Lakshminarayana
2022-07-26 17:38 ` [Intel-gfx] ✓ Fi.CI.IGT: success " Patchwork
2022-08-03 14:15 ` Jani Nikula [this message]
2022-08-10 14:34 ` [Intel-gfx] [PATCH] drm/i915/dp: Check for Low voltage IO only for eDP Nautiyal, Ankit K
-- strict thread matches above, loose matches on Subject: below --
2022-06-24 3:46 Ankit Nautiyal
2022-06-29 3:25 ` Murthy, Arun R
2022-06-29 4:45 ` Nautiyal, Ankit K
2022-06-29 4:56 ` Murthy, Arun R
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=87zgglpg58.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/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.