so, I'm trying to experiment with 6.12 kernels on my bananapi R4 (mediatek filogic soc).
I'm using Danielle Golle's mod on github
When enabling eee on any of the built-in switch ports, a issue arises.
This doesn't happen immediately, but let's say, somewhere < 3m.
it is important to tell that though it should only affect the switch (if it was a hardware issue), SFP-LAN and SFP-WAN are also misbehaving because of eee enablement on the ports
BusyBox v1.37.0 (2025-05-22 08:24:58 UTC) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r0+29732-f7cb71865a
-----------------------------------------------------
root@APBureau4:~# ethtool --set-eee lan1 eee on
[ 1836.936783] mt7530-mmio 15020000.switch lan1: Link is Down
root@APBureau4:~# ethtool --set-eee lan1 eee on[ 1841.102841] mt7530-mmio 15020000.switch lan1: Link is Up - 1Gbps/Full - flow control rx/tx
root@APBureau4:~# ethtool --set-eee lan2 eee on
root@APBureau4:~# ethtool --set-eee lan3 eee on
[ 1854.482724] mt7530-mmio 15020000.switch lan3: Link is Down
root@APBureau4:~[ 1854.488892] br-lan: port 3(lan3) entered disabled state
#
root@APBureau4:~# ethtool --set-eee lan3 eee on[ 1857.635514] mt7530-mmio 15020000.switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[ 1857.636145] br-lan: port 3(lan3) entered blocking state
[ 1857.649018] br-lan: port 3(lan3) entered forwarding state
root@APBureau4:~# [ 2025.831691] mtk_soc_eth 15100000.ethernet eth0: NETDEV WATCHDOG: CPU: 3: transmit queue 3 timed out 5714 ms
[ 2027.751698] mtk_soc_eth 15100000.ethernet sfp-wan: NETDEV WATCHDOG: CPU: 3: transmit queue 2 timed out 5634 ms
[ 2028.738376]
[ 2028.738376] ==================== FE ====================
[ 2028.745185] 0x00000000: 810000b0 00000000 03300020 00000000
[ 2028.750759] 0x00000010: 000007e7 00000000 00001818 000fffff
[ 2028.756326] 0x00000020: 21021000 00000000 00000000 00000000
... register dump ... (guess nobody cares)
[ 2029.262784] 0x000005d0: 00000000 00000000 00000000 00000000
[ 2029.268348] 0x000005e0: 00000000 00000000 00000000 00000000
[ 2029.273914] 0x000005f0: 00000000 00000000 00000000 00000000
[ 2029.279479]
[ 2029.279479] ==================== FE ====================
[ 2029.286259] 0x00001400: 81000001 00000000 00000000 00000000
[ 2029.291825] 0x00001410: 00000000 00000000 00000000 00000000
... and another register dump ...
[ 2029.542259] 0x000016e0: 00000000 00000000 00000000 00000000
[ 2029.547824] 0x000016f0: 00000000 00000000 00000000 00000000
[ 2029.553389]
[ 2029.553389] ==================== ADMA ====================
[ 2029.560342] 0x00006900: 15430000 00000800 00000562 00000563
[ 2029.565907] 0x00006910: 00000000 00000000 00000000 00000000
... and another one ...
[ 2029.805235] 0x00006bc0: 00000000 00000000 00000000 00000000
[ 2029.810800] 0x00006bd0: 00000000 00000000 00000000 00000000
[ 2029.816365] 0x00006be0: 00000000 00000000 00000000 00000000
[ 2029.821930] 0x00006bf0: 00000000 00000000 00000000 00000000
[ 2029.827496]
[ 2029.827496] QDMA PAGE:0
[ 2029.827498]
[ 2029.827498] ==================== QDMA ====================
[ 2029.838450] 0x00004400: 00000404 38140000 00000000 00000000
[ 2029.844016] 0x00004410: 00350404 38140000 1542dce0 1542e780
[ 2029.849581] 0x00004420: 000f0404 38140000 1542dca0 1542e440
[ 2029.855147] 0x00004430: 000a0404 3814a816 1542dd00 1542e100
[ 2029.860712] 0x00004440: 00000404 3814a816 00000000 00000000
... and another one ...
[ 2029.916368] 0x000044e0: 00000404 38140000 00000000 00000000
[ 2029.921932] 0x000044f0: 00000404 38140000 00000000 00000000
[ 2029.927496]
[ 2029.927496] ==================== QDMA ====================
[ 2029.934449] 0x00004500: 40300000 00000800 000007ff 00000000
[ 2029.940013] 0x00004510: deadbeef deadbeef deadbeef deadbeef
[ 2029.945579] 0x00004520: deadbeef deadbeef deadbeef deadbeef
[ 2029.951144] 0x00004530: deadbeef deadbeef deadbeef deadbeef
... and another one ...
[ 2030.184889] 0x000047d0: 00000000 00000000 00000000 00000000
[ 2030.190454] 0x000047e0: 00000000 00000000 00000000 00000000
[ 2030.196019] 0x000047f0: 00000000 00000002 00000000 00000000
[ 2030.201583]
[ 2030.201583] ==================== WDMA0 ====================
[ 2030.208621] 0x00004800: 00000000 00000000 00000000 00000000
[ 2030.214186] 0x00004810: 00000000 00000000 00000000 00000000
... and another one ...
[ 2030.553655] 0x00004be0: 00000020 000001f1 00000002 ffff0000
[ 2030.559220] 0x00004bf0: 00000000 00000000 00000000 00000011
[ 2030.564785]
[ 2030.564785] ==================== WDMA1 ====================
[ 2030.571825] 0x00004c00: 00000000 00000000 00000000 00000000
[ 2030.577390] 0x00004c10: 00000000 00000000 00000000 00000000
... and another one ...
[ 2030.649736] 0x00004ce0: 00000000 00000000 00000000 00000000
[ 2030.655301] 0x00004cf0: 00000000 00000000 00000000 00000000
[ 2030.660868] mtk_soc_eth 15100000.ethernet sfp-lan: NETDEV WATCHDOG: CPU: 3: transmit queue 1 timed out 5644 ms
[ 2030.670885] 0x00004d00: 00000000 00000000 00000000 00000000
[ 2030.676453] 0x00004d10: 00000000 00000000 00000000 00000000
... and another one ...
[ 2030.732106] 0x00004db0: 00000000 00000000 00000000 00000000
[ 2030.737671] 0x00004dc0: 00000000 00000000 00000000 00000000
[ 2030.743239] 0x00004dd0: 00000000 00000000 00000000 00000000
[ 2030.745033] mtk_soc_eth 15100000.ethernet eth0: NETDEV WATCHDOG: CPU: 1: transmit queue 3 timed out 10624 ms
[ 2030.748804] 0x00004de0: 00000000 00000000 00000000 00000000
[ 2030.764179] 0x00004df0: 00000000 00000000 00000000 00000000
... and another one ...
[ 2030.936709] 0x00004fe0: 00000020 000001f1 00000002 ffff0000
[ 2030.942273] 0x00004ff0: 00000000 00000000 00000000 00000011
[ 2030.947838]
[ 2030.947838] ==================== WDMA2 ====================
[ 2030.954880] 0x00005000: 00000000 00000000 00000000 00000000
... and another one ...
[ 2031.299919] 0x000053e0: 00000020 000001f1 00000002 ffff0000
[ 2031.305483] 0x000053f0: 00000000 00000000 00000000 00000011
[ 2031.311048]
[ 2031.311048] ==================== PPE0 ====================
[ 2031.318001] 0x00002200: 0000020d 000a770e ffffffff 00000000
[ 2031.323566] 0x00002210: 00000000 00000000 00000000 00114fb4
... and another one ...
[ 2031.473820] 0x000023c0: 00000000 00000000 00000000 deadbeef
[ 2031.479385] 0x000023d0: 00000000 00000000 deadbeef deadbeef
[ 2031.484950] 0x000023e0: deadbeef deadbeef deadbeef deadbeef
[ 2031.490516] 0x000023f0: deadbeef deadbeef deadbeef deadbeef
[ 2031.496082]
[ 2031.496082] ==================== PPE1 ====================
[ 2031.503034] 0x00002600: 0000020d 000a770e ffffffff 00000000
[ 2031.508599] 0x00002610: 00000000 00000000 00000000 00114fb4
[ 2031.514165] 0x00002620: 40600000 00000000 0001001e 3fff3fff
... and another one ...
[ 2031.669989] 0x000027e0: deadbeef deadbeef deadbeef deadbeef
[ 2031.675555] 0x000027f0: deadbeef deadbeef deadbeef deadbeef
[ 2031.681121]
[ 2031.681121] ==================== PPE2 ====================
[ 2031.688074] 0x00002e00: 0000020d 000a770e ffffffff 00000000
[ 2031.693639] 0x00002e10: 00000000 00000000 00000000 00114fb4
[ 2031.699204] 0x00002e20: 40800000 00000000 0001001e 3fff3fff
... and another one ...
[ 2031.855032] 0x00002fe0: deadbeef deadbeef deadbeef deadbeef
[ 2031.860597] 0x00002ff0: deadbeef deadbeef deadbeef deadbeef
[ 2031.866163]
[ 2031.866163] ==================== GMAC ====================
[ 2031.873115] 0x00010000: 4a000504 00000003 400c400c 08008831
[ 2031.878680] 0x00010010: 00000016 deadbeef 400c400c 08000800
[ 2031.884244] 0x00010020: deadbeef deadbeef deadbeef deadbeef
... and another one ...
[ 2032.123558] 0x000102d0: deadbeef deadbeef deadbeef deadbeef
[ 2032.129124] 0x000102e0: deadbeef deadbeef deadbeef deadbeef
[ 2032.134690] 0x000102f0: deadbeef deadbeef deadbeef deadbeef
[ 2032.140256]
[ 2032.140256] ==================== GMAC ====================
[ 2032.147207] 0x00010300: 2305f30b 00000002 0000000b 01010000
[ 2032.152772] 0x00010310: 00000000 050b0001 00000000 00000000
[ 2032.158337] 0x00010320: 00000000 00000000 00000000 00000000
... and another one ...
[ 2032.230688] 0x000103f0: deadbeef deadbeef deadbeef deadbeef
[ 2032.236256]
[ 2032.236256] ==================== XGMAC0 ====================
[ 2032.243383] 0x00012000: 77fe2c00 00000000 00000000 deadbeef
[ 2032.248948] 0x00012010: 00000001 deadbeef deadbeef deadbeef
[ 2032.254514] 0x00012020: 00000000 0fffffff 00000007 deadbeef
... and another one ...
[ 2032.493819] 0x000122d0: deadbeef deadbeef deadbeef deadbeef
[ 2032.499384] 0x000122e0: deadbeef deadbeef deadbeef deadbeef
[ 2032.504948] 0x000122f0: deadbeef deadbeef deadbeef deadbeef
[ 2032.510514]
[ 2032.510514] ==================== XGMAC1 ====================
[ 2032.517640] 0x00013000: 77fe2c00 00000000 00000000 deadbeef
[ 2032.523206] 0x00013010: 00000001 deadbeef deadbeef deadbeef
[ 2032.528770] 0x00013020: 00000000 0fffffff 00000007 deadbeef
[ 2032.534336] 0x00013030: deadbeef deadbeef deadbeef deadbeef
[ 2032.539901] 0x00013040: 00700016 00000004 070c070c 0000005a
... and another one ...
[ 2032.656771] 0x00013190: 00000000 00000000 00000000 00000000
[ 2032.662336] 0x000131a0: 00000000 00000000 00000000 00000000
[ 2032.665036] mtk_soc_eth 15100000.ethernet sfp-wan: NETDEV WATCHDOG: CPU: 2: transmit queue 2 timed out 10544 ms
[ 2032.667898] 0x000131b0: 00000000 00000000 00000000 deadbeef
[ 2032.683535] 0x000131c0: 00000000 00000000 00000000 00000000
... and another one ...
[ 2032.789280] 0x000132f0: deadbeef deadbeef deadbeef deadbeef
[ 2032.992961] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[ 2032.998670] mtk_soc_eth 15100000.ethernet sfp-lan: Link is Down
[ 2033.004626] mtk_soc_eth 15100000.ethernet sfp-wan: Link is Down
[ 2033.369583] mtk_soc_eth 15100000.ethernet: warm reset failed
[ 2033.393964] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/internal link mode
[ 2033.402091] mtk_soc_eth 15100000.ethernet sfp-lan: configuring for inband/2500base-x link mode
[ 2033.402177] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 10Gbps/Full - flow control rx/tx
[ 2033.414264] mtk_soc_eth 15100000.ethernet sfp-wan: configuring for inband/2500base-x link mode
[ 2033.433269] br-lan: port 4(sfp-wan) entered disabled state
[ 2037.487333] mtk_soc_eth 15100000.ethernet sfp-wan: Link is Up - 2.5Gbps/Full - flow control off
[ 2037.487362] br-lan: port 4(sfp-wan) entered blocking state
[ 2037.501530] br-lan: port 4(sfp-wan) entered forwarding state
[ 2038.474000] mtk_soc_eth 15100000.ethernet sfp-lan: Link is Up - 2.5Gbps/Full - flow control off
root@APBureau4:~# reboot
So, while I'd love to be one of the few ones that actually speak binary, this is out-of-scope for me.
Has anybody any ideas how to debug this? especially the statement "warm reset failed" concerns me ... it clearly gets out-of-scope here