Opened 5 hours ago

Last modified 48 minutes ago

#19190 new bug

Atheros AR8152 V2.0 PHY errors

Reported by: majenko Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Drivers/Network/atheros813x Version: R1/beta5
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Unable to activate the AR8152 on an E1-1500 (Compaq 100-100el) system. Syslog is filled with PHY timeouts / resets and then the driver gets unloaded.

KERN: [atheros813x] (alc) phy write timeout : 29
KERN: [atheros813x] (alc) phy read timeout : 30
...
KERN: [atheros813x] (alc) could not disable RxQ/TxQ (0xffffffff)!
KERN: [atheros813x] (alc) could not disable Rx/Tx MAC(0xffffffff)!
KERN: [atheros813x] (alc) master reset timeout!
KERN: [atheros813x] (alc) reset timeout(0xffffffff)!
...
KERN: [atheros813x] (alc) reloading EEPROM timeout!
...
KERN: pci_unreserve_device(4, 0, 0, atheros813x)

Attachments (7)

drivers.txt (1.2 KB ) - added by majenko 5 hours ago.
listdev.txt (5.2 KB ) - added by majenko 5 hours ago.
listusb.txt (17.0 KB ) - added by majenko 5 hours ago.
syslog.txt (424.7 KB ) - added by majenko 5 hours ago.
my_photo-17.jpg (338.8 KB ) - added by majenko 82 minutes ago.
my_photo-18.jpg (358.0 KB ) - added by majenko 81 minutes ago.
dmesg.txt (8.9 KB ) - added by majenko 48 minutes ago.

Download all attachments as: .zip

Change History (23)

by majenko, 5 hours ago

Attachment: drivers.txt added

by majenko, 5 hours ago

Attachment: listdev.txt added

by majenko, 5 hours ago

Attachment: listusb.txt added

by majenko, 5 hours ago

Attachment: syslog.txt added

comment:1 by nephele, 4 hours ago

Component: Network & InternetDrivers/Network/atheros813x
Platform: x86-64All

Is this on beta5?

in reply to:  1 comment:2 by majenko, 4 hours ago

Replying to nephele:

Is this on beta5?

Yes. Freshly downloaded and installed this morning.

comment:3 by waddlesplash, 107 minutes ago

Please test on a recent nightly build, and also with ACPI disabled.

in reply to:  3 comment:4 by majenko, 97 minutes ago

Replying to waddlesplash:

Please test on a recent nightly build, and also with ACPI disabled.

hrev58265 - no change. Same timeouts. Same attaching failed.

There are no ACPI settings in the BIOS on this little board. In fact there's very little of anything in the BIOS on this little board.

comment:5 by nephele, 96 minutes ago

Waddlesplash ment disabeling acpi in our bootloader: https://www.haiku-os.org/docs/userguide/en/bootloader.html

in reply to:  5 comment:6 by majenko, 83 minutes ago

Replying to nephele:

Waddlesplash ment disabeling acpi in our bootloader: https://www.haiku-os.org/docs/userguide/en/bootloader.html

Ah, gotcha. Took a few attempts and needing to slow down the boot with a POST delay in the BIOS, but I got there in the end.

Booted with ACPI disabled: fails to boot. Hangs on booting with USB errors.

usb error control pipe 6: timeout waiting for queued request to complete

Goes through hub after hub after hub (spoiler: it's lying) trying to add devices that don't exist.

by majenko, 82 minutes ago

Attachment: my_photo-17.jpg added

by majenko, 81 minutes ago

Attachment: my_photo-18.jpg added

comment:7 by waddlesplash, 81 minutes ago

If you're not booting from USB, try blocklisting the USB bus_manager in the bootloader options also, and see if this gets further.

in reply to:  7 comment:8 by majenko, 80 minutes ago

Replying to waddlesplash:

If you're not booting from USB, try blocklisting the USB bus_manager in the bootloader options also, and see if this gets further.

Would that break my USB keyboard? (problem: there is only USB....)

comment:9 by waddlesplash, 78 minutes ago

Yes, it would, unfortunately.

You can also try disabling IO-APIC (but not ACPI), and "Ignore memory beyond 4GB" (both with and without disabling IO-APIC.)

in reply to:  9 comment:10 by majenko, 74 minutes ago

Replying to waddlesplash:

Yes, it would, unfortunately.

You can also try disabling IO-APIC (but not ACPI), and "Ignore memory beyond 4GB" (both with and without disabling IO-APIC.)

Disabling IO-APIC (without disabling ACPI) kills the system with the same symptom as before. Disabling >4GB (with nothing else) gives atheros failures.

comment:11 by waddlesplash, 72 minutes ago

Well, that's all the ideas I have for the moment.

This driver comes from FreeBSD, so it may be interesting if you want to spend the time to see if it works under FreeBSD on this hardware, or whether it's really a driver bug and not a Haiku bug.

in reply to:  11 comment:12 by majenko, 71 minutes ago

Replying to waddlesplash:

Well, that's all the ideas I have for the moment.

This driver comes from FreeBSD, so it may be interesting if you want to spend the time to see if it works under FreeBSD on this hardware, or whether it's really a driver bug and not a Haiku bug.

That's one of the first routes I went down: however FreeBSD won't boot on this system at the moment - fails to find any root FS to boot. I need to head down that rabbit hole I suppose.

comment:13 by waddlesplash, 55 minutes ago

Well, if you have any driver development experience and want to try and investigate this further (or want to try anyway even if you haven't looked into drivers before), feel free to find me on IRC and I can give you pointers on getting set up to do that, and other things you might poke at that way.

comment:14 by majenko, 54 minutes ago

Ok, it works fine in FreeBSD 14.1 (the boot problem was it not liking booting off my iODD emulated USB CD drive, a real CD worked). Interface detected, DHCP acquired. Zero errors.

comment:15 by waddlesplash, 51 minutes ago

The errors from Haiku look like the device is "dead" or reads/writes to it are somehow failing (everything is coming back 0xFF it looks like.) In the past we had some issues with things being in the wrong powerstate or busmastering not being enabled properly, but I think those were fixed (or at least there's code for setting powerstates now.)

The question is then what FreeBSD is doing differently here to "wake up" the device before it even gets to this driver. We use ACPICA for ACPI same as FreeBSD, and our platform code for it is even loosely based/inspired by theirs, so hopefully that's not the problem. Our PCI bus implementation on the other hand is pretty different.

by majenko, 48 minutes ago

Attachment: dmesg.txt added

comment:16 by majenko, 48 minutes ago

If it helps, there's my FreeBSD dmesg.

Note: See TracTickets for help on using tickets.