linux-mediatek.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mt76: mt7921: fix aggregation subframes setting to HE max
@ 2022-06-16 15:57 Deren Wu
  2022-06-17  8:39 ` Felix Fietkau
  0 siblings, 1 reply; 3+ messages in thread
From: Deren Wu @ 2022-06-16 15:57 UTC (permalink / raw)
  To: Felix Fietkau, Lorenzo Bianconi
  Cc: Sean Wang, Soul Huang, YN Chen, Leon Yen, Eric-SY Chang, Deren Wu,
	KM Lin, Robin Chiu, CH Yeh, Posh Sun, Eric Liang, Stella Chang,
	Evelyn Tsai, Ryder Lee, Shayne Chen, linux-wireless,
	linux-mediatek, Deren Wu

From: Deren Wu <deren.wu@mediatek.com>

mt7921/mt7922 support HE max aggregation subframes 256 for both tx/rx.
Get better throughput then before.

Fixes: 94bb18b03d43 ("mt76: mt7921: fix max aggregation subframes setting")
Tested-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Reviewed-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Deren Wu <deren.wu@mediatek.com>
---
 drivers/net/wireless/mediatek/mt76/mt7921/init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/init.c b/drivers/net/wireless/mediatek/mt76/mt7921/init.c
index 48a10aaecc62..7b4766ea55bc 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7921/init.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7921/init.c
@@ -52,8 +52,8 @@ mt7921_init_wiphy(struct ieee80211_hw *hw)
 	struct wiphy *wiphy = hw->wiphy;
 
 	hw->queues = 4;
-	hw->max_rx_aggregation_subframes = 64;
-	hw->max_tx_aggregation_subframes = 128;
+	hw->max_rx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF_HE;
+	hw->max_tx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF_HE;
 	hw->netdev_features = NETIF_F_RXCSUM;
 
 	hw->radiotap_timestamp.units_pos =
-- 
2.18.0



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

* Re: [PATCH] mt76: mt7921: fix aggregation subframes setting to HE max
  2022-06-16 15:57 [PATCH] mt76: mt7921: fix aggregation subframes setting to HE max Deren Wu
@ 2022-06-17  8:39 ` Felix Fietkau
  2022-06-17  9:29   ` Deren Wu
  0 siblings, 1 reply; 3+ messages in thread
From: Felix Fietkau @ 2022-06-17  8:39 UTC (permalink / raw)
  To: Deren Wu, Lorenzo Bianconi
  Cc: Sean Wang, Soul Huang, YN Chen, Leon Yen, Eric-SY Chang, KM Lin,
	Robin Chiu, CH Yeh, Posh Sun, Eric Liang, Stella Chang,
	Evelyn Tsai, Ryder Lee, Shayne Chen, linux-wireless,
	linux-mediatek

On 16.06.22 17:57, Deren Wu wrote:
> From: Deren Wu <deren.wu@mediatek.com>
> 
> mt7921/mt7922 support HE max aggregation subframes 256 for both tx/rx.
> Get better throughput then before.
> 
> Fixes: 94bb18b03d43 ("mt76: mt7921: fix max aggregation subframes setting")
> Tested-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
> Reviewed-by: Sean Wang <sean.wang@mediatek.com>
> Signed-off-by: Deren Wu <deren.wu@mediatek.com>
When I made the change that you're reverting here, I used the values 
from the reference SDK that I got, and the change actually seemed to 
improve performance in my tests.
Did something change in the firmware, or is there a related chipset 
difference between 7921 and 7922?

- Felix


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

* Re: [PATCH] mt76: mt7921: fix aggregation subframes setting to HE max
  2022-06-17  8:39 ` Felix Fietkau
@ 2022-06-17  9:29   ` Deren Wu
  0 siblings, 0 replies; 3+ messages in thread
From: Deren Wu @ 2022-06-17  9:29 UTC (permalink / raw)
  To: Felix Fietkau, Lorenzo Bianconi
  Cc: Sean Wang, Soul Huang, YN Chen, Leon Yen, Eric-SY Chang, KM Lin,
	Robin Chiu, CH Yeh, Posh Sun, Eric Liang, Stella Chang,
	Evelyn Tsai, Ryder Lee, Shayne Chen, linux-wireless,
	linux-mediatek

Hi Felix,

On Fri, 2022-06-17 at 10:39 +0200, Felix Fietkau wrote:
> On 16.06.22 17:57, Deren Wu wrote:
> > From: Deren Wu <deren.wu@mediatek.com>
> > 
> > mt7921/mt7922 support HE max aggregation subframes 256 for both
> > tx/rx.
> > Get better throughput then before.
> > 
> > Fixes: 94bb18b03d43 ("mt76: mt7921: fix max aggregation subframes
> > setting")
> > Tested-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
> > Reviewed-by: Sean Wang <sean.wang@mediatek.com>
> > Signed-off-by: Deren Wu <deren.wu@mediatek.com>
> 
> When I made the change that you're reverting here, I used the values 
> from the reference SDK that I got, and the change actually seemed to 
> improve performance in my tests.
> Did something change in the firmware, or is there a related chipset 
> difference between 7921 and 7922?
> 
> - Felix
> 


Yes, there was some fw changes ready in 2021 and the SDK was updated as
well. After some performance re-check, the test result is much better
with the new patch. We think the max-size-256 can be applied in
mt7921/mt7922 driver now. 

PS: mt7921/mt7922 are the same. Both of them can support this size.

Thanks,
Deren



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

end of thread, other threads:[~2022-06-17  9:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-16 15:57 [PATCH] mt76: mt7921: fix aggregation subframes setting to HE max Deren Wu
2022-06-17  8:39 ` Felix Fietkau
2022-06-17  9:29   ` Deren Wu

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).