🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22603

Re: [PATCH 1/2] thunderbolt: add opt-in to preserve tunnels across s2idle

#22603
From: Mika Westerberg
Date: Wed, 25 Nov 2026 14:52
27 lines
11189 bytes
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: <20261125145207.GH191152@black.igk.intel.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-371453-linux-kernel-netdev=dewy.ru
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>

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-371453-linux-kernel-netdev=dewy.ru
From: mika.westerberg@linux.intel.com (Mika Westerberg)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH 1/2] thunderbolt: add opt-in to preserve tunnels across
 s2idle
Date: Wed, 25 Nov 2026 15:52:07 +0100
Organization: Usenet Network
Message-ID: <20261125145207.GH191152@black.igk.intel.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>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="237447"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:iG25SbRqUbhEcgpCpaQ0CIPqHlM= sha256:HX60u+gprqa40mos9gDdonymaHdK4xPZ77+no6vDrks=
	sha1:9nAyfELBm86vMbTwEmS/k0eEXO0= sha256:sSyRx43BL7oFGHiuH6540uwnXg6G5hKxjowAks3Pf08=
Content-Disposition: inline
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 0C3C3125E7A; Wed, 25 Nov 2026 18:06:59 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.951
X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=intel.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 KVv2qhBDxVpP;
	Wed, 25 Nov 2026 18:06:55 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-371453-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=linux.intel.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 1A4E4125E78; Wed, 25 Nov 2026 18:06:44 +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 516652FC7D; Wed, 25 Nov 2026 15:06:37 +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=1795619195;
	b=nZijo0p1Zp+aymQJ+MVTIVPjGMEOMKeXwWhD8JIWqcAC1TcJHCyxWRkpvL6f7yHJIeRa
	 HfADIWWIU7ybvx2RQ7GCQ0e3nrvP2dgmblRblIAfkYYT0r6e9/inPzPkly1iZPwZF9l8z
	 VrMLAScfbZZgHYbkGz3PSaSvGv1fIj2QfbnOPNyiIF127V/2pjGcteL3K9AguiVdvnDYV
	 4GScZHoJdz3SnAbZpxpybU9K061Tjm3i/f29rCSOJcMdYObXi1aSijz1eTmlwqfl49hTY
	 yT7V4NZVbR7qw1nyehvWKiTFX0YQ9qibxkn+j07+Scs/Ki/TuYdywwzD3k01+tcpNqQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795619195;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:
	 X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-IronPort-AV:X-IronPort-AV:
	 Received:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:
	 Received:Received:Date:From:To:Cc:Subject:Message-ID:References:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
	 Content-Disposition:Content-Transfer-Encoding:In-Reply-To;
	bh=PBfUJMvdp1Zgdhs8q8UlzbfaO4JeJJa8lPNEJ82oZcI=;
	b=CwFXeJtpGJWOVOYt/Wn7OtjLXH/vhlZ4GM+JCpKuCaT1hfAbZ0BDxjQz1JDGdJzs7VLW
	 XimoxGncajHc8Cyx7j4IBI6rBiA4N/Ot1d0Pv86MVjRTjaQSxPfBZSSrLkUiz/CsMWFOh
	 UsukLZKR1+35mBrKCjgjhCt2J+auEBzM4+B8BMMqc4aam6tfbxAW4CoGsU9Bymi+nEF4D
	 8K+6Sv1p0ltoftwK64QtK+5AXfDnPtZWzibGnpcUgYlmYYLgQXVh3D4FyBHqDNRJXo3En
	 XNESy37UNKCZPwx4+mZBFwdTQcmBeemolh58SRxRePiwPMQSLjEiz+FTyivA/X4hWMg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=R3ieUhgD;
	dmarc=pass header.from=linux.intel.com;
	spf=pass smtp.mailfrom=linux.intel.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 E559F606A68E;
	Wed, 25 Nov 2026 15:06:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=R3ieUhgD
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.7
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795619189;
	b=aa5noNAiWqWzowiBzaOrF7+XGJlBc9pIc5kysUP+rkVwrhAIepvSh1LwXGP3mQzB6/5g
	 ay4MLmlw0a7gjWQFuRt/york4alr+j3ZniUg8K3+0LLiBTPxY23zhihjQSh9i76+TuKKP
	 2/Z9Ed6iM5L/gSW47JWVsbU7vXFOvYJSGnfBPJz9uDA+jEJl53Z/F4ykzHTDKfeYbdNQT
	 pT8imsXiY7kiXXxXRQsmhjocvL4Fd7dufYoJabYfZG5xQodp8tKiphPJKjtEMCBZFseIt
	 U24xdNmbDDtNNILXT3NMkiBlw09MPe+pE3eGw0Zcdcb3ea3L8W/3wkmsAnus9PIGo6A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795619189;
	h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID:
	 X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID:
	 X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To:
	 Cc:Subject:Message-ID:References:MIME-Version:Content-Type:
	 Content-Disposition:Content-Transfer-Encoding:In-Reply-To;
	bh=PBfUJMvdp1Zgdhs8q8UlzbfaO4JeJJa8lPNEJ82oZcI=;
	b=jGDmg4CaakDE2dXJqC6cPjg6sNoxk6cD066k8M13SwxyB9MrnGkdOVKkcjIG3E2ehCar
	 onE3INLZNNX5ihSqxU+MVqq9A7Fns46FuYWrYUr7EVEF8c/mvKbMAzZk380BVwZ43hM0W
	 yw9myPMfsmgNZ4akuwWvx7o3DGmpmLRfwaNi0pKtcZEheWSxUIBtwHnIdOoUmZvO4hbGa
	 nTlIzqe6Ze+EEnSQXbku2h4dUIT7PfjGABev5osW0BVJmWvpawBVA9D7lEGAjZpeHHsfA
	 ejU4bpGYI8zyg6a3zGGsYmuKto95Ox6D/edAljGMSamxK7lKc2usZ2UmnVGi0AEBEhg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=linux.intel.com;
	spf=pass smtp.mailfrom=linux.intel.com;
	dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=R3ieUhgD;
	arc=none smtp.remote-ip=192.198.163.7
X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7])
	(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F04E606A323;
	Wed, 25 Nov 2026 15:06:26 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3F04E606A323
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
  t=1795619188; x=1827155188;
  h=date:from:to:cc:subject:message-id:references:
   mime-version:content-transfer-encoding:in-reply-to;
  bh=yizFP/bO5VWvDoobNH8pDEY0FcC9RrW/mVnpWQ9eZHw=;
  b=R3ieUhgDVZrai+orD9zDFBKNr7yJRR57ZJgssXmFX3l+YyAvkZ6gG1GB
   3jRcw9DJqMuQ2LzYI4jH7xA3rGFdNdxQ0m3DzibYWfCDX26xZ5Idd3JBS
   B1kOg9bv8DZrpMxsGNv6BT9c8YAhQRgs/jt7Bp5HlSMVgvOOi/bw3j5zV
   1IM6Hsqhz/wBiH7IpoifmgdvDKzcaUFn9eUWMZKqZ2ertc4deHEXnM7UV
   fv4HYr9sZ2zfaX26vQrLjBou4FQ6wCyJdp8fOsCuCFjzezlmrU61pRQF4
   IcEsW5JNFPBQcI9oD+VFS0ZTnCLDY4r6kA0GBE0U14hJ3QKrYzodBNDfu
   Q==;
X-CSE-ConnectionGUID: tHMbFtEoTSeI7yR9Us/GiA==
X-CSE-MsgGUID: 9wOtup4rS3merMe4qKU8ag==
X-IronPort-AV: E=McAfee;i="6800,10657,11977"; a="4359617"
X-IronPort-AV: E=Sophos;i="6.27,233,1787036400"; 
   d="scan'208";a="4359617"
X-Received: from fmviesa008.fm.intel.com ([10.60.135.148])
  by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2026 06:52:11 -0800
X-CSE-ConnectionGUID: iNuhGpGiS3On5k/MD3M5MQ==
X-CSE-MsgGUID: bijc1W1MRvuAsI8aaGeApQ==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="6.27,233,1787036400"; 
   d="scan'208";a="12172389"
X-Received: from black.igk.intel.com ([10.91.253.5])
  by fmviesa008.fm.intel.com with ESMTP; 25 Nov 2026 06:52:09 -0800
X-Received: by black.igk.intel.com (Postfix, from userid 1001)
	id BFF2898; Wed, 25 Nov 2026 15:52:07 +0100 (CET)
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-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-In-Reply-To: <8e87af01-02a8-4714-827a-62c5beb6f4e4@gmail.com>