ath10k.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ath10k: increase rx buffer size to 2048
@ 2020-02-05 19:10 Linus Lüssing
  2020-04-01  7:00 ` Sven Eckelmann
  2021-01-18 16:13 ` Kalle Valo
  0 siblings, 2 replies; 7+ messages in thread
From: Linus Lüssing @ 2020-02-05 19:10 UTC (permalink / raw)
  To: ath10k
  Cc: Linus Lüssing, Simon Wunderlich, netdev, linux-wireless,
	linux-kernel, Ben Greear, David S . Miller, Kalle Valo

From: Linus Lüssing <ll@simonwunderlich.de>

Before, only frames with a maximum size of 1528 bytes could be
transmitted between two 802.11s nodes.

For batman-adv for instance, which adds its own header to each frame,
we typically need an MTU of at least 1532 bytes to be able to transmit
without fragmentation.

This patch now increases the maxmimum frame size from 1528 to 1656
bytes.

Tested with two ath10k devices in 802.11s mode, as well as with
batman-adv on top of 802.11s with forwarding disabled.

Fix originally found and developed by Ben Greear.

Link: https://github.com/greearb/ath10k-ct/issues/89
Link: https://github.com/greearb/ath10k-ct/commit/9e5ab25027e0971fa24ccf93373324c08c4e992d
Cc: Ben Greear <greearb@candelatech.com>
Signed-off-by: Linus Lüssing <ll@simonwunderlich.de>
---
 drivers/net/wireless/ath/ath10k/htt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath10k/htt.h b/drivers/net/wireless/ath/ath10k/htt.h
index 4a12564fc30e..6a2b5e10e568 100644
--- a/drivers/net/wireless/ath/ath10k/htt.h
+++ b/drivers/net/wireless/ath/ath10k/htt.h
@@ -2220,7 +2220,7 @@ struct htt_rx_chan_info {
  * Should be: sizeof(struct htt_host_rx_desc) + max rx MSDU size,
  * rounded up to a cache line size.
  */
-#define HTT_RX_BUF_SIZE 1920
+#define HTT_RX_BUF_SIZE 2048
 #define HTT_RX_MSDU_SIZE (HTT_RX_BUF_SIZE - (int)sizeof(struct htt_rx_desc))
 
 /* Refill a bunch of RX buffers for each refill round so that FW/HW can handle
-- 
2.25.0


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

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

* Re: [PATCH] ath10k: increase rx buffer size to 2048
  2020-02-05 19:10 [PATCH] ath10k: increase rx buffer size to 2048 Linus Lüssing
@ 2020-04-01  7:00 ` Sven Eckelmann
  2020-04-25 11:14   ` Sven Eckelmann
  2021-01-18 16:13 ` Kalle Valo
  1 sibling, 1 reply; 7+ messages in thread
From: Sven Eckelmann @ 2020-04-01  7:00 UTC (permalink / raw)
  To: ath10k
  Cc: Linus Lüssing, Simon Wunderlich, netdev, linux-wireless,
	linux-kernel, Ben Greear, David S . Miller, Kalle Valo,
	Linus Lüssing


[-- Attachment #1.1: Type: text/plain, Size: 830 bytes --]

On Wednesday, 5 February 2020 20:10:43 CEST Linus Lüssing wrote:
> From: Linus Lüssing <ll@simonwunderlich.de>
> 
> Before, only frames with a maximum size of 1528 bytes could be
> transmitted between two 802.11s nodes.
> 
> For batman-adv for instance, which adds its own header to each frame,
> we typically need an MTU of at least 1532 bytes to be able to transmit
> without fragmentation.
> 
> This patch now increases the maxmimum frame size from 1528 to 1656
> bytes.
[...]

@Kalle, I saw that this patch was marked as deferred [1] but I couldn't find 
any mail why it was done so. It seems like this currently creates real world 
problems - so would be nice if you could explain shortly what is currently 
blocking its acceptance.

Kind regards,
	Sven

[1] https://patchwork.kernel.org/patch/11367055/

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 146 bytes --]

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

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

* Re: [PATCH] ath10k: increase rx buffer size to 2048
  2020-04-01  7:00 ` Sven Eckelmann
@ 2020-04-25 11:14   ` Sven Eckelmann
  2020-04-28 12:01     ` Kalle Valo
  0 siblings, 1 reply; 7+ messages in thread
From: Sven Eckelmann @ 2020-04-25 11:14 UTC (permalink / raw)
  To: ath10k
  Cc: Linus Lüssing, Simon Wunderlich, netdev, linux-wireless,
	linux-kernel, mail, Ben Greear, David S . Miller, Kalle Valo,
	Linus Lüssing


[-- Attachment #1.1: Type: text/plain, Size: 941 bytes --]

On Wednesday, 1 April 2020 09:00:49 CEST Sven Eckelmann wrote:
> On Wednesday, 5 February 2020 20:10:43 CEST Linus Lüssing wrote:
> > From: Linus Lüssing <ll@simonwunderlich.de>
> > 
> > Before, only frames with a maximum size of 1528 bytes could be
> > transmitted between two 802.11s nodes.
> > 
> > For batman-adv for instance, which adds its own header to each frame,
> > we typically need an MTU of at least 1532 bytes to be able to transmit
> > without fragmentation.
> > 
> > This patch now increases the maxmimum frame size from 1528 to 1656
> > bytes.
> [...]
> 
> @Kalle, I saw that this patch was marked as deferred [1] but I couldn't find 
> any mail why it was done so. It seems like this currently creates real world 
> problems - so would be nice if you could explain shortly what is currently 
> blocking its acceptance.

Ping?

Kind regards,
	Sven

> [1] https://patchwork.kernel.org/patch/11367055/

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 146 bytes --]

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

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

* Re: [PATCH] ath10k: increase rx buffer size to 2048
  2020-04-25 11:14   ` Sven Eckelmann
@ 2020-04-28 12:01     ` Kalle Valo
  2020-04-28 12:27       ` Dave Taht
  2020-04-28 14:27       ` Ben Greear
  0 siblings, 2 replies; 7+ messages in thread
From: Kalle Valo @ 2020-04-28 12:01 UTC (permalink / raw)
  To: Sven Eckelmann
  Cc: Linus Lüssing, Simon Wunderlich, netdev, linux-wireless,
	linux-kernel, ath10k, mail, Ben Greear, David S . Miller,
	Linus Lüssing

Sven Eckelmann <sven@narfation.org> writes:

> On Wednesday, 1 April 2020 09:00:49 CEST Sven Eckelmann wrote:
>> On Wednesday, 5 February 2020 20:10:43 CEST Linus Lüssing wrote:
>> > From: Linus Lüssing <ll@simonwunderlich.de>
>> > 
>> > Before, only frames with a maximum size of 1528 bytes could be
>> > transmitted between two 802.11s nodes.
>> > 
>> > For batman-adv for instance, which adds its own header to each frame,
>> > we typically need an MTU of at least 1532 bytes to be able to transmit
>> > without fragmentation.
>> > 
>> > This patch now increases the maxmimum frame size from 1528 to 1656
>> > bytes.
>> [...]
>> 
>> @Kalle, I saw that this patch was marked as deferred [1] but I couldn't find 
>> any mail why it was done so. It seems like this currently creates real world 
>> problems - so would be nice if you could explain shortly what is currently 
>> blocking its acceptance.
>
> Ping?

Sorry for the delay, my plan was to first write some documentation about
different hardware families but haven't managed to do that yet.

My problem with this patch is that I don't know what hardware and
firmware versions were tested, so it needs analysis before I feel safe
to apply it. The ath10k hardware families are very different that even
if a patch works perfectly on one ath10k hardware it could still break
badly on another one.

What makes me faster to apply ath10k patches is to have comprehensive
analysis in the commit log. This shows me the patch author has
considered about all hardware families, not just the one he is testing
on, and that I don't need to do the analysis myself.

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

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

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

* Re: [PATCH] ath10k: increase rx buffer size to 2048
  2020-04-28 12:01     ` Kalle Valo
@ 2020-04-28 12:27       ` Dave Taht
  2020-04-28 14:27       ` Ben Greear
  1 sibling, 0 replies; 7+ messages in thread
From: Dave Taht @ 2020-04-28 12:27 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Linus Lüssing, Simon Wunderlich,
	Linux Kernel Network Developers, linux-wireless, LKML, ath10k,
	mail, Ben Greear, David S . Miller, Sven Eckelmann,
	Linus Lüssing

On Tue, Apr 28, 2020 at 5:06 AM Kalle Valo <kvalo@codeaurora.org> wrote:
>
> Sven Eckelmann <sven@narfation.org> writes:
>
> > On Wednesday, 1 April 2020 09:00:49 CEST Sven Eckelmann wrote:
> >> On Wednesday, 5 February 2020 20:10:43 CEST Linus Lüssing wrote:
> >> > From: Linus Lüssing <ll@simonwunderlich.de>
> >> >
> >> > Before, only frames with a maximum size of 1528 bytes could be
> >> > transmitted between two 802.11s nodes.
> >> >
> >> > For batman-adv for instance, which adds its own header to each frame,
> >> > we typically need an MTU of at least 1532 bytes to be able to transmit
> >> > without fragmentation.
> >> >
> >> > This patch now increases the maxmimum frame size from 1528 to 1656
> >> > bytes.
> >> [...]
> >>
> >> @Kalle, I saw that this patch was marked as deferred [1] but I couldn't find
> >> any mail why it was done so. It seems like this currently creates real world
> >> problems - so would be nice if you could explain shortly what is currently
> >> blocking its acceptance.
> >
> > Ping?
>
> Sorry for the delay, my plan was to first write some documentation about
> different hardware families but haven't managed to do that yet.
>
> My problem with this patch is that I don't know what hardware and
> firmware versions were tested, so it needs analysis before I feel safe
> to apply it. The ath10k hardware families are very different that even
> if a patch works perfectly on one ath10k hardware it could still break
> badly on another one.
>
> What makes me faster to apply ath10k patches is to have comprehensive
> analysis in the commit log. This shows me the patch author has
> considered about all hardware families, not just the one he is testing
> on, and that I don't need to do the analysis myself.

I have been struggling to get the ath10k to sing and dance using
various variants
of the firmware, on this bug over here:

https://forum.openwrt.org/t/aql-and-the-ath10k-is-lovely/

The puzzling thing is the loss of bidirectional throughput at codel target 20,
and getting WAY more (but less than I expected) at codel target 5.

This doesn't quite have bearing the size of the rx ring, except that in my
experiments the rx ring is rather small!! and yet I get way more performance
out of it....

(still,  as you'll see from the bug, it's WAY better than it used to be)

is NAPI in this driver? I'm afraid to look.
> --
> https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches



-- 
Make Music, Not War

Dave Täht
CTO, TekLibre, LLC
http://www.teklibre.com
Tel: 1-831-435-0729

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

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

* Re: [PATCH] ath10k: increase rx buffer size to 2048
  2020-04-28 12:01     ` Kalle Valo
  2020-04-28 12:27       ` Dave Taht
@ 2020-04-28 14:27       ` Ben Greear
  1 sibling, 0 replies; 7+ messages in thread
From: Ben Greear @ 2020-04-28 14:27 UTC (permalink / raw)
  To: Kalle Valo, Sven Eckelmann
  Cc: Linus Lüssing, Simon Wunderlich, netdev, linux-wireless,
	linux-kernel, ath10k, mail, David S . Miller, Linus Lüssing



On 04/28/2020 05:01 AM, Kalle Valo wrote:
> Sven Eckelmann <sven@narfation.org> writes:
>
>> On Wednesday, 1 April 2020 09:00:49 CEST Sven Eckelmann wrote:
>>> On Wednesday, 5 February 2020 20:10:43 CEST Linus Lüssing wrote:
>>>> From: Linus Lüssing <ll@simonwunderlich.de>
>>>>
>>>> Before, only frames with a maximum size of 1528 bytes could be
>>>> transmitted between two 802.11s nodes.
>>>>
>>>> For batman-adv for instance, which adds its own header to each frame,
>>>> we typically need an MTU of at least 1532 bytes to be able to transmit
>>>> without fragmentation.
>>>>
>>>> This patch now increases the maxmimum frame size from 1528 to 1656
>>>> bytes.
>>> [...]
>>>
>>> @Kalle, I saw that this patch was marked as deferred [1] but I couldn't find
>>> any mail why it was done so. It seems like this currently creates real world
>>> problems - so would be nice if you could explain shortly what is currently
>>> blocking its acceptance.
>>
>> Ping?
>
> Sorry for the delay, my plan was to first write some documentation about
> different hardware families but haven't managed to do that yet.
>
> My problem with this patch is that I don't know what hardware and
> firmware versions were tested, so it needs analysis before I feel safe
> to apply it. The ath10k hardware families are very different that even
> if a patch works perfectly on one ath10k hardware it could still break
> badly on another one.
>
> What makes me faster to apply ath10k patches is to have comprehensive
> analysis in the commit log. This shows me the patch author has
> considered about all hardware families, not just the one he is testing
> on, and that I don't need to do the analysis myself.

It has been in ath10k-ct for a while, and that has some fairly wide coverage
in OpenWrt, so likely if there were problems we would have seen it already.

I did not make any specific changes to firmware to support this, so upstream
firmware should behave similarly.

Seems like upstream ath10k could really benefit from having some test beds
so you can actually test code on different chips and have confidence
in your changes!

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

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

* Re: [PATCH] ath10k: increase rx buffer size to 2048
  2020-02-05 19:10 [PATCH] ath10k: increase rx buffer size to 2048 Linus Lüssing
  2020-04-01  7:00 ` Sven Eckelmann
@ 2021-01-18 16:13 ` Kalle Valo
  1 sibling, 0 replies; 7+ messages in thread
From: Kalle Valo @ 2021-01-18 16:13 UTC (permalink / raw)
  To: Linus Lüssing
  Cc: Linus Lüssing, Simon Wunderlich, netdev, linux-wireless,
	linux-kernel, ath10k, Ben Greear, David S . Miller

Linus Lüssing <linus.luessing@c0d3.blue> wrote:

> Before, only frames with a maximum size of 1528 bytes could be
> transmitted between two 802.11s nodes.
> 
> For batman-adv for instance, which adds its own header to each frame,
> we typically need an MTU of at least 1532 bytes to be able to transmit
> without fragmentation.
> 
> This patch now increases the maxmimum frame size from 1528 to 1656
> bytes.
> 
> Tested with two ath10k devices in 802.11s mode, as well as with
> batman-adv on top of 802.11s with forwarding disabled.
> 
> Fix originally found and developed by Ben Greear.
> 
> Link: https://github.com/greearb/ath10k-ct/issues/89
> Link: https://github.com/greearb/ath10k-ct/commit/9e5ab25027e0971fa24ccf93373324c08c4e992d
> Cc: Ben Greear <greearb@candelatech.com>
> Signed-off-by: Linus Lüssing <ll@simonwunderlich.de>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

Patch applied to ath-next branch of ath.git, thanks.

3e6b9cf534ca ath10k: increase rx buffer size to 2048

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20200205191043.21913-1-linus.luessing@c0d3.blue/

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


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

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

end of thread, other threads:[~2021-01-18 16:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-05 19:10 [PATCH] ath10k: increase rx buffer size to 2048 Linus Lüssing
2020-04-01  7:00 ` Sven Eckelmann
2020-04-25 11:14   ` Sven Eckelmann
2020-04-28 12:01     ` Kalle Valo
2020-04-28 12:27       ` Dave Taht
2020-04-28 14:27       ` Ben Greear
2021-01-18 16:13 ` Kalle Valo

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