Article View: linux.kernel.netdev
Article #22615Re: [PATCH 1/2] thunderbolt: add opt-in to preserve tunnels across s2idle
From: Tobias Heath
Date: Wed, 25 Nov 2026 15:16
Date: Wed, 25 Nov 2026 15:16
48 lines
14115 bytes
14115 bytes
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.
Technical Details
Message-ID:
<d05aa4e7-5c58-4311-a85e-6bfe9c31c62c@gmail.com>Path:
mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371468-linux-kernel-netdev=dewy.ruReferences:
<8fbb5876-e556-45a1-96b5-4a8061de9e5d@gmail.com> <31d3413a-9aa0-4208-8e15-3ba85829ef79@gmail.com> <20261125132228.GE191152@black.igk.intel.com> <a08cb3e1-10a0-4a35-9258-cd510b91985e@gmail.com> <20261125143531.GG191152@black.igk.intel.com> <8e87af01-02a8-4714-827a-62c5beb6f4e4@gmail.com> <20261125145207.GH191152@black.igk.intel.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371468-linux-kernel-netdev=dewy.ru
From: heathtobias@gmail.com (Tobias Heath)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH 1/2] thunderbolt: add opt-in to preserve tunnels across
s2idle
Date: Wed, 25 Nov 2026 15:16:26 +0000
Organization: Usenet Network
Message-ID: <d05aa4e7-5c58-4311-a85e-6bfe9c31c62c@gmail.com>
References: <8fbb5876-e556-45a1-96b5-4a8061de9e5d@gmail.com>
<31d3413a-9aa0-4208-8e15-3ba85829ef79@gmail.com>
<20261125132228.GE191152@black.igk.intel.com>
<a08cb3e1-10a0-4a35-9258-cd510b91985e@gmail.com>
<20261125143531.GG191152@black.igk.intel.com>
<8e87af01-02a8-4714-827a-62c5beb6f4e4@gmail.com>
<20261125145207.GH191152@black.igk.intel.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="239898"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:SxeBIAudCfAPlDr50vbgRS4ICQs= sha256:0jNLlmsOBZt3WzCC0B3MhCAR7V3arowQBp3iZYbdylo=
sha1:Q5XcM1nKmIy73cWedSMcPh4Mt9I= sha256:7bG2R0jTIn+bhTL9FMUnmfJT/lRP9s25ewPMRcDzN5Q=
Content-Language: en-US
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id C2D8B125E7B; Wed, 25 Nov 2026 18:17:28 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.949
X-Spam-Status: No, score=-1.949 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id mEYTTESUr65z;
Wed, 25 Nov 2026 18:17:25 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-371468-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 75DAC125E7A; Wed, 25 Nov 2026 18:17:17 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 2B2812F3FB; Wed, 25 Nov 2026 15:16:33 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795619790;
b=Fn7IJZy7DTtpIIjiIdUo0Zz86DbLIJbU89mOKpA13f+0hlrxCxjDY/XICxnTh8qZRuQQ
oZRwK+D1qU/qxQc8YxUZ1ilj0iJCBv+nqWMOYQscSDc31ZVh1OvGfor34j/F+CT/MOGh/
ih/7T+rhdSFOqXwh/82XR0yVd4uXJtJAExPV8ftKHNGUFdeJpyeJoVcCt9hkPg/dRuSVh
IS1t6GakQnIoVJ3MDlBpQwaBW/8J1I7aNPWYD73aqv1aoPIOUMwvJdcUw8F2CF7Dsnr0d
YCmwJJ1XyDkw3LDyfo+Cu2H8NqaDKzjaNHNgFu8IwhCVGZUgYggTiYrP65EvDn8FelA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795619790;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:Message-ID:Date:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:User-Agent:Subject:To:Cc:References:
Content-Language:From:In-Reply-To:Content-Type:
Content-Transfer-Encoding;
bh=fZhnpMGuy8q+jXTQK/RAHc/+Uuj/d7tbWlMf2HdxJHU=;
b=AsXee+Jrr7FC7WbHVDLJVmd9WqnQFNACw/KbcQF6RpnB+ZQ6FNcfeIq7+1M08hl3LsQ0
xrpKROXaQuLTFeoTlI+3y/qRcaa2CFdsg36965avmeAn05N9xhaVk1Ac9DtV/AlC03CHw
MBHlI65oNGl4IB3DjxGVFSYRUBcIoKWN1XSJbCRMqnVBv6mGkbPdNwtukjcRQE39hZIXI
HURifwiiNRjv6/jrGiBbtxt2xhXaP3NCxI5NGfzoaIuSqoocVONrGCl2ne9BO6sHB90NM
JNdbrrxrG1FdC8r9o0Nxy9flauHa1FpCuDg8P15k8Tmu1AvxeY2O8H9HaPEE7+siJdQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=RHwphIVO;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B6FD606A32C;
Wed, 25 Nov 2026 15:16:30 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=RHwphIVO
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.50
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795619789;
b=nB2UFglYVrkY3OD/61ul0PPsXvbxnMnXhn/xqV52miipXi7CvWXfaanYfV5TqDcRHbjW
NXk3LWlXZIulnQOFreYuAxMucXTlQtlo/UrENuRsNkhfg1AWXQTgUtntlbGBnwMZpEOPJ
73B8D0Bk7VgwpaKg2TsMWESA9qhogWuObOQ2UQ5EX/cgJk315czYySEA9kDuTqQ58nHvd
56TixTAsOcc3tS6Oyh6VS+2Va/qrzhnHCUGO3B9p1/TcmSCdggCq2hJXT9gIGVnh4Fes2
7Z9P6DxXrHLXXz4HgFl62I858nHjbixXUktJ/fmL4a2ag2+EmAF+n2ZgZdVwO3LXpww==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795619789;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References:
Content-Language:From:In-Reply-To:Content-Type:
Content-Transfer-Encoding;
bh=fZhnpMGuy8q+jXTQK/RAHc/+Uuj/d7tbWlMf2HdxJHU=;
b=zLwZhGJxTSM4obQjBBnIx+EtK4BFwjOt/fn8FwZwO7ey9hNe4y9Eds1PYaj/L+EsJAgP
J5Xx7/uupFdoMf+BLpquCtsBch7O64cGkhwY4uJGeI9u3rSHQ/4uMOW62hSHb04N+52pm
ZRy1+g1sB0FHsp4b+g1WA+9lmA8XkZdtNAYGPhU2w1HZTHOC6ZXVgtuqp4h90/0c1xSlN
ObP82UT+CnbJgPtnHA3Nq5tQcrQwynz/4AVj7xDKCcjbUDbgmpStazluYzghvZQjPRnUj
loj7pOh3yuPmBBTPWI9vSGj3mZP+IIQdzUERuFXJ0HvMBjbhH+/O1NCM/wxN6iazjPw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=RHwphIVO;
arc=none smtp.remote-ip=209.85.218.50
X-Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 56CEA606A327
for <netdev@vger.kernel.org>; Wed, 25 Nov 2026 15:16:28 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 56CEA606A327
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-c5188e4980fso101028466b.2
for <netdev@vger.kernel.org>; Wed, 25 Nov 2026 07:16:28 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795619787; x=1796224587; darn=vger.kernel.org;
h=content-transfer-encoding:content-type:in-reply-to:from
:content-language:references:cc:to:subject:user-agent:mime-version
:date:message-id:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=fZhnpMGuy8q+jXTQK/RAHc/+Uuj/d7tbWlMf2HdxJHU=;
b=RHwphIVOhqawxkHBNyWJGoTHoIONjZw5hdSAz7G6eZpZxXYutLRqFVyHNPqp2DVpKp
Vzql0LSSc14wBe/3iQ8C5qavy0zPHQmEJTHMUlNB6Kq4by58yqRIFqKJAULrdtW2oObw
UyGWoAUb9M33dFb/sKbWkRyC/hBX7EUKe2f/RQ1QJaPMWd4NbckoW4P263kzgPAX954R
oc4glW1QnHwsJ7eXrhGm7qzd8FztHw6IcH2MmSXLyqALc/7tw16xDwcSBAE0bO+PwpRe
pwKg+j0vnSt5Ddi0B2HJrmJD1LoPUKgchSeUrXC1XA3Dd2GTOdiUOdIfjsGM7vVPddoN
JKkA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795619787; x=1796224587;
h=content-transfer-encoding:content-type:in-reply-to:from
:content-language:references:cc:to:subject:user-agent:mime-version
:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=fZhnpMGuy8q+jXTQK/RAHc/+Uuj/d7tbWlMf2HdxJHU=;
b=ixCA60syzhRmu7Aq1Y0N1bU/qKJ7q4YeWhT08WpiVZZop8fFlicPPDeJLoxpqfIPlf
kkZaF6hJW1wbN/6ecC6KRhRubSOUbA4KPIp22fjGzbN/VUNQb2fczS5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lWfIDoNWQ
O7uFn1W8oyYyu5gjE560p3MZSBrPkjkoespC1wVeHNRJCN5EcXD/vt49mCcD7w1tPw==
X-Received: by 2002:a17:906:3811:b0:c43:eae5:ee80 with SMTP id a640c23a62f3a-c513a84f5e8mr1208263466b.17.1795619787223;
Wed, 25 Nov 2026 07:16:27 -0800 (PST)
X-Received: from [192.168.0.61] (firewall-214-232.seh.ox.ac.uk. [163.1.214.232])
by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c51beef9244sm6971166b.28.2026.11.25.07.16.26
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Wed, 25 Nov 2026 07:16:26 -0800 (PST)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-User-Agent: Mozilla Thunderbird
X-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
X-In-Reply-To: <20261125145207.GH191152@black.igk.intel.com>