From: Navon John Lukose <navonjohnlukose@gmail.com>
To: nika@nikableh.moe, emmanuel.grumbach@intel.com
Cc: helgaas@kernel.org, miriam.rachel.korenblit@intel.com,
markpearson@lenovo.com, linux-wireless@vger.kernel.org,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
Navon John Lukose <navonjohnlukose@gmail.com>,
bhelgaas@google.com
Subject: Re: [PATCH] x86/PCI: Disable D3cold on Intel BE200 Wi-Fi on Lenovo IdeaPad Pro 5 14IAH10
Date: Sat, 29 Aug 2026 15:09:22 +0530 [thread overview]
Message-ID: <20260829093922.37103-1-navonjohnlukose@gmail.com> (raw)
In-Reply-To: <20260729125202.33719-1-nika@nikableh.moe>
I hit this on a Lenovo Yoga Pro 7 14IAH10 (BIOS QGCN35WW), same BE200 and
the same SUBSYS_00F48086 as your lspci dump, with an identical signature.
I think I can explain why your AML trace looks clean and the link still
does not train, and why Emmanuel's firmware-reset hunk made no difference.
Short version: PERST# alone does not restart this card once the rail has
been removed, and the reset that does is already implemented in iwlwifi -
it is just armed too late to ever run.
On my machine:
_PR3 -> PXP._OFF genuinely removes the module's rail; PON() then restores
power, waits PEP0, enables the source clock and releases PERST#. I checked
the pins directly via the ACPI GPIO accessors: after resume the power
enable reads 1 and PERST# is deasserted. So the firmware does everything
your trace says it does, and the card still does not come back. What does
bring it back is a third, WLAN-specific reset line reached only through
_PRR -> <pwrres>._RST.
That _RST is gated:
Method (_RST) {
If (RSTY == One) { ...toggle the WLAN reset... } /* product reset */
Else { DCTR |= 0x8000; } /* just an FLR */
}
Disarmed, it degrades to an FLR, i.e. asking a device with no power to
reset itself over a bus it is not on. That is the fallback that has been
running all along.
RSTY is set over the vendor _DSM by iwl_trans_pcie_set_product_reset(),
which iwlwifi already calls with EN_PROD_RESET|EN_WIFI_FLR|EN_BT_OFF_ON
for discrete parts. But it is only called from iwl_trans_pcie_removal_wk(),
once the device is already being torn down, and the _DSM dispatch is gated
on the firmware reading the device's PCI ID back out of config space:
Method (WIST) { Switch (ToInteger (VDID)) { Case (0x272B8086) {...} } }
With the rail off VDID reads 0xffffffff, WIST() returns 0, and the arming
fails:
scheduling reset (mode=6)
ACPI _DSM not available (-19), cannot do product reset
So it can never be armed at the moment it is needed. I confirmed this
directly: with the device dead, evaluating the set-mode _DSM returns
success but RSTY stays 0.
Arming at probe instead, while the device still answers, makes the whole
existing path work. I will post two small iwlwifi patches for this as a
separate series and link it here. With them my card dies in D3cold on
every s2idle exactly as before, and comes back on its own in about 5s,
repeatedly.
Control: with the reset skipped but everything else identical, the device
stays absent (2/2), and recovers immediately once a real reset is issued.
So the reset is doing the work, not the remove/rescan.
Emmanuel - to your question, this is not a firmware reset during
suspend/resume. It only fires when the device is provably not answering
config cycles, which today is the case where the driver instead spends
~2s on handshakes with absent hardware and produces a bogus
ADVANCED_SYSASSERT dump.
Nika - I could not decode LTSM 0x32B either. Worth noting your sibling
port 00:06.2 reads 0x33/0x40 with its link up, so 0x01 does look like a
state the port never occupies while trained - but that is just my
observation, not a decode.
Caveats, so nobody wastes time: tested on one machine and one BIOS, on the
discrete (!integrated) path only. I have no integrated/CNVi hardware. The
recovery costs ~4.3s of Sleep() inside the platform's _RST, which is
firmware and not something we can shorten. And this is recovery rather
than avoidance - it keeps D3cold and pays a per-resume cost, where the
quirk in this thread avoids the problem entirely. I have not measured what
the rail actually saves, so I am not claiming it is the better trade, only
that the hardware can recover.
Thanks,
Navon
prev parent reply other threads:[~2026-08-29 9:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 2:13 Nika Krasnova
2026-07-28 20:05 ` Bjorn Helgaas
2026-07-28 20:14 ` Grumbach, Emmanuel
2026-07-29 12:52 ` Nika Krasnova
2026-08-29 9:39 ` Navon John Lukose [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260829093922.37103-1-navonjohnlukose@gmail.com \
--to=navonjohnlukose@gmail.com \
--cc=bhelgaas@google.com \
--cc=emmanuel.grumbach@intel.com \
--cc=helgaas@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=markpearson@lenovo.com \
--cc=miriam.rachel.korenblit@intel.com \
--cc=nika@nikableh.moe \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®