Article View: linux.kernel.netdev
Article #22573Re: [PATCH 1/2] thunderbolt: add opt-in to preserve tunnels across s2idle
From: Tobias Heath
Date: Wed, 25 Nov 2026 14:42
Date: Wed, 25 Nov 2026 14:42
47 lines
13733 bytes
13733 bytes
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.
Technical Details
Message-ID:
<8e87af01-02a8-4714-827a-62c5beb6f4e4@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371415-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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371415-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 14:42:58 +0000
Organization: Usenet Network
Message-ID: <8e87af01-02a8-4714-827a-62c5beb6f4e4@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="231701"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:G3A6yovgeVpdaAJN1WEK0H4eqNU= sha256:yK3ufbjN3o83i2n43bUTA6uEiyka6EE8X8PeRsLOHmE=
sha1:TYGAdh2WUEZARQBr4Md+kBNR8uk= sha256:6cVYnXqBPheoMN8svsRlBAGeOrMq+IaPigf1iTtBdiU=
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 03EF0125E71; Wed, 25 Nov 2026 17:43: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 4wurLMvAHRhx;
Wed, 25 Nov 2026 17:43:20 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-371415-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 4F295125E6E; Wed, 25 Nov 2026 17:43:11 +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 77D5139D10; Wed, 25 Nov 2026 14:43:08 +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=1795617787;
b=WuRGmy94Jg9Sn0eL2Ekl+JcJ3UL5Z5pBcsG5UZKNnNvvo58B8EiOgUbBJeUdyjEr/Bt0
kQi2iOxiPetPyHQij2c5rwMJp8aeuII/rMw13wq6ny7MVR2mipZYojP+CL7GP7A1N12Cc
Z4vt4siPzmwZuek4Hfo2Kk0QzYqSYtbDBGK2HVTDxDgstFevRrUldOb1o27aUsFKTonkU
7vLZq9XWTsK4t7O4yWKKr1NPh0gjHdne8XLi7pbjF/7tXEBPYuxOl60ubYgNG1OHKPF65
d7rwhLPYgmkM4g/mNoWrSmM9mmG9pSZ+KCIfxPOqToQRA7FARpft57+hGyd2cIvcuNA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795617787;
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=/35ZT7tkGDk3Ixt2BLgjSRrFlCkmFPzwN/R3tpkcoUA=;
b=cvuTINACzKlRW2apPpYc1XWyOpVkaYhQnmqEI/oNG/UWHhBZhyMP8vp2zpb2LgUylV3L
SFhwIGtuiMdF4zgyFiQtsymOv6UEnDVnOgmfqznNF232tzWCMMlvfAOmL2Ywy/st+VDsL
kpSKzApDxwf7DgJ3/OWuLnW8sRzDa215uLseBTEkmJtLYwUx/5YLZ26IfTubd3Qm7uegp
oQ+aO9kjnIsWyW5RcRPXiwUGs9+fUbdCLDZqBiVaUMn0KWSO0UWECLP3B7EAp6rszP1or
PzU8gP6QLckOK87P+AsNqixP61JsiE05NZtk7pronu38NQ8y6+ZwLcY0lFehOQ4hQ8g==
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="extl/f2J";
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 1E8D3606A337;
Wed, 25 Nov 2026 14:43:07 +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=extl/f2J
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.47
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795617781;
b=rIebz1+XI9ymhFnfmbPAjdFImhTxR14J4DIfa9taFipQkLi8PvBzZNhooj4l/35Lln4W
8Lb3bp3wxCK5HzaIQt9pQgw18KnOmNleqKZzRYGAPQYVuUeI4SUY+GCKl1uTeQts3toGX
S+DSVj3eqcGddS+wvqZ0TU8SyfSt0oRPiSt6N1KJADLWtdACwq01wIe5MGg0/2Xm/9RVD
IXGDJy3dkrN++W1tHIHCa0cfnSRsvFcnKGco5l5vC8vJ0NNUZbvW0eBPEaY/ZKVEIQAHi
cvWFKwDh6Lzt3HKgbhizAp+7btwuQWT2YAuOnk33BuXu0WsNvvuEp+8R90NK8UNVRhw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795617781;
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=/35ZT7tkGDk3Ixt2BLgjSRrFlCkmFPzwN/R3tpkcoUA=;
b=E5VCREEcRpGXvye7lvWPYxuy8vI9IBW/n28CuGCa+h0WLdUaPC+jALEsJ1UsYy8YpOpD
IvhFjSSjV6891+T3iKzBb0t3olFQkgGqH8MRpaheQ6/+Jjr/aJDm4IwCtksAFfH56CL7j
HYhz2SnnpQGMtcO1abcX0HmWMZzqMZwfujR/ZBX6Lc9nb8VmirIgWQfeL9BjUTyxyFpdl
xvoectXpI1TAVBGnyRVlOxC95bOwjhVq5SnL4Ps9UTy/sPmY7eee1o5hSBeIxRjOs5jk7
pxTiU0bdX/Pnca1emqxelD+kXGU5nniBOtf7e4R2pBx4jrYlSCGckMz/t9ToGaueK7w==
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="extl/f2J";
arc=none smtp.remote-ip=209.85.128.47
X-Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47])
(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 D5E33606A321
for <netdev@vger.kernel.org>; Wed, 25 Nov 2026 14:43:00 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D5E33606A321
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-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4bb6c7b6dbdso54462905e9.0
for <netdev@vger.kernel.org>; Wed, 25 Nov 2026 06:43:00 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795617779; x=1796222579; 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=/35ZT7tkGDk3Ixt2BLgjSRrFlCkmFPzwN/R3tpkcoUA=;
b=extl/f2JmF+dJyf9e7Sz8XwAObqKDRZ2YbD9JT5vtwcT6zXb+6me8N2JZzCWWXomsl
9/UxEE6X12IGI+eMckkKwuz0B1vEJl7AMthCVkwfafvq3qVl2ZMzp7lfHbbJCd324Hl8
jEaGZpyK3SyC88pnDrhUdCd2stspvI5zxDFqrLSlgGnUSqDh4rs5YNPFUeXEa2MDaDBo
SV6Hf1ZjL/ATKf+A01RgrncPXAbC8st7sX9fC2KiKnuF7rvSNU68/NQLgP3UvGF4dFq8
Nm33QEhwDoiVI9tqdAx20XbX7b3gHKmMKnXotcs34/D+PcFx5r4M5i0gaBSHt9Satl+Y
A7vg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795617779; x=1796222579;
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=/35ZT7tkGDk3Ixt2BLgjSRrFlCkmFPzwN/R3tpkcoUA=;
b=0nVZyDaAPhJ5IRRJ30B9XG02ZeLuSbMfvlVZep9IoOcEuO+tf5ZUejarSV+9s6eUmu
MkywrehqktdJ1i9Nn5UacSl+6n2r9IzBmohA/tpAg181/4aGqYDW5jbw2t92I4PkKDHQ
P9xygrMAEEQ1rvFgJFmCDBgVj/EmeG16dEAd4QkvqLdMnwkiNTWY9RXW8R+Rj3N/e0yv
VpIvkJL0ltCJXudYaNuo2MsXZaORHPzx86GvPlUQiUnYTnOSCeEAntdmnxYQQqipmTk7
bfK3lH/oM2aofuAT1rvhG59w+ecsuO6xvZ9quwAD9HpqabKhTDdCkZpSGi98HIMNNW0g
jJBA==
X-Forwarded-Encrypted: i=1; AL+hErET3hfoIkARUZD7V95T6NUiVoFmTtG+gk5ZPWFcpx2up+U/7aYpvnXWSwQthx+AB8PjeeaPUJk=@vger.kernel.org
X-Gm-Message-State: APuU4Z/MbZgmnCt+bVea9JbzlXSt3oFoxt7o2VrTr2TSqg/5eMtctheZ
XMNVmuQoDXz2OmnLbfd8PVwCjaujPfhoV9sjSVhX8ECRXhg0wOkRSpct
X-Gm-Gg: AZFdTZcT6ZMVSHRmS5Kwkba1fZo2bWK+hkNPkn/7ZvDljR/iB6y+rV+2Q7awIDSXNwt
KoiemACQnSPw2/4ZGPWj6JIIJo+bfPnQRGVyJ044TnLZLGTjNeOIbwpjlPXrm1OgEDLsfteUQa6
TyjvWVF/9fIoEhKKWpqoTH6zkUtoZwHL6Qilud8Q432vrQe1Qagk406KFkrU7xCEWJIk9qlLqZr
jq41XsWSpIKZXy9JzRXZA0y1eGuX3Vv4gtZkqO65qPB7/gWzvBjWh3a0xqLzpt2wGcktzHtMocj
TiBzsrQ/X57ojfaaCy1/5U3f0LT46beuaiuakcar/LnElz5LFoWIXVg9JesPWzrpxvt3HxJMczn
TmisSoHbdjEU4C76iDaswzybNgtGkpvnxa5ZoWCbQ0sEgrutl29wYjanBticc+Zaw+27sUH2uE3
5U/XSMFAx0Edv7NV/EbSe3ANuHZNObJ8qq69jBzpKTfnH3FZcQ9kK9W0Fft1SDofq9ODR3H1Zfs
eY2hWi1b0itQ0xBUkiExVr59MKuFiI4MVxDHUXWXe3PpJ7/sECFrDg8cuKKBryLkx7pfFW3XWYM
LL06fabvuJH9p8HTlrZ7I9muT7/9fqlRf/Ds+ZMpG0y3ckhhsVhdn5Qtwui+YgfXCd0gKYZ4IPx
HtuVGvKHFAp8=
X-Received: by 2002:a05:600c:8210:b0:4bb:6a2d:b438 with SMTP id 5b1f17b1804b1-4bb88786c81mr365655885e9.0.1795617779014;
Wed, 25 Nov 2026 06:42:59 -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 5b1f17b1804b1-4bb8526cbd0sm684133775e9.0.2026.11.25.06.42.58
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Wed, 25 Nov 2026 06:42:58 -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: <20261125143531.GG191152@black.igk.intel.com>