We're updating the issue view to help you get more done. 

Unstable stmmac network driver on Meson64

Description

Troubles with stmmac driver are present in K5.4.y and 5.6.y (probably 5.7.y as well)

Affected boards: Odroid C4, FriendlyARM Nanopi S905

Symptoms.

Usually works on cold boot.

[ 12.677335] meson8b-dwmac ff3f0000.ethernet eth0: PHY [0.0:00] driver [RTL8211F Gigabit Ethernet] (irq=23)
[ 12.679246] meson8b-dwmac ff3f0000.ethernet eth0: No Safety Features support found
[ 12.679256] meson8b-dwmac ff3f0000.ethernet eth0: PTP not supported by HW
[ 12.679264] meson8b-dwmac ff3f0000.ethernet eth0: configuring for phy/rgmii link mode
[ 18.165270] meson8b-dwmac ff3f0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 18.165301] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes read

Failed state:

[ 10.508923] meson8b-dwmac ff3f0000.ethernet eth0: PHY [0.0:00] driver [RTL8211F Gigabit Ethernet] (irq=23)
[ 10.519926] meson8b-dwmac ff3f0000.ethernet eth0: No Safety Features support found
[ 10.519937] meson8b-dwmac ff3f0000.ethernet eth0: PTP not supported by HW
[ 10.519945] meson8b-dwmac ff3f0000.ethernet eth0: configuring for phy/rgmii link mode
[ 16.047792] meson8b-dwmac ff3f0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 16.047834] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 16.068578] meson8b-dwmac ff3f0000.ethernet eth0: Link is Down
[ 16.117337] meson8b-dwmac ff3f0000.ethernet eth0: PHY [0.0:00] driver [RTL8211F Gigabit Ethernet] (irq=23)
[ 16.221021] meson8b-dwmac ff3f0000.ethernet: Failed to reset the dma
[ 16.221034] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
[ 16.221042] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Hw setup failed

Environment

None

Assignee

Igor Pecovnik

Reporter

Igor Pecovnik

Labels

None

Components

Fix versions

Affects versions

Priority

Highest
Configure