netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Aw: Re: Choose a default DSA CPU port
@ 2023-02-24 20:44 Frank Wunderlich
  2023-02-24 21:08 ` Vladimir Oltean
  0 siblings, 1 reply; 30+ messages in thread
From: Frank Wunderlich @ 2023-02-24 20:44 UTC (permalink / raw)
  To: Vladimir Oltean
  Cc: Arınç ÜNAL, netdev, erkin.bozoglu, Andrew Lunn,
	Florian Fainelli, Felix Fietkau, John Crispin, Mark Lee,
	Lorenzo Bianconi, Matthias Brugger, Landen Chao, Sean Wang,
	DENG Qingfang



> mhm...tried again with port5 disabled (pause enabled again) and got same result, so this seems not to be the cause > as i thought (but have now other patches in like core-clock dropped and RX fix).

6.1.12 is clean and i get 940 Mbit/s over gmac0/port6

root@bpi-r2:~# iperf3 -c 192.168.0.21
Connecting to host 192.168.0.21, port 5201
[  5] local 192.168.0.11 port 44876 connected to 192.168.0.21 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   113 MBytes   950 Mbits/sec    0    464 KBytes
[  5]   1.00-2.00   sec   112 MBytes   939 Mbits/sec    0    485 KBytes
[  5]   2.00-3.00   sec   112 MBytes   940 Mbits/sec    0    485 KBytes
[  5]   3.00-4.00   sec   112 MBytes   938 Mbits/sec    0    485 KBytes
[  5]   4.00-5.00   sec   112 MBytes   937 Mbits/sec    0    485 KBytes
[  5]   5.00-6.00   sec   112 MBytes   941 Mbits/sec    0    485 KBytes
[  5]   6.00-7.00   sec   112 MBytes   940 Mbits/sec    0    485 KBytes
[  5]   7.00-8.00   sec   112 MBytes   937 Mbits/sec    0    485 KBytes
[  5]   8.00-9.00   sec   112 MBytes   942 Mbits/sec    0    485 KBytes
[  5]   9.00-10.00  sec   112 MBytes   936 Mbits/sec    0    485 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.09 GBytes   940 Mbits/sec    0             sender
[  5]   0.00-10.05  sec  1.09 GBytes   935 Mbits/sec                  receiver

6.2.0 is not...so something else in 6.2 has caused the speed drop

regards Frank


^ permalink raw reply	[flat|nested] 30+ messages in thread
* Aw: Re: Choose a default DSA CPU port
@ 2023-02-25 11:44 Frank Wunderlich
  0 siblings, 0 replies; 30+ messages in thread
From: Frank Wunderlich @ 2023-02-25 11:44 UTC (permalink / raw)
  To: Vladimir Oltean
  Cc: Arınç ÜNAL, netdev, erkin.bozoglu, Andrew Lunn,
	Florian Fainelli, Felix Fietkau, John Crispin, Mark Lee,
	Lorenzo Bianconi, Matthias Brugger, Landen Chao, Sean Wang,
	DENG Qingfang

fixed the broken network by applying this patch on top of the current position

1a3245fe0cf8 net: ethernet: mtk_eth_soc: fix DSA TX tag hwaccel for switch port 0

now ping works again but throughput is now 620Mbit/s

i try to continue the bisect (have to apply the change on each step i guess)

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Choose a default DSA CPU port
@ 2023-02-18 17:07 Arınç ÜNAL
  2023-02-18 20:52 ` Vladimir Oltean
  0 siblings, 1 reply; 30+ messages in thread
From: Arınç ÜNAL @ 2023-02-18 17:07 UTC (permalink / raw)
  To: Vladimir Oltean, Frank Wunderlich; +Cc: netdev, erkin.bozoglu

Hey there folks,

The problem is this. Frank and I have got a Bananapi BPI-R2 with MT7623 
SoC. The port5 of MT7530 switch is wired to gmac1 of the SoC. Port6 is 
wired to gmac0. Since DSA sets the first CPU port it finds on the 
devicetree, port5 becomes the CPU port for all DSA slaves.

But we'd prefer port6 since it uses trgmii while port5 uses rgmii. There 
are also some performance issues with the port5 - gmac1 link.

Now we could change it manually on userspace if the DSA subdriver 
supported changing the DSA master.

I'd like to find a solution which would work for the cases of; the 
driver not supporting changing the DSA master, or saving the effort of 
manually changing it on userspace.

The solution that came to my mind:

Introduce a DT property to designate a CPU port as the default CPU port.
If this property exists on a CPU port, that port becomes the CPU port 
for all DSA slaves.
If it doesn't exist, fallback to the first-found-cpu-port method.

Frank doesn't like this idea:

 > maybe define the default cpu in driver which gets picked up by core 
(define port6 as default if available).
 > Imho additional dts-propperty is wrong approch...it should be handled 
by driver. But cpu-port-selection is currently done in dsa-core which 
makes it a bit difficult.

What are your thoughts?

Arınç

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

end of thread, other threads:[~2023-05-19 23:54 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-24 20:44 Aw: Re: Choose a default DSA CPU port Frank Wunderlich
2023-02-24 21:08 ` Vladimir Oltean
2023-02-25 11:14   ` Aw: " Frank Wunderlich
2023-02-25 13:50   ` Frank Wunderlich
2023-02-25 16:11     ` Arınç ÜNAL
2023-02-25 19:56       ` Arınç ÜNAL
2023-02-26 12:12         ` Aw: " Frank Wunderlich
2023-02-28  9:54           ` Arınç ÜNAL
2023-02-28 11:58           ` Vladimir Oltean
2023-02-28 13:48             ` Frank Wunderlich
2023-02-28 22:56               ` Vladimir Oltean
2023-03-01  6:38                 ` Frank Wunderlich
2023-03-01 12:37                   ` Vladimir Oltean
2023-03-06 18:20                     ` Aw: " Frank Wunderlich
2023-03-07 17:43                       ` Vladimir Oltean
2023-04-13 18:09                         ` Aw: " Frank Wunderlich
2023-04-13 21:30                           ` Frank Wunderlich
2023-05-16 19:29             ` Arınç ÜNAL
2023-05-17 16:10               ` Vladimir Oltean
2023-05-17 16:14                 ` Arınç ÜNAL
2023-05-17 16:16                   ` Vladimir Oltean
2023-05-18 10:36                     ` Arınç ÜNAL
2023-05-18 14:24                       ` Vladimir Oltean
2023-05-19  9:00                         ` Arınç ÜNAL
2023-05-19 23:54                           ` Vladimir Oltean
  -- strict thread matches above, loose matches on Subject: below --
2023-02-25 11:44 Aw: " Frank Wunderlich
2023-02-18 17:07 Arınç ÜNAL
2023-02-18 20:52 ` Vladimir Oltean
2023-02-19  7:35   ` Arınç ÜNAL
2023-02-19  9:49     ` Aw: " Frank Wunderlich
2023-02-21  0:27       ` Vladimir Oltean
2023-02-22 17:17         ` Aw: " Frank Wunderlich
2023-02-22 18:06           ` Vladimir Oltean
2023-02-22 18:08             ` Arınç ÜNAL
2023-02-22 19:34               ` Vladimir Oltean
2023-02-22 19:42                 ` Arınç ÜNAL
2023-02-24 18:07                   ` Aw: " Frank Wunderlich
2023-02-24 18:13                     ` Vladimir Oltean
2023-02-24 18:31                       ` Aw: " Frank Wunderlich

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