From: Tobias Heath <heathtobias@gmail.com>
To: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Andreas Noever <andreas.noever@gmail.com>,
Mika Westerberg <westeri@kernel.org>,
Yehezkel Bernat <YehezkelShB@gmail.com>,
Sukhdeep Singh <sukhdeeps@marvell.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Richard Cochran <richardcochran@gmail.com>,
linux-usb@vger.kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] thunderbolt: add opt-in to preserve tunnels across s2idle
Date: Wed, 25 Nov 2026 14:42:58 +0000 [thread overview]
Message-ID: <8e87af01-02a8-4714-827a-62c5beb6f4e4@gmail.com> (raw)
In-Reply-To: <20261125143531.GG191152@black.igk.intel.com>
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.
On this hardware the dock-side TB host has power/runtime_active_time =
515 s and runtime_suspended_time = 0 ms since boot, because the USB
tunnels downstream keep it in D0 continuously. Entering s2idle doesn't
change what the user wants that host to be doing — the laptop's job is
"look off, wake instantly, don't drop the dock" — but current code
forces it to D3cold anyway and pays the full re-init cost on every wake.
If you'd prefer the driver auto-detect this (preserve only when sleep
target is s2idle AND the domain has active tunnels), instead of a module
parameter, that works for me.
Happy to spin v2 along those lines if you'd accept the general direction.
Many thanks.
On 25/11/2026 14:35, Mika Westerberg wrote:
> Hi,
>
> On Wed, Nov 25, 2026 at 02:26:56PM +0000, Tobias Heath wrote:
>> Hello,
>>
>> Many thanks for your reply.
>>
>>
>> On this hardware the dock-side host router is pinned in D0 by active USB4
>> tunnels and has not runtime-suspended since boot (active_time=515s,
>> suspended_time=0). The quiet host router does go to D3cold exactly as the
>> spec describes. The s2idle_preserve=1 path keeps the state that runtime-PM
>> would have kept anyway — it prevents the system-suspend path from forcing a
>> D3cold transition that tears down tunnels users still have open. Would you
>> be open to a v2 that scopes to 'suspend target is s2idle AND domain has
>> active tunnels' rather than a global module parameter?
> Okay so you blocked D3 entry intentionally. Why you are even entering
> s2idle if you want to keep the tunnels up? Why not stay in S0 then.
next prev parent reply other threads:[~2026-11-25 14:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 12:39 [PATCH 0/2] thunderbolt + atlantic: preserve dock across s2idle; fix surprise-removed deadlock Tobias Heath
2026-11-25 12:45 ` [PATCH 1/2] thunderbolt: add opt-in to preserve tunnels across s2idle Tobias Heath
2026-11-25 12:48 ` [PATCH 2/2] atlantic: skip hardware teardown when PCIe parent is Tobias Heath
2026-11-25 13:22 ` [PATCH 1/2] thunderbolt: add opt-in to preserve tunnels across s2idle Mika Westerberg
2026-11-25 14:26 ` Tobias Heath
2026-11-25 14:35 ` Mika Westerberg
2026-11-25 14:42 ` Tobias Heath [this message]
2026-11-25 14:52 ` Mika Westerberg
2026-11-25 15:16 ` Tobias Heath
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=8e87af01-02a8-4714-827a-62c5beb6f4e4@gmail.com \
--to=heathtobias@gmail.com \
--cc=YehezkelShB@gmail.com \
--cc=andreas.noever@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=sukhdeeps@marvell.com \
--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
all inboxes | Powered by JetHome®