* [PATCH rtw-next] wifi: rtw89: pci: disable D3cold on ASUS ExpertBook B3/P3 series
@ 2026-09-11 6:53 Ping-Ke Shih
0 siblings, 0 replies; only message in thread
From: Ping-Ke Shih @ 2026-09-11 6:53 UTC (permalink / raw)
To: linux-wireless; +Cc: timlee
From: Chin-Yen Lee <timlee@realtek.com>
ASUS ExpertBook models (B3406CMA, B3606CMA, P3406CMA, and P3606CMA) may
encounter PCIe link loss or recovery issues after entering the L2 low-power
state associated with D3cold.
Prevent these affected platforms from entering D3cold to avoid the
problematic PCIe L2 state transition.
Add a DMI quirk match table so that other non-affected platforms can
continue utilizing D3cold power saving.
Signed-off-by: Chin-Yen Lee <timlee@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
---
drivers/net/wireless/realtek/rtw89/pci.c | 44 ++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/drivers/net/wireless/realtek/rtw89/pci.c b/drivers/net/wireless/realtek/rtw89/pci.c
index 8c3f4eb52cc5..941fb5ca15b6 100644
--- a/drivers/net/wireless/realtek/rtw89/pci.c
+++ b/drivers/net/wireless/realtek/rtw89/pci.c
@@ -4766,6 +4766,49 @@ static const struct rtw89_hci_ops rtw89_pci_ops = {
.rst_bdram = rtw89_pci_reset_bdram,
};
+static void rtw89_pci_d3cold_quirks(struct rtw89_dev *rtwdev, struct pci_dev *pdev)
+{
+ static const struct dmi_system_id d3cold_quirks[] = {
+ {
+ .ident = "ASUS EXPERTBOOK B3406CMA",
+ .matches = {
+ DMI_MATCH(DMI_BOARD_VENDOR, "ASUS"),
+ DMI_MATCH(DMI_BOARD_NAME, "B3406CMA"),
+ },
+ },
+ {
+ .ident = "ASUS EXPERTBOOK B3606CMA",
+ .matches = {
+ DMI_MATCH(DMI_BOARD_VENDOR, "ASUS"),
+ DMI_MATCH(DMI_BOARD_NAME, "B3606CMA"),
+ },
+ },
+ {
+ .ident = "ASUS EXPERTBOOK P3406CMA",
+ .matches = {
+ DMI_MATCH(DMI_BOARD_VENDOR, "ASUS"),
+ DMI_MATCH(DMI_BOARD_NAME, "P3406CMA"),
+ },
+ },
+ {
+ .ident = "ASUS EXPERTBOOK P3606CMA",
+ .matches = {
+ DMI_MATCH(DMI_BOARD_VENDOR, "ASUS"),
+ DMI_MATCH(DMI_BOARD_NAME, "P3606CMA"),
+ },
+ },
+ {},
+ };
+ const struct dmi_system_id *match;
+
+ match = dmi_first_match(d3cold_quirks);
+ if (!match)
+ return;
+
+ rtw89_debug(rtwdev, RTW89_DBG_STATE, "Disable D3Cold on %s\n", match->ident);
+ pci_d3cold_disable(pdev);
+}
+
int rtw89_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
{
struct rtw89_dev *rtwdev;
@@ -4791,6 +4834,7 @@ int rtw89_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
rtwdev->hci.rpwm_addr = pci_info->rpwm_addr;
rtwdev->hci.cpwm_addr = pci_info->cpwm_addr;
+ rtw89_pci_d3cold_quirks(rtwdev, pdev);
rtw89_check_quirks(rtwdev, info->quirks);
rtw89_check_pci_ssid_quirks(rtwdev, pdev, pci_info->ssid_quirks);
base-commit: f71dd599a98182d6bc34dce39977f928068ecd64
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-11 6:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-11 6:53 [PATCH rtw-next] wifi: rtw89: pci: disable D3cold on ASUS ExpertBook B3/P3 series Ping-Ke Shih
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.