-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZBT-WG3526 MT7603 - WIFI kernel/driver crash on high usage (mt7603_mac.c:1205 mt7603_mac_work) #62
Comments
Sounds similar to the bug I reported. I also experience crashes with 2.4Ghz on wg3526. |
i did today a lot of tests with 5GHZ wifi .... incl high load with QOS and SQM,etc.... so, the problem is only on 2,4Ghz Wifi. hmm, how can we proceed now that devels can get more information to fix it ? @pparent76: maybe you can help to fix / test ? there are the real devels :) |
Yes I can do some test, but for now I'm not sure I have the skills to help with the development. Do not hesitate to ask me to do any test. |
I have the same Problem with the current LEDE:
|
Hi, The compagny Comminter ( http://www.societe.com/societe/communication-interactive-441996279.html ) would like to offer 250 euros (via paypal) for anyone who succeeds in solving issues related to the mt7603 driver on wg3526. We can also offer free wg3526 hardware, if needed. Regards. |
I've made some fixes, please test the latest version. |
Duplicate of #32 |
Ok we tested it on LEDE snapshot release, it seems to work! But is it compatible with openwrt, or will it be some day? Or is it only compatible with LEDE. If it is only compatible with LEDE. Or is there a way to cross-compile it for a stable version of LEDE? If you want the reward please send an email to amasson@comminter.com and pparent@comminter.com, with your paypal account. |
http://lists.infradead.org/pipermail/lede-dev/2017-May/007668.html, so yes since it sounds like the LEDE tree will become the new foundation. |
Ok, in the mean time, I've succeeded to cross-compile the package for LEDE 17.01.1, It will still need some testing. Unfortunately it seems unlikely that we can compile the driver for openwrt 15.05.1, right? |
are there the new changes/fixes in the new LEDE version ? |
It should be possible, but it's likely that |
After more testing, it seems a lot more stable than before but i'm not sure that it is really stable yet. I sometimes get random reboots without warning or error messages before. Sometimes I get
I'm not sure whether it's related or not with the driver. All this is on wg3526 with a mt7603e driver running. |
Today I got this on a fresh snapshot with kernel 4.4.74:
It did not reboot but the wifi stopped working until next reboot. |
I changed local code at mt76 ( LEDE ImageBulder ( master )) and rebuild kmod-mt7603_4.9.44+2017-07-17-3c4c9a64-1_arm_cortex-a7_neon-vfpv4.ipk but can't test it because I haven't device. |
... to 2017-12-17 hopefully fixing WLAN/LEDs. The general flash issue (32MB) was discussed [here](https://gist.github.com/dmke/d389bc364b3f73f525076eaee0019dc1). The resulting patch was following: http://lists.infradead.org/pipermail/linux-mtd/2016-December/070889.html [Another patch](lede-project/source@22d982e#diff-3835f027e16e6416090c1833bc732af3) by nbd168 added the required mtd read operations for supporting ZBT-WG3526-32M and Digineo AC1200 Pro. This patch hopefully also resolves the [mt76](openwrt/mt76#62) issue by bumping it to a new version.
openwrt#62 Credit for this patch goes to https://github.com/CodeFetch Patch location: CodeFetch/gluon@5e808b0
Steps to reproduce the error:
easy to reproduce within 1-2 minute:
1.) install trunk
2.) install iperf
3.) activate wifi and use 2,4Ghz on client connection (default config, also the same with different wifi settings)
4. generate traffic with “iperf” and you will get kernel/driver crash within 1-2 minute
(server): iperf -s -i 1 -w 6M
(client): iperf -c 192.168.1.19 -i 1 -w 6M -l 2M
`Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.350000] ------------[ cut here ]------------
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.350000] WARNING: CPU: 1 PID: 3850 at /home/buildbot/slave-lede-local/ramips_mt7621/build/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7621/mt76-2016-08-25/mt7603_mac.c:1208 mt7603_mac_work+0x200/0x27c mt7603e
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.370000] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle iptable_fWed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.440000] CPU: 1 PID: 3850 Comm: kworker/u8:2 Not tainted 4.4.32 #0
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.450000] Workqueue: phy1 mt7603_mac_work [mt7603e]
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.450000] Stack : 8e973880 80480000 803fdcfc 000004b8 8f21d324 00000000 8fc04614 8e973898
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.450000] 00000088 80063e90 803fdcfc 00000001 00000f0a 804d367c 80419780 8ea89d54
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.450000] 80480000 80061bdc 80480000 804f0000 80488298 8048829c 80402610 8ea89d54
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.450000] 80480000 80041414 8fc04614 8ea89d8c 00000447 00000000 00000000 00a89d74
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.450000] 8f21d124 8ff49f00 8ff49e00 31796870 00000000 00000000 00000000 00000000
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.450000] ...
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.490000] Call Trace:
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.490000] [<800167a8>] show_stack+0x50/0x84
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.490000] [<801b5834>] dump_stack+0x84/0xbc
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.500000] [<8002bf58>] warn_slowpath_common+0xa0/0xd0
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.500000] [<8002c010>] warn_slowpath_null+0x18/0x24
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.510000] [<8f21d324>] mt7603_mac_work+0x200/0x27c [mt7603e]
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.510000] [<8003f040>] process_one_work+0x214/0x358
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.520000] [<8003ff3c>] worker_thread+0x2d8/0x440
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.520000] [<800446f4>] kthread+0xd8/0xec
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.530000] [<80005478>] ret_from_kernel_thread+0x14/0x1c
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.530000]
Wed Nov 23 09:30:07 2016 kern.warn kernel: [ 2507.540000] ---[ end trace db1272735385a729 ]---
System
Hostname lede
Model ZBT-WG3526
Firmware Version LEDE Reboot r0+2292 / LuCI Master (git-16.324.51057-1c27f6b) from 22.11.2016
Kernel Version 4.4.32
lede-ramips-mt7621-zbt-wg3526-squashfs-sysupgra..> 22-Nov-2016 12:56 3932323
OpenWrt version: LEDE TRUNK
dmesg and/or logread output
What is expected vs. what actually happens
source code:
`void mt7603_mac_work(struct work_struct *work)
{
struct mt7603_dev *dev = container_of(work, struct mt7603_dev, mac_work.work);
struct sk_buff *skb;
int time = MT7603_WATCHDOG_TIME;
THIS LINE IS: 1208 ->
NULL))) {
dev->beacon_check = 0;
dev->tx_dma_check = 0;
dev->tx_hang_check = 0;
dev->rx_dma_check = 0;
dev->rx_pse_check = 0;
dev->rx_dma_idx = ~0;
memset(dev->tx_dma_idx, 0xff, sizeof(dev->tx_dma_idx));
mt7603_mac_watchdog_reset(dev);
}`
The text was updated successfully, but these errors were encountered: