From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795478689; b=PW17eKbEDthwfZIVqs2hmJgAGvkGyMiH4dIqETnNVTnMBxaFWOiOtn8+bk4sbK1umfPT /bD6IsvsPXEYlkZxt0GILL2Zd0VUcP/3darhw7bWttF7zQp6W+6THbyy2YTIuuvDx5teh f45cEsOo/o7M21EtNcdozAWNKUJTPF2jbFY3x6JCFHefY9YAZYSW423bbf5FM34PmEbAc UMVynkdryWLa4HYt1QQWJZ6919xZ95saldg971ko6g213Q+kwQEZgi5BblBWVHcgtzGCE OdcBk5m0An4P8UgyzVh1SdrgjJ5RXR4RzNIg5maWeLXV8qtmqGG/gEf+d3sCFvX2XJw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795478689; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language: From:Autocrypt:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=NrqsfqzthGjJFnZQLwLkp8teKLCeBqgZhrjo/nTNW9k=; b=H5DTVKI6PtxLElIh6Hk3aXOewVagoIsNZlkyWiWwQiz+43KBG6XBdgc6Llh02NM/L6rf n8X67BQuO5WWz9o2ICwepE/Fy6IIhWgVqRlWBlIp3bvMUhuk+3ISlEiN4ZB7ZDng8jPaR Kpa+YTNfu+H4HXAi03ejLXjDMsbBx+V19UFj5HmI0bHl1+2N7zoaqIPCCw57ZnB3uawsC pSisaktOciVBHLLKmNzgk/o7Ww4cZnovoGDEOncEebspluT4dZZGxGAc16tDHwhyinKmK K6yshiXkrCH45jqHJcoKFomIFZ1YCWcN61+j87ywjnG5AHXZk0RW0jj83pVvwEiccFA== 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=gqnhxcHK; arc=none smtp.remote-ip=209.85.215.172 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (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 17C0C606A326 for ; Tue, 24 Nov 2026 00:04:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 17C0C606A326 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=gqnhxcHK Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-cc4be0e5351so3381206a12.0 for ; Mon, 23 Nov 2026 16:04:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795478688; x=1796083488; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:autocrypt: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=NrqsfqzthGjJFnZQLwLkp8teKLCeBqgZhrjo/nTNW9k=; b=gqnhxcHKXD3IRaY+uy37bTOm0gMDtN0JowrvVe59uofy9L3GzXkmUymPMHMbYp1nFT XrtL99E1WI/NqFV8PXSeq1CZ2iFUwGadsZIEr5ara+ITENybhtiSLgIHEjh3HB5stw03 TlA8A02gMafZr4AyP2p9yz96UQhmIKRVppwxAzHgRdbPOoacBhbpF8MOKpGDuFHCGvn4 Pr8erwNvSGoMB2UmNRDwG+AvAT80BBfnlfUiIG0VFSm9eNE7WjIpp4GqIWdepmFHSMhJ kXI36RXcf7jjxTzcMra1CzTgWC1//uKaP7BxQUs7dC81fxIs8307b/a3L6MANmqxILob KgpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795478688; x=1796083488; h=content-transfer-encoding:content-type:in-reply-to:autocrypt: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=NrqsfqzthGjJFnZQLwLkp8teKLCeBqgZhrjo/nTNW9k=; b=rTtLBusHMOyM9X6c+VUQG7nOrXYWB0YluHI2bAIaGMjcd23AORRTFeN59ADedA/Kf3 GeZT8pxMuw71rU5h4PLd4w93mJzIORT+qsMc6cF8fCk8LUYLo+20y00Z522SGgDFaZLX lofTyi4Rp8johYJTlwy83TD0krBEGSXWFXyep5Lue4fc0u/TaqT0Bfx7yZa03MgN5XwL 8DDIMmZsEZOoa0PhPSZdR2LalnE5e7igmdtKPKaA/Y225EMWQrNqJNgYEpY0w88ropx0 Y3MiqdtGpULiIc97k3NV28IqmdBfQ3dDr6HdeolwUaBVGmEiBAuuukMtsMxL8ldiWIjG 32Jw== X-Gm-Message-State: APuU4Z9KvH1EKOIk8i93cg2RhVFyElJJr1ynEFCVzSZI2j7vVZq2Ona5 32N8tTaY0ccuH7wQ+pGgcaoCUkRT4yNzeshw2Vdi72Wuo+6CbZuviYvq X-Gm-Gg: AZFdTZeAgdPcMYHeM+uRvmi6SYQWpOfixj2lJeKH53++y5LfRFRnSLbS3M6e4X2Ny76 L+zqE2F1cMNW2rfUI305sAzX9HiH/gpBHh/sizgqfXAzXYIqXFOyp4jdRt9bDZdxm9WYKwWz6aq x6bfbdwDz1W5R+QFS07PJChB+BS+XuZjNK/hHbTnddEPZH9qDOY1GFxNtRIzVidWpOSZXVnYEtP 93ATsm2vSwjOgUYxSsKQf+Qz4d4wLupJLp2IJzAkHH/mInuubGWDpo7Uxo0W/OQbS1WKwUffxXA nbaWHPeg68bI/vGuizWaomuPMTMzSeBKWB3w6cGuWePjpkKuNWUAcAen/QTZVoA8pdpZYkvhpKO 1dCr91dM1bXKGhtmX8+Gv5MI+h0B89DwPRoaLezobNwXLpqSkRyAy3Jte0b5SruxFzj+HCCckb0 7ifL2P7pezHXQsmnIehJ/C0pOr+lc5rDVQY3ycA8iqTImkNnDK3H6C2RjeLAUH0DIB2xy1qHfOr OLrusUcpGJywo5IWKdnQWBBeNyu1u4ceeB+MAhUfWhOIzqO7B8JQ01LJkoWbawXRo7qU11jYNOi q3dLuc8brnRZus3MqbMawEZTN027dhYrY5jfOxLTsNCx X-Received: by 2002:a17:90a:ec88:b0:3b3:b0f4:1bed with SMTP id 98e67ed59e1d1-3b41c8d4855mr11016819a91.19.1795478688087; Mon, 23 Nov 2026 16:04:48 -0800 (PST) Received: from ?IPV6:2601:600:a482:7d70::b4f9? ([2601:600:a482:7d70::b4f9]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b44b704cfesm7096451a91.1.2026.11.23.16.04.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Nov 2026 16:04:47 -0800 (PST) Message-ID: <83ed6809-ff39-44af-8e3b-a8affa622177@gmail.com> Date: Mon, 23 Nov 2026 16:04:46 -0800 X-Mailing-List: netdev@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 net] net: wwan: iosm: always send the host sleep message on suspend To: netdev-bot+sashiko@kernel.org Cc: netdev@vger.kernel.org, loic.poulain@oss.qualcomm.com, ryazanov.s.a@gmail.com, johannes@sipsolutions.net, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, m.chetan.kumar@linux.intel.com, mail@maciej.szmigiero.name, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20261122050039.861287-1-davidlwesten@gmail.com> <179541288475.3135.162337854159176054@kernel.org> Content-Language: en-US From: David Westen Autocrypt: addr=davidlwesten@gmail.com; keydata= xsFNBF3I5/MBEAC8Z4xi4tjwS5ZybnlXyvFTadKGbzvcodzybkUYKHRa99SrGTsIiSP6CqAz wb+HDTlNBpIxQVD4uAbv9Nn7Xd0827Li5qW2u4Fe6nAtYAODFjR6lvD/Z3ayhvxoLYbUfqYl jKZ2QMfLobcTWP9kKpQ0gjALqG3kdGDPe7Hpicf9UzGw6DDN3OmDRLKC6/zHxEvj8JkfthXQ LimYHbR+XTrln4myg09S90/KL4fPL4wS99w/9OKujkLBQQasZL/iy00xJvfdFIYqY/nOnNZO iuFLJPhz5OZRiv/wZ5j4P639ekV/XmTN5scon66C86oulD65DP56vfUwC0B56ZVKqClkMBvZ 6Hy/dHR9j9s/UkCn87/Q2q1vWV6ZgOhPmpcK+waFzPJ6X9fldN4sUsaiQdoCJelWebAj9ORO sXXhzhSA8bUOkwIQ2Sc3XRmLPKb9GE0tn3XugvetzBD/bRZpTgOa0DYuDUFmfLwlxSrAAvC7 vpeq1VfQsmoju++sMh+2JqzaJyaNg3b4E3XXa+m7xVDffQym1OU19ZRBhRjVuN0VvaKc6RmX OkFnz5/tAXd4D8V1Cjq8jaTMq08G2aev9WSaNjD+rLCwQGVbLA5iAWG1RMVK71X+OsppbQ8g gePMYOJ2jqqo/t4oiUjr21SyRMx+G9N6CM+D+ySfQdJWgbU3lwARAQABzSdEYXZpZCBMIFdl c3RlbiA8ZGF2aWRsd2VzdGVuQGdtYWlsLmNvbT7CwZEEEwEIADsWIQQ/9iqh7GxpUl+99aKV Nmb3YjnzugUCZdLUtQIbLwULCQgHAgIiAgYVCgkICwIEFgIDAQIeBwIXgAAKCRCVNmb3Yjnz ulY7D/9Eu3LYFQlw/2fi7/hXDrfaGq4KENWU8C+AUr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> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/22/26 9:48 PM, netdev-bot+sashiko@kernel.org wrote: > [Severity: Low] > > This removes the only callers of ipc_pcie_suspend_s2idle() and > ipc_pcie_resume_s2idle(). They are __maybe_unused, so a W=1 build won't > warn. ipc_imem_pm_s2idle_sleep(), ipc_protocol_s2idle_sleep() and > ipc_pm_set_s2idle_sleep() become dead code along with them. > > ipc_pcie->d3l2_support is also still filled from the ACPI _DSM in > ipc_pcie_probe(), but nothing reads it any more. Should these be removed > too? > > There is also a behaviour change. ipc_pcie_suspend_s2idle() was the only > code that set bit 0 of ipc_pcie->suspend, and that bit gates IRQ > processing: > > [...] > > On D0L12 platforms, MSIs that arrived between the suspend and resume > callbacks used to be dropped. Now they go to ipc_imem_irq_process() and > the tasklet. Was this intended? Yes. v2 removes the s2idle helpers, the _DSM read, d3l2_support and the suspend bit. The commit message says that MSIs arriving between the suspend and resume callbacks are now processed, as they already were with D3L2. > [Severity: Low] > > Is this comment true in general? For platform-manageable devices, > pci_target_state() returns whatever the firmware chooses: > > [...] > > So firmware can choose PCI_D0. The commit message describes this as > platform-specific ("here chooses D3hot"). The comment turns it into a > general rule and uses it to justify ignoring d3l2_support. > > Where firmware keeps the WWAN function in D0 for s2idle, the modem would > now get the ENTER_SLEEP/EXIT_SLEEP handshake while it stays in D0/L1.2. > The notes say that case was not tested, and neither were the XMM7560 or > platforms where the doorbells work. No, v2 says the PCI core "may" put the device into D3. > [Severity: Low] > The Fixes: tag points at be8c936e540f ("net: iosm: power management"). > That commit only added iosm_ipc_pm.c and iosm_ipc_pm.h. > > The code this patch changes lives in iosm_ipc_pcie.c. That covers > ipc_pcie_suspend_cb() and ipc_pcie_resume_cb(), including the switch > on ipc_pcie->d3l2_support that picked between the s2idle doorbell path > and the host sleep message path. As far as I can tell, all of it came > in with 7e98d785ae61 ("net: iosm: entry point"). > > Should the tag be this instead? > > Fixes: 7e98d785ae61 ("net: iosm: entry point") > > There is no runtime effect. But the stable tooling and anyone bisecting > later rely on the tag to find the commit that introduced the behaviour > being changed, so it is worth pointing at the right one. Yes, fixed in v2. > [Severity: Medium] > > Every platform now goes through > ipc_pcie_suspend()->ipc_imem_pm_suspend()->ipc_protocol_suspend(). That > includes D0L12 platforms and platforms without the _DSM. What happens when > the handshake fails? > > [...] > > Could host_pm_state be rolled back on failure, and then either fall back > to the doorbells or fail the suspend? Agreed, the state is left at SLEEP_WAIT_D3. v2 adds a patch that sets it back to ACTIVE when the modem doesn't report itself active in time, as the path where sending ENTER_SLEEP fails already does. Suspend still continues after that. Failing it would let a modem that doesn't answer block every system suspend, and falling back to the doorbells would use the path this XMM7360 doesn't survive. An ENTER_SLEEP that times out still counts as success, since ipc_protocol_msg_send() returns 0 on a timeout. That's older than this series and affects every message the driver sends, so I'd rather leave it for a separate change. > [Severity: Medium] > > Every system suspend now depends on ipc_pm_wait_for_device_active(). Can > it lose the wake ack? Yes, and the signal case is real too. v2 adds a patch for both: it sets the bit before testing ap_state, adds the pairing barrier in ipc_pm_on_link_wake(), reinitializes the completion before each wait, and waits uninterruptibly, like the wait for the ENTER_SLEEP reply does. > [Severity: Low] > > SIMPLE_DEV_PM_OPS(iosm_ipc_pm, ipc_pcie_suspend_cb, ipc_pcie_resume_cb) > binds these callbacks to .freeze/.thaw/.poweroff/.restore as well as > .suspend/.resume. On D0L12 platforms, hibernation therefore also moves from > the doorbells to the ENTER_SLEEP/EXIT_SLEEP handshake. Is that intended? > > [...] > > S3 on D0L12 platforms changes too. Since commit 0b6f6593aa8c ("net: wwan: iosm: Fix hibernation by re-binding the driver around it") the driver is unbound before hibernation, so hibernation only reaches these callbacks on older kernels. v2 says so in the commit message, together with the hardware it was tested on and what wasn't tested. S3 changes the same way. Where S3 cuts the card's power, as here, the modem reboots and resume fails with either protocol; my S3 series handles that case separately. Thanks, David