Part Number: AM3358
Tool/software: Linux
Occasionally one of the units I am working on gets into a state where there is no TX or RX activity.
I still see activity via the rxgoodframes counter, but not the rx_ackets counter. I don't see any other errors or error counters. Here is a dump of the sysfs info from the error state:
/uevent
DRIVER=cpsw
MODALIAS=platform:cpsw
./modalias
platform:cpsw
./power/async
disabled
./power/runtime_status
active
./power/runtime_usage
1
./power/runtime_active_kids
0
./power/runtime_enabled
enabled
./power/control
auto
./power/runtime_suspended_time
5260
./power/runtime_active_time
178887840
./power/autosuspend_delay_ms
cat: read error: I/O error
./net/eth0/uevent
INTERFACE=eth0
IFINDEX=5
./net/eth0/addr_assign_type
0
./net/eth0/addr_len
6
./net/eth0/dev_id
0x0
./net/eth0/ifalias
./net/eth0/iflink
5
./net/eth0/ifindex
5
./net/eth0/type
1
./net/eth0/link_mode
0
./net/eth0/address
50:8c:b1:bd:6a:34
./net/eth0/broadcast
ff:ff:ff:ff:ff:ff
./net/eth0/carrier
1
./net/eth0/speed
1000
./net/eth0/duplex
full
./net/eth0/dormant
0
./net/eth0/operstate
up
./net/eth0/mtu
1500
./net/eth0/flags
0x1203
./net/eth0/tx_queue_len
1000
./net/eth0/netdev_group
0
./net/eth0/statistics/rx_packets
0
./net/eth0/statistics/tx_packets
0
./net/eth0/statistics/rx_bytes
0
./net/eth0/statistics/tx_bytes
0
./net/eth0/statistics/rx_errors
0
./net/eth0/statistics/tx_errors
0
./net/eth0/statistics/rx_dropped
0
./net/eth0/statistics/tx_dropped
0
./net/eth0/statistics/multicast
0
./net/eth0/statistics/collisions
0
./net/eth0/statistics/rx_length_errors
0
./net/eth0/statistics/rx_over_errors
0
./net/eth0/statistics/rx_crc_errors
0
./net/eth0/statistics/rx_frame_errors
0
./net/eth0/statistics/rx_fifo_errors
0
./net/eth0/statistics/rx_missed_errors
0
./net/eth0/statistics/tx_aborted_errors
0
./net/eth0/statistics/tx_carrier_errors
0
./net/eth0/statistics/tx_fifo_errors
0
./net/eth0/statistics/tx_heartbeat_errors
0
./net/eth0/statistics/tx_window_errors
0
./net/eth0/statistics/rx_compressed
0
./net/eth0/statistics/tx_compressed
0
./net/eth0/power/async
disabled
./net/eth0/power/runtime_status
unsupported
./net/eth0/power/runtime_usage
0
./net/eth0/power/runtime_active_kids
0
./net/eth0/power/runtime_enabled
disabled
./net/eth0/power/control
auto
./net/eth0/power/runtime_suspended_time
0
./net/eth0/power/runtime_active_time
0
./net/eth0/power/autosuspend_delay_ms
cat: read error: I/O error
./net/eth0/ale_control
enable=1
clear=0
ageout=0
p0_uni_flood=0
vlan_nolearn=0
no_port_vlan=0
oui_deny=0
bypass=0
rate_limit_tx=0
vlan_aware=1
auth_enable=0
rate_limit=0
port_state.0=3
port_state.1=3
drop_untagged.0=0
drop_untagged.1=0
drop_unknown.0=0
drop_unknown.1=0
nolearn.0=0
nolearn.1=0
nolearn.0=0
nolearn.1=0
unknown_vlan_member=0
unknown_mcast_flood=0
unknown_reg_flood=0
untagged_egress=0
bcast_limit.0=0
bcast_limit.1=0
mcast_limit.0=0
mcast_limit.1=0
./net/eth0/ale_table
index 0, raw: 00000000 20020000 00030303, type: vlan(2), vlan: 2, vlanuntag: 0, vlanregmcast: 3, vlanunregmcast: 3, vlanmemberlist: 3
index 1, raw: 0000000c 3002ffff ffffffff, type: vlan+addr(3), vlan: 2, addr: ff:ff:ff:ff:ff:ff, mcstate: f(0), port mask: 3, no super
index 2, raw: 00000000 1000508c b1bd6a34, type: addr(1), addr: 50:8c:b1:bd:6a:34, uctype: persistant(0), port: 0
index 3, raw: 00000000 20000000 07000007, type: vlan(2), vlan: 0, vlanuntag: 7, vlanregmcast: 0, vlanunregmcast: 0, vlanmemberlist: 7
index 4, raw: 0000000c 30023333 00000001, type: vlan+addr(3), vlan: 2, addr: 33:33:00:00:00:01, mcstate: f(0), port mask: 3, no super
index 5, raw: 0000000c 30020100 5e000001, type: vlan+addr(3), vlan: 2, addr: 01:00:5e:00:00:01, mcstate: f(0), port mask: 3, no super
index 6, raw: 0000000c 30023333 ffbd6a34, type: vlan+addr(3), vlan: 2, addr: 33:33:ff:bd:6a:34, mcstate: f(0), port mask: 3, no super
index 16, raw: 00000004 f00204fe 7f3d7017, type: vlan+addr(3), vlan: 2, addr: 04:fe:7f:3d:70:17, uctype: touched(3), port: 1
index 37, raw: 00000004 f002d067 2647e64e, type: vlan+addr(3), vlan: 2, addr: d0:67:26:47:e6:4e, uctype: touched(3), port: 1
index 47, raw: 00000004 f002508c b1bd88d8, type: vlan+addr(3), vlan: 2, addr: 50:8c:b1:bd:88:d8, uctype: touched(3), port: 1
index 62, raw: 00000004 f0020242 ac130003, type: vlan+addr(3), vlan: 2, addr: 02:42:ac:13:00:03, uctype: touched(3), port: 1
./net/eth0/hw_stats
CPSW Statistics:
rxgoodframes ............................ 1530278
rxbroadcastframes ....................... 21
rxmulticastframes ....................... 1530223
rxfragments ............................. 2
rxoctets ................................ 134715019
txgoodframes ............................ 18
txmulticastframes ....................... 18
txoctets ................................ 1572
octetframes64 ........................... 21
octetframes65t127 ....................... 1524402
octetframes128t255 ...................... 5872
octetframes512t1023 ..................... 1
netoctets ............................... 134716706
rxsofoverruns ........................... 1530204
rxdmaoverruns ........................... 1530204
RX DMA Statistics:
head_enqueue ............................ 1
tail_enqueue ............................ 63
TX DMA Statistics:
head_enqueue ............................ 1
tail_enqueue ............................ 17
misqueued ............................... 17
./net/eth1/uevent
INTERFACE=eth1
IFINDEX=6
./net/eth1/addr_assign_type
0
./net/eth1/addr_len
6
./net/eth1/dev_id
0x0
./net/eth1/ifalias
./net/eth1/iflink
6
./net/eth1/ifindex
6
./net/eth1/type
1
./net/eth1/link_mode
0
./net/eth1/address
50:8c:b1:bd:6a:36
./net/eth1/broadcast
ff:ff:ff:ff:ff:ff
./net/eth1/carrier
cat: read error: Invalid argument
./net/eth1/speed
cat: read error: Invalid argument
./net/eth1/duplex
cat: read error: Invalid argument
./net/eth1/dormant
cat: read error: Invalid argument
./net/eth1/operstate
down
./net/eth1/mtu
1500
./net/eth1/flags
0x1202
./net/eth1/tx_queue_len
1000
./net/eth1/netdev_group
0
./net/eth1/statistics/rx_packets
0
./net/eth1/statistics/tx_packets
0
./net/eth1/statistics/rx_bytes
0
./net/eth1/statistics/tx_bytes
0
./net/eth1/statistics/rx_errors
0
./net/eth1/statistics/tx_errors
0
./net/eth1/statistics/rx_dropped
0
./net/eth1/statistics/tx_dropped
0
./net/eth1/statistics/multicast
0
./net/eth1/statistics/collisions
0
./net/eth1/statistics/rx_length_errors
0
./net/eth1/statistics/rx_over_errors
0
./net/eth1/statistics/rx_crc_errors
0
./net/eth1/statistics/rx_frame_errors
0
./net/eth1/statistics/rx_fifo_errors
0
./net/eth1/statistics/rx_missed_errors
0
./net/eth1/statistics/tx_aborted_errors
0
./net/eth1/statistics/tx_carrier_errors
0
./net/eth1/statistics/tx_fifo_errors
0
./net/eth1/statistics/tx_heartbeat_errors
0
./net/eth1/statistics/tx_window_errors
0
./net/eth1/statistics/rx_compressed
0
./net/eth1/statistics/tx_compressed
0
./net/eth1/power/async
disabled
./net/eth1/power/runtime_status
unsupported
./net/eth1/power/runtime_usage
0
./net/eth1/power/runtime_active_kids
0
./net/eth1/power/runtime_enabled
disabled
./net/eth1/power/control
auto
./net/eth1/power/runtime_suspended_time
0
./net/eth1/power/runtime_active_time
0
Here is a dump of the sysfs info from the working state:
./uevent
DRIVER=cpsw
MODALIAS=platform:cpsw
./modalias
platform:cpsw
./power/async
disabled
./power/runtime_status
active
./power/runtime_usage
1
./power/runtime_active_kids
0
./power/runtime_enabled
enabled
./power/control
auto
./power/runtime_suspended_time
5270
./power/runtime_active_time
8198290
./power/autosuspend_delay_ms
cat: read error: I/O error
./net/eth0/uevent
INTERFACE=eth0
IFINDEX=5
./net/eth0/addr_assign_type
0
./net/eth0/addr_len
6
./net/eth0/dev_id
0x0
./net/eth0/ifalias
./net/eth0/iflink
5
./net/eth0/ifindex
5
./net/eth0/type
1
./net/eth0/link_mode
0
./net/eth0/address
50:8c:b1:bd:6a:34
./net/eth0/broadcast
ff:ff:ff:ff:ff:ff
./net/eth0/carrier
1
./net/eth0/speed
1000
./net/eth0/duplex
full
./net/eth0/dormant
0
./net/eth0/operstate
up
./net/eth0/mtu
1500
./net/eth0/flags
0x1203
./net/eth0/tx_queue_len
1000
./net/eth0/netdev_group
0
./net/eth0/statistics/rx_packets
68096
./net/eth0/statistics/tx_packets
1599096
./net/eth0/statistics/rx_bytes
6005228
./net/eth0/statistics/tx_bytes
357456905
./net/eth0/statistics/rx_errors
0
./net/eth0/statistics/tx_errors
0
./net/eth0/statistics/rx_dropped
8678
./net/eth0/statistics/tx_dropped
0
./net/eth0/statistics/multicast
0
./net/eth0/statistics/collisions
0
./net/eth0/statistics/rx_length_errors
0
./net/eth0/statistics/rx_over_errors
0
./net/eth0/statistics/rx_crc_errors
0
./net/eth0/statistics/rx_frame_errors
0
./net/eth0/statistics/rx_fifo_errors
0
./net/eth0/statistics/rx_missed_errors
0
./net/eth0/statistics/tx_aborted_errors
0
./net/eth0/statistics/tx_carrier_errors
0
./net/eth0/statistics/tx_fifo_errors
0
./net/eth0/statistics/tx_heartbeat_errors
0
./net/eth0/statistics/tx_window_errors
0
./net/eth0/statistics/rx_compressed
0
./net/eth0/statistics/tx_compressed
0
./net/eth0/power/async
disabled
./net/eth0/power/runtime_status
unsupported
./net/eth0/power/runtime_usage
0
./net/eth0/power/runtime_active_kids
0
./net/eth0/power/runtime_enabled
disabled
./net/eth0/power/control
auto
./net/eth0/power/runtime_suspended_time
0
./net/eth0/power/runtime_active_time
0
./net/eth0/power/autosuspend_delay_ms
cat: read error: I/O error
./net/eth0/ale_control
enable=1
clear=0
ageout=0
p0_uni_flood=0
vlan_nolearn=0
no_port_vlan=0
oui_deny=0
bypass=0
rate_limit_tx=0
vlan_aware=1
auth_enable=0
rate_limit=0
port_state.0=3
port_state.1=3
drop_untagged.0=0
drop_untagged.1=0
drop_unknown.0=0
drop_unknown.1=0
nolearn.0=0
nolearn.1=0
nolearn.0=0
nolearn.1=0
unknown_vlan_member=0
unknown_mcast_flood=0
unknown_reg_flood=0
untagged_egress=0
bcast_limit.0=0
bcast_limit.1=0
mcast_limit.0=0
mcast_limit.1=0
./net/eth0/ale_table
index 0, raw: 00000000 20020000 00030303, type: vlan(2), vlan: 2, vlanuntag: 0, vlanregmcast: 3, vlanunregmcast: 3, vlanmemberlist: 3
index 1, raw: 0000000c 3002ffff ffffffff, type: vlan+addr(3), vlan: 2, addr: ff:ff:ff:ff:ff:ff, mcstate: f(0), port mask: 3, no super
index 2, raw: 00000000 1000508c b1bd6a34, type: addr(1), addr: 50:8c:b1:bd:6a:34, uctype: persistant(0), port: 0
index 3, raw: 00000000 20000000 07000007, type: vlan(2), vlan: 0, vlanuntag: 7, vlanregmcast: 0, vlanunregmcast: 0, vlanmemberlist: 7
index 4, raw: 0000000c 30023333 00000001, type: vlan+addr(3), vlan: 2, addr: 33:33:00:00:00:01, mcstate: f(0), port mask: 3, no super
index 5, raw: 0000000c 30020100 5e000001, type: vlan+addr(3), vlan: 2, addr: 01:00:5e:00:00:01, mcstate: f(0), port mask: 3, no super
index 6, raw: 0000000c 30023333 ffbd6a34, type: vlan+addr(3), vlan: 2, addr: 33:33:ff:bd:6a:34, mcstate: f(0), port mask: 3, no super
index 15, raw: 00000004 f0020242 ac130003, type: vlan+addr(3), vlan: 2, addr: 02:42:ac:13:00:03, uctype: touched(3), port: 1
index 20, raw: 00000004 f00204fe 7f3d7017, type: vlan+addr(3), vlan: 2, addr: 04:fe:7f:3d:70:17, uctype: touched(3), port: 1
index 42, raw: 00000004 f0020242 ac130002, type: vlan+addr(3), vlan: 2, addr: 02:42:ac:13:00:02, uctype: touched(3), port: 1
index 60, raw: 00000004 7002d067 2647e64e, type: vlan+addr(3), vlan: 2, addr: d0:67:26:47:e6:4e, uctype: untouched(1), port: 1
index 79, raw: 00000004 f002508c b1bd0653, type: vlan+addr(3), vlan: 2, addr: 50:8c:b1:bd:06:53, uctype: touched(3), port: 1
./net/eth0/hw_stats
CPSW Statistics:
rxgoodframes ............................ 68097
rxbroadcastframes ....................... 12
rxmulticastframes ....................... 52965
rxoctets ................................ 6005318
txgoodframes ............................ 1599096
txmulticastframes ....................... 373
txoctets ................................ 363853289
octetframes64 ........................... 12
octetframes65t127 ....................... 70198
octetframes128t255 ...................... 1544227
octetframes256t511 ...................... 52746
octetframes512t1023 ..................... 2
octetframes1024tup ...................... 8
netoctets ............................... 369858607
RX DMA Statistics:
head_enqueue ............................ 1
tail_enqueue ............................ 68160
busy_dequeue ............................ 1662382
good_dequeue ............................ 68097
TX DMA Statistics:
head_enqueue ............................ 1598908
tail_enqueue ............................ 188
misqueued ............................... 188
empty_dequeue ........................... 1662127
busy_dequeue ............................ 255
good_dequeue ............................ 1599096
./net/eth1/uevent
INTERFACE=eth1
IFINDEX=6
./net/eth1/addr_assign_type
0
./net/eth1/addr_len
6
./net/eth1/dev_id
0x0
./net/eth1/ifalias
./net/eth1/iflink
6
./net/eth1/ifindex
6
./net/eth1/type
1
./net/eth1/link_mode
0
./net/eth1/address
50:8c:b1:bd:6a:36
./net/eth1/broadcast
ff:ff:ff:ff:ff:ff
./net/eth1/carrier
cat: read error: Invalid argument
./net/eth1/speed
cat: read error: Invalid argument
./net/eth1/duplex
cat: read error: Invalid argument
./net/eth1/dormant
cat: read error: Invalid argument
./net/eth1/operstate
down
./net/eth1/mtu
1500
./net/eth1/flags
0x1202
./net/eth1/tx_queue_len
1000
./net/eth1/netdev_group
0
./net/eth1/statistics/rx_packets
0
./net/eth1/statistics/tx_packets
0
./net/eth1/statistics/rx_bytes
0
./net/eth1/statistics/tx_bytes
0
./net/eth1/statistics/rx_errors
0
./net/eth1/statistics/tx_errors
0
./net/eth1/statistics/rx_dropped
0
./net/eth1/statistics/tx_dropped
0
./net/eth1/statistics/multicast
0
./net/eth1/statistics/collisions
0
./net/eth1/statistics/rx_length_errors
0
./net/eth1/statistics/rx_over_errors
0
./net/eth1/statistics/rx_crc_errors
0
./net/eth1/statistics/rx_frame_errors
0
./net/eth1/statistics/rx_fifo_errors
0
./net/eth1/statistics/rx_missed_errors
0
./net/eth1/statistics/tx_aborted_errors
0
./net/eth1/statistics/tx_carrier_errors
0
./net/eth1/statistics/tx_fifo_errors
0
./net/eth1/statistics/tx_heartbeat_errors
0
./net/eth1/statistics/tx_window_errors
0
./net/eth1/statistics/rx_compressed
0
./net/eth1/statistics/tx_compressed
0
./net/eth1/power/async
disabled
./net/eth1/power/runtime_status
unsupported
./net/eth1/power/runtime_usage
0
./net/eth1/power/runtime_active_kids
0
./net/eth1/power/runtime_enabled
disabled
./net/eth1/power/control
auto
./net/eth1/power/runtime_suspended_time
0
./net/eth1/power/runtime_active_time
0