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
ramips: mt7530 fix #2847
ramips: mt7530 fix #2847
Conversation
For the first commit: You should make your commit message more specific. You should at least briefly describe what that error is. |
@981213 Maybe fixing the driver would still be relevant for backporting to 19.07, which is also on kernel 4.14? |
It's a good thing if the issue is really fixed. I'd suggest keep 4.14 kernel an option for ramips, since someone may want to enjoy the hw offloading that's only on 4.14 kernel so far. |
The last commit is no good. The comment is incorrect (when flow control is disabled). People on forums are reporting good results with https://patchwork.ozlabs.org/patch/1186211/ . Interrupt errors (as reported by /proc/interrupts) go down to 0. |
Since switching to 5.4 will introduce a lot of changes (switch driver, DTS, ...), maintaining 4.14 in parallel does not seem very desirable to me. It might create a lot of waste/duplicate work. Despite, any new release will be single-kernel anyway. If you want hw offloading, just rely on the 19.07 stable release with kernel 4.14 until it's EOL. |
Good point. @ptpt52 I'd need to check SDK driver behavior for the 3rd commit. |
@981213 |
This disable eee for mt7530 ports, it causes the link down/up issue, which happens when connecting to 100Mbit switch Fixes: FS#1449 from openwrt/openwrt#2847
It should not. One Tx DMA descriptor can take up to two fragments. |
you're right.. |
…default This revert c8f8e59 The TX/RX flow control is not the cause of the TX timeouts issue Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
fe_empty_txd() should return `tx_ring_size - 1` on ring empty, and return 0 on ring full. Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
This disable eee for mt7530 ports, it causes the link down/up issue, which happens when connecting to 100Mbit switch Fixes: FS#1449 Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
but out of curiosity - what's the direction we are going to take regarding hw offload? |
No practically possible for now, since the new DSA driver introduced non-compatible markers which made it impossible for hardware to handle it, as one of the developers said in other pull request comment. So I wouldn't hold my breath just yet. |
Hi. I compiled latest master with your patches applied, for me the problem still persists. Wasn't happening with my other router I was using as a backup.
|
You might want to also apply https://github.com/openwrt/openwrt/pull/2843 and see what happened. BTW, you didn't mention what router are you using for tests. |
@LearZhou I thought about doing that, but I thought the patches would conflict with each other since they modify the same files. Also thought about doing that by hand but didnt feel like it. Maybe Ill have a try. I used a xiaomi r3g. |
@reasdent you should probably try forcing the disabled flow control by keeping the reverted commit 04622a3 |
@yoonsikp I could do that, but the idea of this commit is to fix the issue without that commit, or isnt it? |
In my case, the link down up occurred frequently when connected to a 100 Mbps device, and then after eee was disabled, it no longer happened. I actually tested it. |
I'll recompile then just in case. I compiled the build with -O2 instead of -Os, but I don't think that is causing the patch not to work. Edit: fw in place, hopefully it will be fine. |
I'm afraid to say that for me the problem still persists. Just had a random disconnect after 25h uptime :(. |
According to various feedback, the random down up issue still exists when connecting to 1000Mbps devices, but the thing that can be confirmed is that the down up issue that occurs when connecting to 100Mbps devices is fixed |
I am sorry to disagree once again, but my testing was performed with a 100mbit link. Edit: actually I am not that sure. it may have been my (other) wan 1gbit connection to the modem that got disconnected. I guess I have no way to find out. And iirc this also happened when the connection to my switch was 1gbit so yeah. |
Haven’t encountered one so far since applied your patch without revert part. But the last session only run more than 5 days, before reboot due to network reconfiguration. |
outdated |
Fix the mt7530 tx timeout issue
I think the tx timeout is caused by the wrong implement of fe_empty_txd() function
for hours test no tx timeout
Disable eee to fix the link down/up problem
https://bugs.openwrt.org/index.php?do=details&task_id=1449
tested ok and sure fixed