From: Felix Fietkau <nbd@nbd.name>
To: Frank Wunderlich <frank-w@public-files.de>
Cc: netdev@vger.kernel.org, Daniel Golle <daniel@makrotopia.org>
Subject: Re: Aw: Re: Re: Re: [PATCH net] net: ethernet: mtk_eth_soc: fix tx throughput regression with direct 1G links
Date: Wed, 29 Mar 2023 09:48:54 +0200 [thread overview]
Message-ID: <3c4bbce9-a66c-f458-f971-a162ef13a03c@nbd.name> (raw)
In-Reply-To: <trinity-79a1a243-0b80-402f-8c65-4bda591d6aa1-1679938094805@3c-app-gmx-bs30>
On 27.03.23 19:28, Frank Wunderlich wrote:
>
>> Gesendet: Sonntag, 26. März 2023 um 22:09 Uhr
>> Von: "Felix Fietkau" <nbd@nbd.name>
>> On 26.03.23 19:49, Frank Wunderlich wrote:
>> >> Gesendet: Sonntag, 26. März 2023 um 19:27 Uhr
>> >> Von: "Felix Fietkau" <nbd@nbd.name>
>
>> >> On 26.03.23 19:10, Frank Wunderlich wrote:
>> >> >> Gesendet: Sonntag, 26. März 2023 um 17:56 Uhr
>> >> >> Von: "Felix Fietkau" <nbd@nbd.name>
>
>> >> >> On 25.03.23 10:28, Frank Wunderlich wrote:
>> >> >> >> Gesendet: Freitag, 24. März 2023 um 15:04 Uhr
>> >> >> >> Von: "Felix Fietkau" <nbd@nbd.name>
>
>> >> >> > thx for the fix, as daniel already checked it on mt7986/bpi-r3 i tested bpi-r2/mt7623
>> >> >> >
>> >> >> > but unfortunately it does not fix issue on bpi-r2 where the gmac0/mt7530 part is affected.
>> >> >> >
>> >> >> > maybe it needs a special handling like you do for mt7621? maybe it is because the trgmii mode used on this path?
>> >> >> Could you please test if making it use the MT7621 codepath brings back
>> >> >> performance? I don't have any MT7623 hardware for testing right now.
>
>> > used the CONFIG_MACH_MT7623 (which is set in my config) boots up fine, but did not fix the 622Mbit-tx-issue
>> >
>> > and i'm not sure i have tested it before...all ports of mt7531 are affected, not only wan (i remembered you asked for this)
>> Does the MAC that's connected to the switch use flow control? Can you
>> test if changing that makes a difference?
>
> it does use flow control/pause on mac and switch-port, disabled it, but it does not change anything (still ~620Mbit on tx)
>
> +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
> @@ -182,7 +182,7 @@ gmac0: mac@0 {
> fixed-link {
> speed = <1000>;
> full-duplex;
> - pause;
> + //pause;
> };
> };
>
> @@ -235,7 +235,7 @@ port@6 {
> fixed-link {
> speed = <1000>;
> full-duplex;
> - pause;
> + //pause;
> };
> };
> };
>
> regards Frank
I think I have an idea on how to properly deal with this issue now. I
had overlooked the fact that on MT7623 the link to the switch is only
1000M, so any QDMA shaping to that speed does not make any sense, since
throughput is already limited by MAC speed.
I will make a patch that enables shaping only if port_speed < mac_speed.
- Felix
next prev parent reply other threads:[~2023-03-29 7:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-24 14:04 [PATCH net] net: ethernet: mtk_eth_soc: fix tx throughput regression with direct 1G links Felix Fietkau
2023-03-25 9:28 ` Aw: " Frank Wunderlich
2023-03-26 15:56 ` Felix Fietkau
2023-03-26 17:10 ` Aw: " Frank Wunderlich
2023-03-26 17:27 ` Felix Fietkau
2023-03-26 17:49 ` Aw: " Frank Wunderlich
2023-03-26 20:09 ` Felix Fietkau
2023-03-27 17:28 ` Aw: " Frank Wunderlich
2023-03-29 7:48 ` Felix Fietkau [this message]
2023-03-29 12:04 ` Felix Fietkau
2023-03-30 13:58 ` Aw: " Frank Wunderlich
2023-03-30 17:06 ` Felix Fietkau
2023-03-31 12:46 ` Aw: " Frank Wunderlich
2023-03-29 2:01 ` Jakub Kicinski
2023-03-29 4:54 ` Felix Fietkau
2023-03-29 6:30 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3c4bbce9-a66c-f458-f971-a162ef13a03c@nbd.name \
--to=nbd@nbd.name \
--cc=daniel@makrotopia.org \
--cc=frank-w@public-files.de \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).