- Status Unconfirmed
- Percent Complete
- Task Type Bug Report
- Category Kernel
- Assigned To No-one
- Operating System All
- Severity High
- Priority Very Low
- Reported Version openwrt-19.07
- Due in Version Undecided
-
Due Date
Undecided
- Private
FS#3450 - AC2100 MT7621 eth0 (mtk_soc_eth): transmit queue 0 timed out
Model Xiaomi Mi Router AC2100
Architecture MediaTek MT7621 ver:1 eco:3
Firmware Version OpenWrt 19.07.4 r11208-ce6496d796 / LuCI openwrt-19.07 branch git-20.247.75781-0d0ab01
Kernel Version 4.14.195
Random BUG, no step to reproduce it exactly
Impact : Outage for few seconds, connectivity lost
Full log attached.
Regards
Sun Nov 15 13:40:27 2020 kern.warn kernel: [34514.700764] ————[ cut here ]———— Sun Nov 15 13:40:27 2020 kern.warn kernel: [34514.705405] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:320 0x8038c0d0
Sun Nov 15 13:40:27 2020 kern.info kernel: [34514.712448] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
Sun Nov 15 13:40:27 2020 kern.warn kernel: [34514.719382] Modules linked in: pppoe ppp_async pppox ppp_generic nf_conntrack_ipv6 mt7615e mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_FLOWOFFLOAD xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 tun leds_gpio gpio_button_hotplug
Sun Nov 15 13:40:27 2020 kern.warn kernel: [34514.780880] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.195 #0
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.786953] Stack : 00000000 00000000 00000000 87415340 00000000 00000000 00000000 00000000
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.795297] 00000000 00000000 00000000 00000000 00000000 00000001 87c09d60 1cc28223
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.803640] 87c09df8 00000000 00000000 00005840 00000038 8049c858 00000008 00000000
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.811972] 00000000 80550000 000bea50 00000000 87c09d40 00000000 00000000 8050aed8
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.820304] 8038c0d0 00000140 00000000 87415340 00000000 802ad210 00000000 806b0000
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.828636] ...
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.831071] Call Trace:
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.831112] [<8049c858>] 0x8049c858
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.837007] [<8038c0d0>] 0x8038c0d0
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.840479] [<802ad210>] 0x802ad210
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.843950] [<8000c1a0>] 0x8000c1a0
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.847419] [<8000c1a8>] 0x8000c1a8
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.850890] [<804856b4>] 0x804856b4
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.854360] [<80071ab0>] 0x80071ab0
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.857830] [<8002e608>] 0x8002e608
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.861301] [<8038c0d0>] 0x8038c0d0
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.864772] [<8002e690>] 0x8002e690
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.868241] [<8038c0d0>] 0x8038c0d0
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.871712] [<80099a00>] 0x80099a00
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.875183] [<8038bf24>] 0x8038bf24
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.878653] [<80088568>] 0x80088568
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.882131] [<80088824>] 0x80088824
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.885608] [<80079158>] 0x80079158
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.889080] [<804a3658>] 0x804a3658
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.892553] [<80032fb4>] 0x80032fb4
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.896024] [<8025a5f0>] 0x8025a5f0
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.899494] [<80007488>] 0x80007488
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.902962]
Sun Nov 15 13:40:28 2020 kern.warn kernel: [34514.904558] —[ end trace 3a20dcaf232c6cbd ]— Sun Nov 15 13:40:28 2020 kern.err kernel: [34514.909167] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
Sun Nov 15 13:40:28 2020 kern.info kernel: [34514.915361] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000065
Sun Nov 15 13:40:28 2020 kern.info kernel: [34514.921374] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=072d0000, max=0, ctx=3353, dtx=3353, fdx=3232, next=3353
Sun Nov 15 13:40:28 2020 kern.info kernel: [34514.932219] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=05870000, max=0, calc=3447, drx=3474
Sun Nov 15 13:40:28 2020 kern.info kernel: [34514.946271] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
Sun Nov 15 13:40:28 2020 kern.info kernel: [34514.959173] mtk_soc_eth 1e100000.ethernet: PPE started
As it stands this openwrt version v19.07.4 still doesnt have this patch
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=34a96529041d4e9502c490c66f8af0154187c6d2
Added in the latest v19.07 branch - should be in the next stable release v19.07.5
And this patch - https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=c8f8e59816eca49d776562d2d302bf990a87faf0
Helps this situation as well.
Thank you
I recompiles v19.07.4 using the patch above and the error appeared again:
Router: ZBT-WE1326
LAN & WAN connectivity was lost but wifi worked.
@gregoryD Try my https://gitlab.com/db260179/xiaomi-m4a stable branch
Just add your own .config to build for this router, as my changes are specific to the mt7530 and mt76 driver fixes which are generic and might fix your issues.
If it does, i can then try and get them added to the v19.07 branch for future fixes.
thanks, I will certainly try it as this issue drives me crazy. It happened again just now
@db260179
I dont think this resolves the problem. I've got the problem 2 times in the last 3h.
See dmesg.
Ok so looking at your log, your ethernet is going up and down alot, indicates a few things here.
Bad network cables, poor psu not giving enough power.
Other possibles are an unknown bug for this device, have you tried older v19.07 versions say v19.07.3?
The kernel module crashing is a side effect of some sort of load or connection issue happening.
@db260179
On my side, I didn't have this issue on v19.07.3.
I moved back to 19.07.3 too. So far so good.
@db260179 As for the bad network cable, it was indeed not plugged in properly.
probably same issue like:
https://bugs.openwrt.org/index.php?do=details&task_id=2628
A bit of a success - I tried all possible versions v19.07.1 - v19.07.4 and I experienced the issue in all of them daily.
Since, I moved to snapshot (OpenWrt SNAPSHOT r15165-66d12ce667, kernel: 5.4.81), the router has been stable for 5 days so far - longest I can remember
13 Dec: tried also 19.07.5 just out of curiosity - same issue. I'm reverting to snapshot again.
@Gregory D where did you get that snapshot? same issue here on 19.07.5
@Ivan Verevkin, I compile it myself from the sources
@Gregory D Can you share the way to compile it ?
OpenWrt settings target ? options ? etc..
@Duce I'm also testing my own build from master sources and it seems to be 100% stable. I have not managed to hang it or received kernel panic in the tests that i have done and that gave rise to problems in 19.07 with the old swconfig driver.
I'm compiling latest master sources for all MT7621 targets with luci and some more packages like PPPoE that may be necessary to configure the internet connection. I'm also compiling the sources of all packages to make my own repository and be able to install the packages directly from it. When it's completed i'll post the server url with the builds on the OpenWRT forum.
https://forum.openwrt.org/t/ramips-mt7621-freewrt-20-12-master-branch-based/82672
Hey all,
I build latest code but there are still some issues (related to : https://bugs.openwrt.org/index.php?do=details&task_id=3453) :
Going to monitor it longer.
Model Xiaomi Mi Router AC2100
Architecture MediaTek MT7621 ver:1 eco:3
Firmware Version OpenWrt SNAPSHOT r15253-d6cb50c7ba / LuCI Master git-20.357.24777-d72edc1
Kernel Version 5.4.83
Local Time 2020-12-22 13:56:30
[ 1571.607189] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[ 1571.614892] br-lan: port 1(lan1) entered blocking state
[ 1571.620145] br-lan: port 1(lan1) entered forwarding state
[ 1571.671196] mt7530 mdio-bus:1f lan2: Link is Up - 1Gbps/Full - flow control rx/tx
[ 1571.678769] br-lan: port 2(lan2) entered blocking state
[ 1571.684011] br-lan: port 2(lan2) entered forwarding state
[ 1880.612548] xt_CT: No such helper "ftp"
[ 2021.576600] xt_CT: No such helper "ftp"
[ 3016.455948] mt7530 mdio-bus:1f lan1: Link is Down
[ 3016.461103] br-lan: port 1(lan1) entered disabled state
[ 3017.480158] mt7530 mdio-bus:1f lan1: Link is Up - 10Mbps/Full - flow control off
[ 3017.487675] br-lan: port 1(lan1) entered blocking state
[ 3017.492905] br-lan: port 1(lan1) entered forwarding state
[ 6003.433188] mt7530 mdio-bus:1f lan1: Link is Down
[ 6003.438316] br-lan: port 1(lan1) entered disabled state
[ 6005.481413] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control off
[ 6005.489201] br-lan: port 1(lan1) entered blocking state
[ 6005.494478] br-lan: port 1(lan1) entered forwarding state
[ 6020.841011] mt7530 mdio-bus:1f lan1: Link is Down
[ 6020.845892] br-lan: port 1(lan1) entered disabled state
[ 6023.913216] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[ 6023.920765] br-lan: port 1(lan1) entered blocking state
[ 6023.926020] br-lan: port 1(lan1) entered forwarding state
[ 6124.264042] mt7530 mdio-bus:1f lan1: Link is Down
[ 6124.268905] br-lan: port 1(lan1) entered disabled state
[ 6126.312294] mt7530 mdio-bus:1f lan1: Link is Up - 10Mbps/Full - flow control off
[ 6126.319790] br-lan: port 1(lan1) entered blocking state
[ 6126.325074] br-lan: port 1(lan1) entered forwarding state
[ 6132.455953] mt7530 mdio-bus:1f lan1: Link is Down
[ 6132.460804] br-lan: port 1(lan1) entered disabled state
[ 6135.528149] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control off
[ 6135.535526] br-lan: port 1(lan1) entered blocking state
[ 6135.540791] br-lan: port 1(lan1) entered forwarding state
[ 6152.935698] mt7530 mdio-bus:1f lan1: Link is Down
[ 6152.940551] br-lan: port 1(lan1) entered disabled state
[ 6156.007943] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[ 6156.015623] br-lan: port 1(lan1) entered blocking state
[ 6156.020874] br-lan: port 1(lan1) entered forwarding state
I'm such a noob, it's my computer.. power off.. power on..