* [PATCH] wifi: rtw88: pci: add quirk for HP Laptop 17-by4xxx
@ 2026-12-04 23:36 Augusto Carneiro
2026-12-05 16:30 ` Luka Gejak
0 siblings, 1 reply; 2+ messages in thread
From: Augusto Carneiro @ 2026-12-04 23:36 UTC (permalink / raw)
To: Ping-Ke Shih; +Cc: linux-wireless, linux-kernel, Augusto Carneiro
On the HP Laptop 17-by4xxx with an RTL8821CE, the firmware repeatedly
fails to leave deep LPS, logging the following every 2-4 seconds:
rtw88_8821ce 0000:01:00.0: firmware failed to leave lps state
Each failure briefly stalls traffic, which shows up as audible dropouts
in real-time audio such as video calls. On the affected machine about
19,000 of these messages were logged in 24 hours, with good signal
(-37 dBm on 5 GHz).
Setting rtw88_core.disable_lps_deep=y and rtw88_pci.disable_aspm=y
makes the errors stop, so add a DMI quirk that applies both
automatically, as is already done for other HP models.
Tested on an HP Laptop 17-by4xxx (SKU 568B7UA#ABA, RTL8821CE, firmware
24.11.0) running 7.2.11 with this change applied: with no module
options set, both parameters read Y after probe, and no "failed to
leave lps state" messages were logged in 45 minutes of use. Only the
combination of both quirks was tested, not each one alone.
The problem was diagnosed and this patch prepared with the help of an
AI coding assistant (Claude Code with Claude Opus 5.5); the submitter
reviewed and tested it.
Signed-off-by: Augusto Carneiro <gutoohk@gmail.com>
---
drivers/net/wireless/realtek/rtw88/pci.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/net/wireless/realtek/rtw88/pci.c b/drivers/net/wireless/realtek/rtw88/pci.c
index d612a6b3a..5e0ef0edf 100644
--- a/drivers/net/wireless/realtek/rtw88/pci.c
+++ b/drivers/net/wireless/realtek/rtw88/pci.c
@@ -1810,6 +1810,16 @@ static const struct dmi_system_id rtw_pci_quirks[] = {
.driver_data = (void *)(BIT(QUIRK_DIS_CAP_PCI_ASPM) |
BIT(QUIRK_DIS_CAP_LPS_DEEP)),
},
+ {
+ .callback = rtw_pci_disable_caps,
+ .ident = "HP Laptop 17-by4xxx",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "HP"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "HP Laptop 17-by4xxx"),
+ },
+ .driver_data = (void *)(BIT(QUIRK_DIS_CAP_PCI_ASPM) |
+ BIT(QUIRK_DIS_CAP_LPS_DEEP)),
+ },
{
.callback = rtw_pci_disable_caps,
.ident = "ASUS TUF Gaming A15 FA506II",
--
2.56.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] wifi: rtw88: pci: add quirk for HP Laptop 17-by4xxx
2026-12-04 23:36 [PATCH] wifi: rtw88: pci: add quirk for HP Laptop 17-by4xxx Augusto Carneiro
@ 2026-12-05 16:30 ` Luka Gejak
0 siblings, 0 replies; 2+ messages in thread
From: Luka Gejak @ 2026-12-05 16:30 UTC (permalink / raw)
To: Augusto Carneiro, Ping-Ke Shih
Cc: linux-wireless, linux-kernel, Augusto Carneiro
Hi Augusto,
Thanks for looking into this. Two comments below.
On December 4, 2026 8:36:11 PM GMT-03:00, Augusto Carneiro
<gutoohk@gmail.com> wrote:
[ ... ]
> diff --git a/drivers/net/wireless/realtek/rtw88/pci.c b/drivers/net/wireless/realtek/rtw88/pci.c
> index d612a6b3a..5e0ef0edf 100644
> --- a/drivers/net/wireless/realtek/rtw88/pci.c
> +++ b/drivers/net/wireless/realtek/rtw88/pci.c
> @@ -1810,6 +1810,16 @@ static const struct dmi_system_id rtw_pci_quirks[] = {
[ ... ]
> + {
> + .callback = rtw_pci_disable_caps,
> + .ident = "HP Laptop 17-by4xxx",
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "HP"),
> + DMI_MATCH(DMI_PRODUCT_NAME, "HP Laptop 17-by4xxx"),
> + },
As far as I can see, this matches any SKU that uses this DMI product
name. The common PCI probe sets both options for any rtw88 PCI card it
finds on a matching laptop. Could we start with the tested SKU, as the
P3S95EA#ACB entry does, and widen it if other SKUs need it too?
> + .driver_data = (void *)(BIT(QUIRK_DIS_CAP_PCI_ASPM) |
> + BIT(QUIRK_DIS_CAP_LPS_DEEP)),
> + },
The warning comes from the ordinary LPS exit check, which can also run
with deep LPS disabled. On the RTL8821CE, disable_aspm skips the
driver's CLKREQ setup and L1 toggles.
Could you compare the default settings with just disable_lps_deep=y on
the same kernel without this quirk? If that alone stops the warnings
and dropouts, I think we can drop the ASPM bit.
Best regards,
Luka Gejak
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-05 16:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 23:36 [PATCH] wifi: rtw88: pci: add quirk for HP Laptop 17-by4xxx Augusto Carneiro
2026-12-05 16:30 ` Luka Gejak
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.