Re: [PATCH 1/2] thunderbolt: add opt-in to preserve tunnels across s2idle

From: Tobias Heath

Date: Wed Nov 25 2026 - 10:17:18 EST


Mika,

That's clarifying, thank you — I hadn't understood the two-paths distinction. The behaviour I want on lid-close is Path 2 (runtime-idle S0ix / Modern Standby), not Path 1 with the TB fabric preserved. My patch is a workaround that patches Path 1 to behave like Path 2, rather than using Path 2.


On AMD Ryzen AI 9 HX 370, I'll inspect amd_pmc debugfs (I assume the AMD counterpart of pmc_core) to confirm whether runtime S0ix is entered when the system is idle, and whether any particular device is preventing it. If Path 2 can be made to work on this hardware, the TB patch is probably not needed. I'll drop it in that case and keep only the atlantic fix.


Would you prefer I withdraw PATCH 1/2 now and respin as a single-patch atlantic submission, or leave the series open while I investigate?

Thanks for the pointer — it changes the framing considerably.

On 25/11/2026 14:52, Mika Westerberg wrote:
Hi,

On Wed, Nov 25, 2026 at 02:42:58PM +0000, Tobias Heath wrote:
Mika,

Because s2idle is Linux's path to Modern Standby — "look off / wake instant
/ state preserved". From ACPI's perspective the system never leaves S0
during s2idle; the tb_suspend_noirq callback fires anyway because Linux's PM
core runs the full suspend chain on every s2idle. That's the mismatch I'm
trying to address: the ACPI state says "we're idle in S0", but the TB driver
treats the event as a real suspend and tears down the fabric.
Ah got it. So no it's not the same as Windows. In Linux there are two ways
you can get to the S0ix and you are after the second one. First is what you
are doing now, that's suspend-to-idle and it is pretty much the same as Sx
is except that the OS idles the CPUs and is in full control. All the
devices (not just TB) go through a full suspend/resume cycle (typically).

Then there is the MS equivalent that happens when the system is running and
is sufficiently idle. All the "important" devices like graphics are runtime
suspended (screen is blank) then the system automatically enters S0ix due
to the same mechanism, CPUs are idled. This is what you want I think.

For that you need to look that you have all the drivers loaded and the
necessary firmwares and there is at least on Intel debugfs files under
pmc_core that show what is needed and what states actually are entered.