Linux USB
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ronald Rechenmacher <ron@fnal.gov>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>
Cc: "intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>,
	"regressions@lists.linux.dev" <regressions@lists.linux.dev>
Subject: Re: [REGRESSION] thunderbolt: Barlow Ridge DP tunnel reports UHBR20 in BW allocation mode for HBR3-only DP OUT, external monitors stay black (v7.2 -> v7.3)
Date: Mon, 23 Nov 2026 22:11:41 +0200	[thread overview]
Message-ID: <7c77eaf0bdd8370e2259c654dd866561ca07d382@intel.com> (raw)
In-Reply-To: <DS5PR09MB1353250098A5804464BB8BAE6DC782@DS5PR09MB13532.namprd09.prod.outlook.com>

On Fri, 20 Nov 2026, Ronald Rechenmacher <ron@fnal.gov> wrote:
> Subject: [REGRESSION] thunderbolt: Barlow Ridge DP tunnel reports UHBR20 in BW allocation mode for HBR3-only DP OUT, external monitors stay black (v7.2 -> v7.3)
>
> To: Thunderbolt/USB4 maintainers, linux-usb
> Cc: i915/DP tunnel developers, intel-gfx, regressions
>
> Hi,
>
> Since moving from 7.2 to 7.3, the external monitors behind a Thunderbolt 5
> dock stay black. They are detected, read EDID, and show up in the desktop's
> display settings, but no picture appears. Booting with
> thunderbolt.bw_alloc_mode=0 fixes it completely.

Does [1] fix it?

If not, please file a bug as described at [2]


BR,
Jani.


[1] https://lore.kernel.org/r/20261123120954.1115838-1-imre.deak@intel.com
[2] https://drm.pages.freedesktop.org/intel-docs/how-to-file-i915-bugs.html


>
> #regzbot introduced: v7.2..v7.3
>
> Hardware
> --------
> - Laptop: Dell Pro Max 18 Plus MB18250, BIOS 3.5.2 (10/15/2026)
> - CPU/display: Arrow Lake-HX, i915 (MTL display version 14.00, PCI 8086:7d67)
> - Host router: Barlow Ridge JHL9580 (8086:5780/5781), NVM 64.81; the
>   i915 DDI TC3 port is wired to the router's DP IN (TC port mode "legacy")
> - Dock: Dell Pro TBT5 Dock WD25TB5 (Barlow Ridge hub JHL9480), NVM 69.81,
>   internal Synaptics MST branch (DPCD 1.4, max HBR3 x4)
> - 3 monitors on the MST hub: 2x 3840x2160@60 (one uses DSC), 1x 1920x1080@60
> - USB4 link to the dock comes up asymmetric (3 RX / 1 TX, 40 Gb/s lanes)
>
> Kernels
> -------
> - Good: 7.2.15 (Fedora 7.2.15-200.fc44)
> - Bad:  7.3.3  (Fedora 7.3.3-300.fc45)
> - The 7.3.4 stable changelog has no i915, drm display, or thunderbolt
>   changes, so I expect 7.3.4 to be affected too (not tested).
>
> What happens
> ------------
> Both tunnel adapters report HBR3 x4 as their maximum. With bandwidth
> allocation mode enabled, though, the tunnel's maximum is reported as
> UHBR20 x4, and i915 picks that up as the DPRX rate:
>
>   thunderbolt 0000:05:00.0: 0:13 <-> 1:12 (DP): DP IN maximum supported bandwidth 8100 Mb/s x4 = 25920 Mb/s
>   thunderbolt 0000:05:00.0: 0:13 <-> 1:12 (DP): DP OUT maximum supported bandwidth 8100 Mb/s x4 = 25920 Mb/s
>   thunderbolt 0000:05:00.0: 0:13 <-> 1:12 (DP): non-reduced bandwidth 8100 Mb/s x4 = 25920 Mb/s
>   thunderbolt 0000:05:00.0: 0:13 <-> 1:12 (DP): maximum bandwidth through allocation mode 20000 Mb/s x4 = 77575 Mb/s
>   thunderbolt 0000:05:00.0: 0:13 <-> 1:12 (DP): bandwidth allocation mode enabled
>   i915 0000:00:02.0: [drm:drm_dp_tunnel_enable_bw_alloc] [DPTUN 1:1:13][AUX USBC3/DDI TC3/PHY TC3] Enabling BW alloc mode: DPRX:20000x4 Group alloc:0/103500 Mb/s (Ok)
>
> The LTTPR (LTTPR 1) PHY capabilities read by i915 also flip between
> "04 03 00" and "04 00 00" around this point, i.e. its 128b/132b UHBR10/20
> bits come and go.
>
> i915 then tries 128b/132b, which always fails:
>
>   i915 [CONNECTOR:543:DP-3][ENCODER:542:DDI TC3/PHY TC3][DPRX] Max loop count reached
>   i915 ... [DPRX] 128b/132b Link Training failed at link rate = 2000000, lane count = 4
>   i915 ... [DPRX] 128b/132b Link Training failed at link rate = 2000000, lane count = 4
>   i915 ... [DPRX] Reducing link parameters from 4x2000000 to 4x1000000
>
> Two observed outcomes:
>
> 1. Cold boot with the dock attached: UHBR20 and UHBR10 fail, then i915 falls
>    back to HBR3, and 8b/10b training passes for both the LTTPR and the DPRX.
>    The monitors still stay black.
> 2. Dock hotplug: the fallback state is reset, and UHBR20 fails twice. The
>    limit drops to UHBR10, but there is no further training attempt, and
>    i915_display_info still shows port_clock=2000000 on all MST pipes. The
>    monitors stay black. On the hotplug path i915's modeset retry also hit a
>    WARN in snd_hda_spdif_ctls_unassign (from
>    intel_connector_modeset_retry_work_fn -> intel_audio_codec_disable).
>
> In about 12 boot/hotplug attempts on 7.3.3, the monitors came up once or twice.
>
> Workarounds that work on 7.3.3
> ------------------------------
> a) thunderbolt.bw_alloc_mode=0 on the kernel command line: no UHBR attempts,
>    training passes at HBR3 x4 on the first try at boot and after hotplug,
>    all monitors work, no i915 errors.
> b) With BW allocation mode left enabled, forcing HBR3 before any UHBR attempt
>    on the new link also works, and the forced rate survives later hotplugs:
>      echo 810000 > /sys/kernel/debug/dri/0000:00:02.0/DP-3/i915_dp_force_link_rate
>      echo 1      > /sys/kernel/debug/dri/0000:00:02.0/DP-3/i915_dp_force_link_retrain
>    Forcing 540000 the same way trained successfully but stayed black (needs
>    DSC at ~13 bpp for this monitor setup).
>
> So falling back to HBR3 after a failed UHBR attempt is not enough; HBR3 only
> works when UHBR is never attempted. My guess is that the failed 128b/132b
> training leaves the Barlow Ridge DP IN/OUT path or the dock's branch device in
> a state that 8b/10b retraining does not recover, but I can't verify that.
>
> On 7.2.15, i915 always reports i915_dp_max_link_rate=810000 for this
> connector and never logs a 128b/132b attempt or a link training error. I
> don't have drm.debug/thunderbolt dyndbg logs from 7.2, so I can't say whether
> 7.2 enabled BW allocation mode on this tunnel.
>
> Questions
> ---------
> - Should the tunnel's "maximum bandwidth through allocation mode" be capped
>   by the DP OUT adapter's maximum (HBR3 x4 here)?
> - Should i915 handle a failed UHBR attempt on this path differently, keeping
>   the fallback across hotplug and recovering after the 8b/10b fallback?
>
> I have full logs (drm.debug=0x10e thunderbolt.dyndbg=+p) for the bad boot,
> covering a cold boot, a hotplug, and both debugfs experiments, plus
> i915_display_info, i915_dp_mst_info and connector debugfs snapshots from 7.2.15
> and 7.3.3. I can test patches or a mainline build, and can bisect v7.2..v7.3
> if that helps.
> Download URL: https://drive.google.com/uc?export=download&id=1ZE5GYE69IgIpT6fWs5XHmMpseIurGgK8
>
> Thanks,
> Ron Rechenmacher

-- 
Jani Nikula, Intel

      reply	other threads:[~2026-11-23 20:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 21:37 [REGRESSION] thunderbolt: Barlow Ridge DP tunnel reports UHBR20 in BW allocation mode for HBR3-only DP OUT, external monitors stay black (v7.2 -> v7.3) Ronald Rechenmacher
2026-11-23 20:11 ` Jani Nikula [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=7c77eaf0bdd8370e2259c654dd866561ca07d382@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=regressions@lists.linux.dev \
    --cc=ron@fnal.gov \
    /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