DRA821U: Main CPSW RGMII not work issue

Part Number: DRA821U

Dear TI,

We made a new board with J7200(DRA821U), and use sdk "ti-processor-sdk-linux-j7200-evm-09_02_00_05".

The board have three ethernet ports, one mcu_cpsw, and two ports on Main CPSW.

For now, mcu_cpsw already work normal, but main cpsw ports not work, we used mofiled the dtso file "k3-j7200-evm-quad-port-eth-exp.dtso" as below, which already disabled unused port3 and port4

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/mux/ti-serdes.h>
#include <dt-bindings/net/ti-dp83867.h>
#include "k3-pinctrl.h"
&{/} {
aliases {
ethernet1 = "/bus@100000/ethernet@c000000/ethernet-ports/port@1";
ethernet2 = "/bus@100000/ethernet@c000000/ethernet-ports/port@2";
//ethernet3 = "/bus@100000/ethernet@c000000/ethernet-ports/port@3";
//ethernet4 = "/bus@100000/ethernet@c000000/ethernet-ports/port@4";
};
};
&cpsw0 {
status = "okay";
};
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

and we can see the eth0(mcu_cpsw) and eth1, eth2 on main cpsw by ifconfig command.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
root@j7200-evm:~# ifconfig
eth0 Link encap:Ethernet HWaddr 58:A1:5F:BE:63:2B
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth1 Link encap:Ethernet HWaddr 2E:5A:03:A5:9C:F0
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2c5a:3ff:fea5:9cf0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:11261 (10.9 KiB)
eth2 Link encap:Ethernet HWaddr 8E:D0:AF:A7:9F:41
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

however, after set ip for eth1 or eth2, it ping failed, and print lots of logs as below.

Fullscreen
1
2
3
4
[ 1977.825539] am65-cpsw-nuss c000000.ethernet eth1: txq:0 DRV_XOFF:0 tmo:1404352 dql_avail:-39 free_desc:505
[ 1982.945537] am65-cpsw-nuss c000000.ethernet eth1: txq:0 DRV_XOFF:0 tmo:1409472 dql_avail:-39 free_desc:505
[ 1988.065539] am65-cpsw-nuss c000000.ethernet eth1: txq:0 DRV_XOFF:0 tmo:1414592 dql_avail:-39 free_desc:505
[ 1994.209536] am65-cpsw-nuss c000000.ethernet eth1: txq:0 DRV_XOFF:0 tmo:1420736 dql_avail:-39 free_desc:505
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I have tried to change "phy-mode" to "rgmii", "rgmii-rxid", "rgmii-id", but not work.

attach the dmesg log on boot as below.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
root@j7200-evm:~# dmesg |grep ether
[ 0.954049] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
[ 0.954145] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
[ 0.954148] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
[ 0.954583] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:1
[ 0.993237] am65-cpsw-nuss c000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 5 quirks:00000000
[ 0.993322] am65-cpsw-nuss c000000.ethernet: Use random MAC address
[ 0.993379] am65-cpsw-nuss c000000.ethernet: Use random MAC address
[ 0.993388] am65-cpsw-nuss c000000.ethernet: initialized cpsw ale version 1.4
[ 0.993391] am65-cpsw-nuss c000000.ethernet: ALE Table size 512
[ 0.993696] am65-cpsw-nuss c000000.ethernet: CPTS ver 0x4e8a010b, freq:200000000, add_val:4 pps:0
[ 1.062112] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
[ 1.062206] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
[ 1.062209] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
[ 1.062596] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:1
[ 1.089015] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
[ 1.130501] am65-cpsw-nuss c000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 5 quirks:00000000
[ 1.130613] am65-cpsw-nuss c000000.ethernet: Use random MAC address
[ 1.130670] am65-cpsw-nuss c000000.ethernet: Use random MAC address
[ 1.130679] am65-cpsw-nuss c000000.ethernet: initialized cpsw ale version 1.4
[ 1.130682] am65-cpsw-nuss c000000.ethernet: ALE Table size 512
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

we can see the error message "[    4.680095] am65-cpsw-nuss c000000.ethernet: PSI-L request err -22" , but don't know why.

For this issue, how can I check next?

BR 

guangtao

x 出现错误。请重试或与管理员联系。