All of lore.kernel.org
 help / color / mirror / Atom feed
From: Augusto Carneiro <gutoohk@gmail.com>
To: Ping-Ke Shih <pkshih@realtek.com>
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	Augusto Carneiro <gutoohk@gmail.com>
Subject: [PATCH] wifi: rtw88: pci: add quirk for HP Laptop 17-by4xxx
Date: Fri,  4 Dec 2026 20:36:11 -0300	[thread overview]
Message-ID: <20261204233611.3062683-1-gutoohk@gmail.com> (raw)

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


             reply	other threads:[~2026-12-04 23:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 23:36 Augusto Carneiro [this message]
2026-12-05 16:30 ` [PATCH] wifi: rtw88: pci: add quirk for HP Laptop 17-by4xxx Luka Gejak

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=20261204233611.3062683-1-gutoohk@gmail.com \
    --to=gutoohk@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pkshih@realtek.com \
    /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 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.