]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
wifi: rtw89: fix assignation of TX BD RAM table
authorZong-Zhe Yang <kevin_yang@realtek.com>
Fri, 13 Jan 2023 09:06:31 +0000 (17:06 +0800)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 14 Mar 2023 15:47:06 +0000 (16:47 +0100)
commit2f5e84c4575079e65789f88c3fb3c9d70f9087c6
treebaf504f65ab1021ec33f3c1abc4f8b112a9a3fbe
parenteac2afa218a155c5645dae240afe288937a33ddc
wifi: rtw89: fix assignation of TX BD RAM table

BugLink: https://bugs.launchpad.net/bugs/2011425
[ Upstream commit 7f495de6ae7d31f098970fb45a038c9f69b1bf75 ]

TX BD's RAM table describes how HW allocates usable buffer section
for each TX channel at fetch time. The total RAM size for TX BD is
chip-dependent. For 8852BE, it has only half size (32) for TX channels
of single band. Original table arrange total size (64) for dual band.
It will overflow on 8852BE circuit and cause section conflicts between
different TX channels.

So, we do the changes below.
* add another table for single band chip and export both kind of tables
* point to the expected one in rtw89_pci_info by chip

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230113090632.60957-4-pkshih@realtek.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/net/wireless/realtek/rtw89/pci.c
drivers/net/wireless/realtek/rtw89/pci.h
drivers/net/wireless/realtek/rtw89/rtw8852ae.c
drivers/net/wireless/realtek/rtw89/rtw8852be.c
drivers/net/wireless/realtek/rtw89/rtw8852ce.c