mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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 15:16:26 +0000	[thread overview]
Message-ID: <d05aa4e7-5c58-4311-a85e-6bfe9c31c62c@gmail.com> (raw)
In-Reply-To: <20261125145207.GH191152@black.igk.intel.com>

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.

      reply	other threads:[~2026-11-25 15:16 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
2026-11-25 14:52           ` Mika Westerberg
2026-11-25 15:16             ` Tobias Heath [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=d05aa4e7-5c58-4311-a85e-6bfe9c31c62c@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®