linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: "František Tichý" <linux-development@tifran.cz>
Cc: Mario Limonciello <mario.limonciello@amd.com>,
	Gia <giacomo.gio@gmail.com>,
	Linux regressions mailing list <regressions@lists.linux.dev>,
	westeri@kernel.org, linux-kernel@vger.kernel.org,
	"stable@vger.kernel.org" <stable@vger.kernel.org>,
	kernel@micha.zone, linux-usb@vger.kernel.org, Sanath.S@amd.com
Subject: Re: [REGRESSION] Thunderbolt Host Reset Change Causes eGPU Disconnection from 6.8.7=>6.8.8
Date: Mon, 31 Aug 2026 06:52:26 +0200	[thread overview]
Message-ID: <20260831045226.GA124825@black.igk.intel.com> (raw)
In-Reply-To: <f8d6f64b-0783-46bc-82d9-cd56da07cac0@tifran.cz>

Hi,

On Sun, Aug 30, 2026 at 11:33:31PM +0200, František Tichý wrote:
> Hi all,
> 
> I've run into this issue on 7.0.10, 7.1.6, 7.1.8 and 7.1.9 (specifically
> Linux 7.1.9-arch1-2), as well as LTS kernel 6.18.45.
> 
> to Mario's questions (thank you for them; they were captured on the
> 7.1.9 kernel):
> 
> > Can we please get some kernel logs for these two cases on the command
> line?
> >
> > thunderbolt.dyndbg=+p
> 
> Here you are, the system does not load the graphical interface:
> https://gist.github.com/Poirot12345T/be6b7849e039687e248b8c302615d9f3
> 
> > thunderbolt.dyndbg=+p thunderbolt.host_reset=false
> 
> In this case, graphical interface loaded successfully:
> https://gist.github.com/Poirot12345T/c63a1a3b2b6609b30a1182e7681fbec1
> 
> > Also what is the value for:
> >
> > $ cat /sys/bus/thunderbolt/devices/domain0/iommu_dma_protection
> 
> That returns as "1" on my system.
> 
> I've also done some digging myself, here's what I found out:
> 
> (note: I will use host_reset=0 in this post, even though the thread used
> host_reset=false. These two values are functionally identical.)

Yes correct.

> Originally tracked down in amdgpu bug tracker
> (https://gitlab.freedesktop.org/drm/amd/-/work_items/5632) and based on
> the suggestion to use thunderbolt.host_reset=false mentioned in this
> thread, I traced back the issue to commit 59a54c5f3dbd (authored by
> Sanath S, CC'd) which touched drivers/thunderbolt/tb.c (Thunderbolt/USB
> subsystem, added Mika Westerberg as a maintainer and CC'd linux-usb
> mailing list), more specifically function tb_start() and this code block:
> 
>     /*
>      * Boot firmware might have created tunnels of its own. Since we
>      * cannot be sure they are usable for us, tear them down and
>      * reset the ports to handle it as new hotplug for USB4 v1
>      * routers (for USB4 v2 and beyond we already do host reset).
>      */
>     if (reset && tb_switch_is_usb4(tb->root_switch)) {
>         discover = false;
>         if (usb4_switch_version(tb->root_switch) == 1)
>             tb_switch_reset(tb->root_switch);
>     }
> 
> This block should be located between lines 3060 and 3070 of the above
> mentioned file as of the time I am writing this post.

Does is work if you boot with the device connected (and host_reset=0) and
then once the system is up, unplug the eGPU wait a little and plug it back?
That's essentially the same thing as what host_reset is doing and is pretty
much the nature of buses like USB4 (e.g the user can unplug the device at
any given time and plug it back later expecting it to work).

> I was able to reproduce this issue using AMD RX 7600 (journalctl dump
> link:
> https://gist.github.com/Poirot12345T/909f3d071f87655d875445e536da74d3).
> I have also tried NVIDIA RTX 5060 with the nvidia-open driver which did
> not trigger this behavior in the default setting. (journalctl:
> https://gist.github.com/Poirot12345T/4deeae10508e3971521aca9e612b5737)

It depends on the GPU driver. Some of them are prepared for PCIe
hot-removal, some are not yet. With the rise of eGPUs I would expect that
we are seeing more and more support for this though.

The ones you shared above looks like amdgpu driver and I don't see any
issues in the dmesg.

  reply	other threads:[~2026-08-31  4:52 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAHe5sWavQcUTg2zTYaryRsMywSBgBgETG=R1jRexg4qDqwCfdw@mail.gmail.com>
     [not found] ` <38de0776-3adf-4223-b8e0-cedb5a5ebf4d@leemhuis.info>
2024-05-20 14:39   ` [REGRESSION][BISECTED] "xHCI host controller not responding, assume dead" on stable kernel > 6.8.7 Christian Heusel
2024-05-20 14:41     ` Mario Limonciello
2024-05-20 15:12       ` Benjamin Böhmke
2024-05-20 16:21         ` Mika Westerberg
2024-05-20 16:53           ` Benjamin Böhmke
2024-05-20 17:30             ` Gia
2024-05-21  5:11               ` Mika Westerberg
2024-05-21  8:15                 ` Gia
2024-05-21  8:59                   ` Mika Westerberg
2024-05-21  9:12                     ` Gia
2024-05-21 11:26                       ` Mika Westerberg
2024-05-22 14:41                         ` Gia
2024-05-22 15:19                           ` Mario Limonciello
2024-05-23  4:45                             ` Mika Westerberg
2024-05-21  4:59             ` Mika Westerberg
2024-05-21 10:52               ` Limonciello, Mario
2024-05-20 15:57       ` Gia
2024-05-21  5:15         ` Mika Westerberg
2024-05-21  8:07           ` Gia
2024-05-21  8:55             ` Mika Westerberg
2024-05-21  9:24               ` Gia
2024-05-21 11:29                 ` Mika Westerberg
2024-05-21 10:50               ` Limonciello, Mario
     [not found]   ` <CAHe5sWYnbJAjGp66Q4H0W_yk9uYTcERmW=sPvJSWTsqbFZFCVg@mail.gmail.com>
     [not found]     ` <9659dd5d-af8d-4100-8fc1-ceca42223827@amd.com>
2026-08-30 21:33       ` [REGRESSION] Thunderbolt Host Reset Change Causes eGPU Disconnection from 6.8.7=>6.8.8 František Tichý
2026-08-31  4:52         ` Mika Westerberg [this message]
2026-08-31  5:25           ` Mario Limonciello

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=20260831045226.GA124825@black.igk.intel.com \
    --to=mika.westerberg@linux.intel.com \
    --cc=Sanath.S@amd.com \
    --cc=giacomo.gio@gmail.com \
    --cc=kernel@micha.zone \
    --cc=linux-development@tifran.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --cc=regressions@lists.linux.dev \
    --cc=stable@vger.kernel.org \
    --cc=westeri@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;
as well as URLs for NNTP newsgroup(s).