Linux wireless drivers development
 help / color / mirror / Atom feed
* [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

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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox