-
Notifications
You must be signed in to change notification settings - Fork 5
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
Internet connexion lost after a few minutes #2
Comments
Hi @Leborgne23 Which link speed works and doesn't work in your case? Does the link stable e.g. no packets loss? |
One more thing could you please send what is detected in (Mac) -> (About) -> (Ethernet). Interested in Device/Vendor IDs https://support.apple.com/en-gb/guide/system-information/syspr35536/mac |
Hi
Here are the info given by system report for the ethernet NIC, Wake on LAN and boot from LAN are disabled in bios.
Bus: PCI
Vendor ID: 0x8086
Device ID: 0x1539
Subsystem Vendor ID: 0x1458
Subsystem ID: 0xe000
Revision ID: 0x0003
PCIe Link Speed: 2.5 GT/s
PCIe Link Width: x1
Driver: com.amdosx.driver.AppleIGB
BSD Device Name: en2
MAC Address: 18:c0:4d:99:61:23
AVB Support: No
Maximum Link Speed: 1 Gb/s
Forcing 1000BaseT breaks connexion (local + internet), forcing 10baseT or 100baseTX is ok.
Thanks again.
Fabrice
…On 14 Feb 2022 at 13:14 +0100, donatengit ***@***.***>, wrote:
One more thing could you please send what is detected in (Mac) -> (About) -> (Ethernet). Interested in Device/Vendor IDs
https://support.apple.com/en-gb/guide/system-information/syspr35536/mac
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Well so far so good : more than 4 hours with no interruption whatsoever. Only thing I did since last time has been updating macOS to 12.2.1
Regards.
…On 14 Feb 2022 at 14:00 +0100, Fabrice Gelis ***@***.***>, wrote:
Hi
Here are the info given by system report for the ethernet NIC, Wake on LAN and boot from LAN are disabled in bios.
Bus: PCI
Vendor ID: 0x8086
Device ID: 0x1539
Subsystem Vendor ID: 0x1458
Subsystem ID: 0xe000
Revision ID: 0x0003
PCIe Link Speed: 2.5 GT/s
PCIe Link Width: x1
Driver: com.amdosx.driver.AppleIGB
BSD Device Name: en2
MAC Address: 18:c0:4d:99:61:23
AVB Support: No
Maximum Link Speed: 1 Gb/s
Forcing 1000BaseT breaks connexion (local + internet), forcing 10baseT or 100baseTX is ok.
Thanks again.
Fabrice
On 14 Feb 2022 at 13:14 +0100, donatengit ***@***.***>, wrote:
> One more thing could you please send what is detected in (Mac) -> (About) -> (Ethernet). Interested in Device/Vendor IDs
> https://support.apple.com/en-gb/guide/system-information/syspr35536/mac
> —
> Reply to this email directly, view it on GitHub, or unsubscribe.
> Triage notifications on the go with GitHub Mobile for iOS or Android.
> You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Nevermind, issue is back again after 5 hours.
…On 14 Feb 2022 at 15:30 +0100, Fabrice Gelis ***@***.***>, wrote:
Well so far so good : more than 4 hours with no interruption whatsoever. Only thing I did since last time has been updating macOS to 12.2.1
Regards.
On 14 Feb 2022 at 14:00 +0100, Fabrice Gelis ***@***.***>, wrote:
> Hi
> Here are the info given by system report for the ethernet NIC, Wake on LAN and boot from LAN are disabled in bios.
> Bus: PCI
> Vendor ID: 0x8086
> Device ID: 0x1539
> Subsystem Vendor ID: 0x1458
> Subsystem ID: 0xe000
> Revision ID: 0x0003
> PCIe Link Speed: 2.5 GT/s
> PCIe Link Width: x1
> Driver: com.amdosx.driver.AppleIGB
> BSD Device Name: en2
> MAC Address: 18:c0:4d:99:61:23
> AVB Support: No
> Maximum Link Speed: 1 Gb/s
>
>
> Forcing 1000BaseT breaks connexion (local + internet), forcing 10baseT or 100baseTX is ok.
>
> Thanks again.
>
> Fabrice
>
>
>
> On 14 Feb 2022 at 13:14 +0100, donatengit ***@***.***>, wrote:
> > One more thing could you please send what is detected in (Mac) -> (About) -> (Ethernet). Interested in Device/Vendor IDs
> > https://support.apple.com/en-gb/guide/system-information/syspr35536/mac
> > —
> > Reply to this email directly, view it on GitHub, or unsubscribe.
> > Triage notifications on the go with GitHub Mobile for iOS or Android.
> > You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@Leborgne23 Problem is I can't fully reproduce 1Gb issues with my NIC as it autonegotiates 100Mb with my old router and all other options don't work -- not necessarily due to the driver. While I'm looking for a valid 1G partner for testing could you please test one more version: [DELETED] |
Hi @Leborgne23 Could you please try a new version? It's supposed to be far more stable with link state changes. Thanks in advance |
Hi !
Thanks a lot for the notification. I’’ve been using the new version for an hour or so with no problem so far.
I’ll keep you posted.
Thanks for what you do.
Fabrice
…On 20 Feb 2022 at 19:49 +0100, donatengit ***@***.***>, wrote:
Hi @Leborgne23
Could you please try a new version? It supposed to be far more stable with link state changes.
Thanks in advance
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hello there. I am also experiencing issues as per description with your latest version (the one you sent out one hour ago). I am trying to install Monterey, and the installation errored out because of the network connection cut off almost half an hour in. I am using I211 on Asrock X570 Taichi. |
Hi @NyaomiDEV, You could manage which driver is used in each OS version by setting Min/MaxKernel options for every kext loaded in config.plist |
I know. I am, indeed, trying to install Monterey from scratch, meaning that I am loading your kext on the macOS recovery. Please tell me if I am doing this wrong, though! I just want |
Oh, I've never tested the driver in this way. And I'm not sure which debugging options available during the process tbh. |
It's an Intel AX200, which I can use only after installing the system anyway. Can't count on it sadly.
We'll probably hear from each other in five minutes because of the Discord server cooldown. |
Well I still have the issue using the new version sorry. Seems more stable if I force half duplex, maybe that can help.
Thanks guys.
…On 20 Feb 2022 at 20:54 +0100, Fabrice Gelis ***@***.***>, wrote:
Hi !
Thanks a lot for the notification. I’’ve been using the new version for an hour or so with no problem so far.
I’ll keep you posted.
Thanks for what you do.
Fabrice
On 20 Feb 2022 at 19:49 +0100, donatengit ***@***.***>, wrote:
> Hi @Leborgne23
> Could you please try a new version? It supposed to be far more stable with link state changes.
> Thanks in advance
> —
> Reply to this email directly, view it on GitHub, or unsubscribe.
> Triage notifications on the go with GitHub Mobile for iOS or Android.
> You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@Leborgne23, thanks.
|
Thanks ! Here are may answers
On 21 Feb 2022 at 11:10 +0100, donatengit ***@***.***>, wrote:
Well I still have the issue using the new version sorry. Seems more stable if I force half duplex, maybe that can help.
@Leborgne23, thanks.
1. Is it still connection lost (i.e. cable unplugged or similar) or packets loss? -> connection lost but OS thinks it’s connected. Web browser tries to establish connexion and gives up after 30 seconds or so.
2. What kind of network activity was that period: intense or almost none? It might be something with EEE power management -> I tested it using p2p (torrent) downloading / uploading so I guess yes it was intense.
3. Will you be able to run additional couple of commands in terminal when noticing problems? Yes I’ll do it, which ones ?
4. What link speed status is shown on the router, is this the same as autonegotiated/you force? Yes
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Ok, it narrows the root cause, I guess. It's either inability to cope with the load (torrent is one of the most network intensive activities indeed) or can't detect/manage hangs properly (since counter-party is often unreliable).
Great, I'll prepare a debug version with additional logging around packets transmission and would ask you to run |
Hi @Leborgne23, I've tested the driver under high torrents load and indeed some packets was getting timeouted (less with patches below) but the overall download speed was constantly hitting maximum speed ISP allows. And the link was still stable unfortunately. Anyway I applied several changes that might help:
Could you please test I recommend to test autonegotiated 1Gbs first and if the issue remains force 1GBps without EEE. As for additional debug, please run 2 terminals:
Thanks in advance |
Hi
I tested the attached version with no luck unfortunately.
Here is the screenshot of the requested commands.
Maybe something wrong with my OpenCore setup ?
Thanks again.
Fabrice
…On 22 Feb 2022 at 13:45 +0100, donatengit ***@***.***>, wrote:
Hi @Leborgne23,
I've tested the driver under high torrents load and indeed some packets was getting timeouted (less with patches below) but the overall download speed was constantly hitting maximum speed ISP allows. And the link was still stable unfortunately.
Anyway I applied several changes that might help:
1. Explicitly rejecting packets when transmit queue is busy (before that it was kind of silent)
2. Increased default queue capacity from 256 to 1024
3. Added options to (un)select EEE mode (there are notes that disabling it could fix spontaneous link problems)
4. Ensured software interrupt register in watchdog for rx ring cleaned
Could you please test
AppleIGB.kext.zip ?
I recommend to test autonegotiated 1Gbs first and if the issue remains force 1GBps without EEE.
Separately it would make sense to test limiting download/upload speed of your torrent client to 80-90% of your maximum ISP speed keeping space for other web/network activity (according to my tests torrents could take all of it).
As for additional debug, please run 2 terminals:
• one with ping 8.8.8.8 -- it constantly pings google and reflects time of response (it could show timeouts or increase in ms if torrents take all the bandwidth)
• another with sudo dmesg | grep -i igb -- run this as soon as you see any problem and accumulate contents for further sharing
•
Thanks in advance
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@Leborgne23 Thanks, forgot to attach the screenshot? |
Did SmallTree work well before? |
I did attach the screenshot to the email, not in GitHub.
Here it is again just in case.
Thanks
…On 22 Feb 2022 at 19:55 +0100, donatengit ***@***.***>, wrote:
@Leborgne23 Thanks, forgot to attach the screenshot?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I have no idea as I got this Mobo only last month and the only OS I used is Monterey, therefore with I got the issue everyone has with SmallTree.
If that can help I can install Big Sur on an external disk, use SmallTree and report back.
Fabrice
…On 22 Feb 2022 at 19:57 +0100, donatengit ***@***.***>, wrote:
> Maybe something wrong with my OpenCore setup ?
Did SmallTree work well before?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Thanks but still don't see it for some reason.
It's a good idea, please follow dortania guide carefully and while testing ensure no other network interfaces are enabled (including wi-fi). But before that there is another version available, stabilizing output speed by stalling packets (as in IntelMausi driver) |
I'm having the most stable connection atm with the 5.7.2-im, with the newest 2 i keep having random disconnection every 2/3 min. |
On which hardware though? |
intel i211 controller. Its stable except under heavy upload load (download seems ok). The other 2 versions are really unstable in my config. |
On which chipset? |
AMD X570 aorus elite. Edit: im having the same problems with that release too, was just lucky in some boots (still i dont know why) |
Same issue x570f gaming |
Also which SMBIOS/mac type you declare in your config.plist? |
Based on some debug activities with @thedxrklord in Discord, please try changing connection mode from Auto to 100 or 1000mbps, Full-duplex, With or Without Flow-control. It helped the guy. Let me know whether the connection is stable in your case. It might help me to narrow the issue |
Ok ill try this new setting in hardware config. For the other questions you're right, i reallly i dont have any difference with the newest versions, had just some luck with the old one. |
Thanks, it would be ideal if you run |
Hi everyone Just know, that auto mode drops it every 2-3 minutes, 100 is the stablest one I'm still learning why it happens, I'll write here if I find something Also, here is a bash script
|
Thanks for the bash script, i can confirm that without auto is much more stable |
The bash script sure can help getting a sense of continuity out of normal browsing, but the issue at hand is disruptive in real time applications like Teams meetings.. btw, so is it not stable on 1000Mbit/s at all? |
2 days ago was really stable even with 1000mbit/s, today it disconnects every 3 mins again. Here the dmesg |
Hi @thedxrklord , Thanks again for testing. I've just tested your approach on real macbook pro (2017) and not sure it reflects situation with connection consistently. Slightly modified script with exit code:
outputs following (under high network load in ~15 minutes):
So the script will perform long Even though it would make sense probably to switch your script to some local address first (e.g. router or ISP switch) to exclude ISP issues, please note that generally MacOS is not great on distributing network capacity between apps and services, one could take a lot from it. I've run
|
Hi @NyaomiDEV, Thanks, are you testing this on BigSur? And SmallTree doesn't have these issues in the exactly same context, correct? |
Hi @llyonard, Thanks for testing. It's really unusual that the driver started to disconnect after 2 days of stable work, something has changed I guess, or it might help us to narrow the issue.
Thanks in advance |
1)Yes there are manual disconnects but i just did that for restart the connection |
Hi @llyonard
So in your terms, disconnect is a dramatic speed drop, packets loss or something else?
It's possible that issue might be caused by this but hard to say without the NIC to debug.
Any news? |
@donatengit I'm also having connection drops. I have I211 NIC on ASUS ROG Formula VII X570. I'm on Monterey 12.5. |
Sadly i couldnt solve any of my problems so i was forrced to buy an usb to ethernet and since then i had 0 problems. Anyway im always open to help if you need more test for this project |
Found another log |
Hi @Cryptiiiic
It should be even on release version. At least when you are doing
Could you please ensure timing is correct for checking dmesg ? I think it would be really beneficial if you check that also right after what seems to be disconnect.
Not sure this is related, happening to people on real Macs. Separately, please ensure you are using latest version, it would make sense to try different modes for speed, duplex, flow control and EEE ((Settings -> Network -> Ethernet -> Advanced -> Hardware tab). |
Hi @llyonard Thanks a lot for your efforts and dedication.
I'm afraid until I have X570 to test or there is someone with X570 with minimal development skills there is not much you could help with. |
@donatengit
I have x570 and I'm a bit of developer myself. |
Hey @Cryptiiiic
Does it appear during normal network operating? Having such errors appearing for native mac users, I'm still not quite sure this is related but one guy from reddit was able to narrow this down. Anything that could interfere the connection: VPN, other network devices (like iPhone connected through usb), maybe some Network/PCI/Energy saving/Secure boot settings in BIOS, some advanced features of X570 assumed to be used by a driver? What kind of network load did you have that period of time? Unlikely but to confirm that there is no overheat AMD Power Gadget could help.
Re: log Anyway, I can't check register values (e.g. igb: [LU]: CTRL=0x581c0241 ) at the moment but other than another round of reset due to something changed the IGB_FLAG_NEED_LINK_UPDATE nothing looks suspicious -- link was established successfully.
Great! So main goal is to catch the period when connection is 'lost' (or if I get the situation with x570 correct packets begin to drop/stall silently) and corresponding reason, hoping this is not NIC or vendor specific. Still not clear whether it's in the core of the driver itself (tx/rx rings, interrupts, ...) or in the layer communicating with the OS, or due to some advanced X570 features assuming different driver behaviour. I propose to start with building DEBUG version of the driver with XCode and then get familiar with the code structure: all high-level ethernet controller management is concentrated in class AppleIGB (extending IOEthernetController), lower level code spread across I don't think it's the network queue out of capacity as you would get special log message in DEBUG version but not 100% sure. The driver is based on Intel's IGB 5.7.2, you could cherry-pick small relevant patches from Linux adoption and/or Intel's source code, last time I checked nothing had caught my eye. P.s. I would be happy to assist/help you further please let me know if you'd like to move to some messenger for a quicker turnaround, e.g. Discord |
Hey @Cryptiiiic, Any news? Meanwhile very unlikely it would help but please try a version based on Intel's 5.11.4. If it doesn't help there is not much I could do without both the X570 hardware and free time to debug. I'll describe extended project status soon and update here. |
Guys, |
@donatengit same issues with 5.11.4, I then switched to the normal debug build(non 5.11) here are those logs. Let me know if I didn't get proper logs. |
@donatengit Edit: Found source, its integrated into mausi fork. https://github.com/mbarbierato/IntelMausi/tree/Intgegration |
|
Can confirm, the link was posted on the amd discord forum, i installed since and i had 0 disconnection on a x570 gigabyte aorus elite |
@Cryptiiiic @henkiewie @llyonard Thanks a lot for your involvement and contribution, that's all amazing news! I'm a bit surprised tbh looking at the code that it was all that had been necessary (all this time) to make the whole I211 family work on MacOS (probably that's not all but don't have time to compile/check it myself) via well-tested IntelMausi codebase. Hope that @mbarbierato will be able to provide releases via Github, or to pull request, so it's being merged into IntelMausi for better community testing and support. Going to update READMEs with this fork deprecation and links immediately, going to block bug reports and discussion in 2-3 week in case anyone has something to say. Guys, please spend some time to create pull request to update Dortania guide with these new links. |
I've updated the README tried hard to mention every contributor, please let me know if missed anyone |
Hi, just to thank you for your work and let you know what words and what does not in my case :
NIC : Intel GbE LAN chip (Built in Gigabyte Aorus X570 elite)
OS version : macOS 12.2.1
Router : TP-link MR 400
The text was updated successfully, but these errors were encountered: