Re: [PATCH 1/2] thunderbolt: add opt-in to preserve tunnels across s2idle
From: Mika Westerberg
Date: Wed Nov 25 2026 - 10:06:52 EST
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.