Re: [PATCH] wifi: rtw88: pci: add quirk for HP Laptop 17-by4xxx
From: Luka Gejak
Date: Sat Dec 05 2026 - 11:30:25 EST
Hi Augusto,
Thanks for looking into this. Two comments below.
On December 4, 2026 8:36:11 PM GMT-03:00, Augusto Carneiro
<gutoohk@xxxxxxxxx> 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