]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtw89: mac: set quota 13 for PLE SNRPT
authorPing-Ke Shih <pkshih@realtek.com>
Thu, 8 Jan 2026 12:03:13 +0000 (20:03 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 13 Jan 2026 02:24:19 +0000 (10:24 +0800)
The RTL8922D has additional quota 13 of SNRPT for PLE (payload engine).
Set value to the quota according to predefined tables.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260108120320.2217402-7-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac_be.c
drivers/net/wireless/realtek/rtw89/reg.h

index 06538122c57a0c5cfa13f13a9e0d47b044fa67e3..aff9855f184ad87c9e4bfd9d6711cc86886df482 100644 (file)
@@ -331,6 +331,11 @@ static void ple_quota_cfg_be(struct rtw89_dev *rtwdev,
        SET_QUOTA(cpu_io, PLE, 10);
        SET_QUOTA(tx_rpt, PLE, 11);
        SET_QUOTA(h2d, PLE, 12);
+
+       if (rtwdev->chip->chip_id == RTL8922A)
+               return;
+
+       SET_QUOTA(snrpt, PLE, 13);
 }
 
 static void rtw89_mac_hci_func_en_be(struct rtw89_dev *rtwdev)
index de36cf5ef1a1593a22ab9e19804bb8bf76f4d861..9ac1c169d25c35a13282c60967c2a1bd03df9870 100644 (file)
 #define B_BE_PLE_Q12_MAX_SIZE_MASK GENMASK(27, 16)
 #define B_BE_PLE_Q12_MIN_SIZE_MASK GENMASK(11, 0)
 
+#define R_BE_PLE_QTA13_CFG 0x9074
+#define B_BE_PLE_Q13_MAX_SIZE_MASK GENMASK(27, 16)
+#define B_BE_PLE_Q13_MIN_SIZE_MASK GENMASK(11, 0)
+
 #define R_BE_PLE_ERRFLAG1_IMR 0x90C0
 #define B_BE_PLE_SRCHPG_PGOFST_IMR BIT(26)
 #define B_BE_PLE_SRCHPG_STRPG_IMR BIT(25)