All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Luka Gejak" <luka.gejak@linux.dev>
To: "Augusto Carneiro" <gutoohk@gmail.com>,
	"Ping-Ke Shih" <pkshih@realtek.com>
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Augusto Carneiro" <gutoohk@gmail.com>
Subject: Re: [PATCH] wifi: rtw88: pci: add quirk for HP Laptop 17-by4xxx
Date: Sat, 05 Dec 2026 16:30:15 +0000	[thread overview]
Message-ID: <6f97860c1e1a57321cd647caeb4c08c69b481763@linux.dev> (raw)
In-Reply-To: <20261204233611.3062683-1-gutoohk@gmail.com>

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

      reply	other threads:[~2026-12-05 16:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 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=6f97860c1e1a57321cd647caeb4c08c69b481763@linux.dev \
    --to=luka.gejak@linux.dev \
    --cc=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.