From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.49 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795619789; b=A6Igm/C3RpSDCzlCyKZU9K2KW7yGyS6qXHMzZKfxv91kjr1xyap10YkNBy43Foizu6zk EgMQnPAzByg5RcyBpZMKARMSuBVkZwx6qMcH0J5KynJA+ouvg/AhSjpy+cOZ46ct1l5Wr YzWfVEkPzJt3vLAZe5A+33CGuquLLPQgzkaiF8HIWH0XZXyaRh2ph7Fl8ClRxmzccZBAn pIZY/KZ11EyYKy2gRjMHmcroHWdmL6IBirs2/glg/+2Px+DNr/Y8+Zl9Dcn2IvQMcdmYW /YWIln8Ytza2PV2PDCxIGcJhLwamGAQho7vzWg+astSuydZ0juyfm6QvjHHCkng+kyw== 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=jWJ3Dpna2xKhmaNq250UVE9JEstVewVlDv+wzIsgCoBA0IbIrjz3VwTluH55LAbUHZ7y yfGkIzB++6mtxqzB3gLdp9PIraoWtj1UzWdTMUHEAHe2ZjXOE16X5xI/9H6arWcWS++PH nl7/9D3qRn8dBuGz98Q1jN6LW1NeJAk90Ay/edjjTvF+6PPKyQ8LRCVmN96IrBHcRAxOB BrzwzUueY73wZJJ9T8U/CH1XOfBmfzYhHApCG2D3Ergk5QDrNY5n8COkg+h3Qyf5cOFjR ec6ZfC1+5O6Pt9CtT9qAtktHbnsjoTKtnoDSUgXHcox+j8FIhhL427EUNIlGXigUigA== 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.49 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 064A6606A31E for ; Wed, 25 Nov 2026 15:16:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 064A6606A31E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com 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 Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-c5188e4980fso101028266b.2 for ; Wed, 25 Nov 2026 07:16:28 -0800 (PST) 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=TUTdgQVyn98y5xUGAgNMM2pkmIGYkPThgmMvyXzDFIQAnEWBMS/8ljnSOKZUgeqE4r hiKVE/TZGVyoXc3X7OXDJ103b/hj/cUQWbIKG92jbALDy0G9EJR4t0xPrEE+lCiY9CW8 Dm+y1ddfz3Y/kFZrebUJsOIZ2ye5kvdy3kJuXHXjCavkb1F3GIy2JukrgoYztONTcDYw 8+xDEzUpRSomjHfAQJ99INVlT6Ixfy5wiu0z3By7XhARCjPOfg5Zy0wN4fWaUlFyIP6R FXdV0lwMC4dRip3Lr0OhZq5zvjBWr2R6C8VGWYHF3twUecOOH9UvOPbRexl7geW5GvpN EaZw== X-Forwarded-Encrypted: i=1; AL+hErHZo6JWfJB9J+q2Ejurli11hOMXLckYTDWzoz7sRz65bdLuz0q/8AXv5ixriuFXTZll6StBi1PYcAqrZ+k=@vger.kernel.org X-Gm-Message-State: APuU4Z/sax1mFqLcaupwAbrUC6pSs3nZR79IcA80Ja6XE6A6n9mGc6rd 9e6sEYfR+kr2ii8TbejBDw+pu+yi0emNYZCGlkxVyRgxCkP6qmm6fIoeNElJxEl6ni8= X-Gm-Gg: AZFdTZdHmDkjHh1x39tqkMhY8dAj9z0kUnei5LKekWtdSmzj2PQKRAHu0TEE2a6pJCO MWP8BSQpK7pB2qwwJxLrqcnlbc0rSj0rOeXiZp5whxRX9YVXUYm7KQcQaAAcu6xCGTBkUGTMkdt s7pySIk/Ufv71fUv0IGxSK2abcRDKl5PnbpqS0SYO2dunMqvuegY96LcfL+0/EzwWaA9pYDSIQb cgGeSyCX0WlpHyjBEtoFHHgagnM/dunniiOwlGkFtZsv2S0e4ztF1NTNtXQh66/EVI3JL8NJfyV B4zsD5x3R7xC6iSKUsUrrt5jnG4JyeLPx1KTwK1C6X3ASgX0IsgFNKhQ3/kFWAaBWbck9ESzZWC oN6ZNQxQmfca0w1514SfQhVRBk+ZXX7hQN6G+WN924RNBs0P7oFAuo2k8Za96+t4/SKNheD5//2 U0kA8U7JhlgWsgjlQSv9x+Y4lsKE+Hjzl37A3SDg9njk1ro3BgAKcftA9ZgzepA9kTi8Mul3Hv+ vA/aJf0hUUuN6pzN7PTJbMXYU1Pqw/rlRM703IvwUyj/Wwqzv9FUCOgCLxZkUqAsFKdFrkd3grN 1qb75mn61/cweyEWEZ/BXR9rO9mbld/EMhm/uib36gmCIpH4VzvsAPzb4S61JjuTrg== 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) 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) Message-ID: Date: Wed, 25 Nov 2026 15:16:26 +0000 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] thunderbolt: add opt-in to preserve tunnels across s2idle To: Mika Westerberg Cc: Andreas Noever , Mika Westerberg , Yehezkel Bernat , Sukhdeep Singh , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <8fbb5876-e556-45a1-96b5-4a8061de9e5d@gmail.com> <31d3413a-9aa0-4208-8e15-3ba85829ef79@gmail.com> <20261125132228.GE191152@black.igk.intel.com> <20261125143531.GG191152@black.igk.intel.com> <8e87af01-02a8-4714-827a-62c5beb6f4e4@gmail.com> <20261125145207.GH191152@black.igk.intel.com> Content-Language: en-US From: Tobias Heath In-Reply-To: <20261125145207.GH191152@black.igk.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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.