linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rtw88: coex: set 4 slot TDMA for BT link and WL busy
@ 2020-12-30  3:36 Ping-Ke Shih
  2021-01-11 11:41 ` Kalle Valo
  0 siblings, 1 reply; 3+ messages in thread
From: Ping-Ke Shih @ 2020-12-30  3:36 UTC (permalink / raw)
  To: tony0620emma, kvalo; +Cc: linux-wireless, ku920601

To protect both of WL/BT performance while BT is under re-link state.
4-slot mode TDMA can make the re-link more sensitive and mitigate the WL
throughput drop.

Signed-off-by: Ching-Te Ku <ku920601@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
---
 drivers/net/wireless/realtek/rtw88/coex.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/realtek/rtw88/coex.c b/drivers/net/wireless/realtek/rtw88/coex.c
index 24530cafcba7..ea2be1e25065 100644
--- a/drivers/net/wireless/realtek/rtw88/coex.c
+++ b/drivers/net/wireless/realtek/rtw88/coex.c
@@ -1607,6 +1607,7 @@ static void rtw_coex_action_bt_relink(struct rtw_dev *rtwdev)
 	struct rtw_efuse *efuse = &rtwdev->efuse;
 	struct rtw_chip_info *chip = rtwdev->chip;
 	u8 table_case, tdma_case;
+	u32 slot_type = 0;
 
 	rtw_dbg(rtwdev, RTW_DBG_COEX, "[BTCoex], %s()\n", __func__);
 
@@ -1618,6 +1619,7 @@ static void rtw_coex_action_bt_relink(struct rtw_dev *rtwdev)
 			table_case = 26;
 			if (coex_stat->bt_hid_exist &&
 			    coex_stat->bt_profile_num == 1) {
+				slot_type = TDMA_4SLOT;
 				tdma_case = 20;
 			} else {
 				tdma_case = 20;
@@ -1635,7 +1637,7 @@ static void rtw_coex_action_bt_relink(struct rtw_dev *rtwdev)
 	}
 
 	rtw_coex_table(rtwdev, false, table_case);
-	rtw_coex_tdma(rtwdev, false, tdma_case);
+	rtw_coex_tdma(rtwdev, false, tdma_case | slot_type);
 }
 
 static void rtw_coex_action_bt_idle(struct rtw_dev *rtwdev)
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] rtw88: coex: set 4 slot TDMA for BT link and WL busy
  2020-12-30  3:36 [PATCH] rtw88: coex: set 4 slot TDMA for BT link and WL busy Ping-Ke Shih
@ 2021-01-11 11:41 ` Kalle Valo
  2021-01-12  2:14   ` Pkshih
  0 siblings, 1 reply; 3+ messages in thread
From: Kalle Valo @ 2021-01-11 11:41 UTC (permalink / raw)
  To: Ping-Ke Shih; +Cc: tony0620emma, linux-wireless, ku920601

Ping-Ke Shih <pkshih@realtek.com> writes:

> To protect both of WL/BT performance while BT is under re-link state.
> 4-slot mode TDMA can make the re-link more sensitive and mitigate the WL
> throughput drop.
>
> Signed-off-by: Ching-Te Ku <ku920601@realtek.com>
> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>

Who should be marked as the author, I guess Ching-Te? Then From field is
missing.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] rtw88: coex: set 4 slot TDMA for BT link and WL busy
  2021-01-11 11:41 ` Kalle Valo
@ 2021-01-12  2:14   ` Pkshih
  0 siblings, 0 replies; 3+ messages in thread
From: Pkshih @ 2021-01-12  2:14 UTC (permalink / raw)
  To: kvalo@codeaurora.org
  Cc: linux-wireless@vger.kernel.org, tony0620emma@gmail.com, DeanKu

On Mon, 2021-01-11 at 11:41 +0000, Kalle Valo wrote:
> Ping-Ke Shih <pkshih@realtek.com> writes:
> 
> > To protect both of WL/BT performance while BT is under re-link state.
> > 4-slot mode TDMA can make the re-link more sensitive and mitigate the WL
> > throughput drop.
> >
> > Signed-off-by: Ching-Te Ku <ku920601@realtek.com>
> > Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
> 
> Who should be marked as the author, I guess Ching-Te? Then From field is
> missing.
> 

It should be Ching-Te. I sent v2 to fix it.
Thank you

---
Ping-Ke


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-12  2:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-30  3:36 [PATCH] rtw88: coex: set 4 slot TDMA for BT link and WL busy Ping-Ke Shih
2021-01-11 11:41 ` Kalle Valo
2021-01-12  2:14   ` Pkshih

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).