From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org,
jani.nikula@linux.intel.com, stable@vger.kernel.org
Subject: Re: [RESEND 1/1] drm/i915/dp: Refine TPS4-based HBR3 rejection and add quirk to limit eDP to HBR2
Date: Tue, 8 Jul 2025 18:26:42 +0300 [thread overview]
Message-ID: <aG04slRjhkUoKEj0@intel.com> (raw)
In-Reply-To: <094d5dba-3483-4133-99e8-9e32d42ba2f6@intel.com>
On Tue, Jul 08, 2025 at 08:43:37PM +0530, Nautiyal, Ankit K wrote:
>
> On 7/8/2025 7:44 PM, Ville Syrjälä wrote:
> > On Sun, Jul 06, 2025 at 11:01:49AM +0530, Ankit Nautiyal wrote:
> >> Refine the logic introduced in commit 584cf613c24a ("drm/i915/dp: Reject
> >> HBR3 when sink doesn't support TPS4") to allow HBR3 on eDP panels that
> >> report DPCD revision 1.4, even if TPS4 is not supported. This aligns with
> >> the DisplayPort specification, which does not mandate TPS4 support for eDP
> >> with DPCD rev 1.4.
> >>
> >> This change avoids regressions on panels that require HBR3 to operate at
> >> their native resolution but do not advertise TPS4 support.
> >>
> >> Additionally, some ICL/TGL platforms with combo PHY ports suffer from
> >> signal integrity issues at HBR3. While certain systems include a
> >> Parade PS8461 mux to mitigate this, its presence cannot be reliably
> >> detected. Furthermore, broken or missing VBT entries make it unsafe to
> >> rely on VBT for enforcing link rate limits.
> >>
> >> To address the HBR3-related issues on such platforms and eDP panels,
> >> introduce a device specific quirk to cap the eDP link rate to HBR2
> >> (540000 kHz). This will override any higher advertised rates from
> >> the sink or DPCD for specific devices.
> >>
> >> Currently, the quirk is added for Dell XPS 13 7390 2-in-1 which is
> >> reported in gitlab issue #5969 [1].
> >>
> >> [1] https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5969
> >> [2] https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14517
> >>
> >> Fixes: 584cf613c24a ("drm/i915/dp: Reject HBR3 when sink doesn't support TPS4")
> >> Cc: Jani Nikula <jani.nikula@linux.intel.com>
> >> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >> Cc: <stable@vger.kernel.org> # v6.15+
> >> Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5969
> >> Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14517
> >> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> >> ---
> >> drivers/gpu/drm/i915/display/intel_dp.c | 31 +++++++++++++++++++--
> >> drivers/gpu/drm/i915/display/intel_quirks.c | 9 ++++++
> >> drivers/gpu/drm/i915/display/intel_quirks.h | 1 +
> >> 3 files changed, 39 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> >> index f48912f308df..362e376fca27 100644
> >> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> >> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> >> @@ -171,6 +171,15 @@ int intel_dp_link_symbol_clock(int rate)
> >> return DIV_ROUND_CLOSEST(rate * 10, intel_dp_link_symbol_size(rate));
> >> }
> >>
> >> +static bool intel_dp_reject_hbr3_due_to_tps4(struct intel_dp *intel_dp)
> >> +{
> >> + /* TPS4 is not mandatory for eDP with DPCD rev 1.4 */
> >> + if (intel_dp_is_edp(intel_dp) && intel_dp->dpcd[DP_DPCD_REV] == 0x14)
> >> + return false;
> >> +
> >> + return !drm_dp_tps4_supported(intel_dp->dpcd);
> >> +}
> > This feels like it's getty too messy for comfort. I think we should just
> > revert the whole thing and quirk that one icl machine.
>
> Alright sure.
>
> Can this be done is same patch, I mean no need for a revert and a
> separate quirk patch, right?
Separate revert seems cleaner to me. And then one can actually
backport the quirk without having to also backport the already
reverted commit. Though I haven't checked how far the bad commit
already got backported.
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2025-07-08 15:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-27 8:40 [PATCH 0/1] Revert patch to reject HBR3 for all eDP panels Ankit Nautiyal
2025-06-27 8:40 ` [PATCH 1/1] drm/i915/dp: Refine TPS4-based HBR3 rejection and add quirk to limit eDP to HBR2 Ankit Nautiyal
2025-06-27 9:05 ` Nautiyal, Ankit K
2025-07-06 5:31 ` [RESEND " Ankit Nautiyal
2025-07-08 14:14 ` Ville Syrjälä
2025-07-08 15:13 ` Nautiyal, Ankit K
2025-07-08 15:26 ` Ville Syrjälä [this message]
2025-06-30 13:02 ` ✓ CI.KUnit: success for Revert patch to reject HBR3 for all eDP panels (rev3) Patchwork
2025-06-30 13:56 ` ✓ Xe.CI.BAT: " Patchwork
2025-07-01 14:32 ` ✓ Xe.CI.Full: " Patchwork
2025-07-06 5:49 ` ✓ CI.KUnit: success for Revert patch to reject HBR3 for all eDP panels (rev4) 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=aG04slRjhkUoKEj0@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=stable@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox