Hi, the AR8172 10/100/Gigabit Ethernet device isn't working despite being
supported by the alc driver.
dmesg :
OpenBSD 6.5 (GENERIC.MP) #3:
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
alc0 at pci2 dev 0 function 0 "Attansic Technology AR8172" rev 0x10: msi,
address xx:xx:xx:xx:xx:xx
atphy0 at alc0 phy 0: AR8035 10/100/1000 PHY, rev. 9
alc0: watchdog timeout
alc0: watchdog timeout
alc0: watchdog timeout
alc0: watchdog timeout
alc0: watchdog timeout
alc0: watchdog timeout
alc0: watchdog timeout
alc0: watchdog timeout
alc0: watchdog timeout
alc0: watchdog timeout
alc0: watchdog timeout
pcidump :
2:0:0: Attansic Technology AR8172
0x0000: Vendor ID: 1969, Product ID: 10a0
0x0004: Command: 0007, Status: 0010
0x0008: Class: 02 Network, Subclass: 00 Ethernet,
Interface: 00, Revision: 10
0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
Cache Line Size: 10
0x0010: BAR mem 64bit addr: 0x00000000f0100000/0x00040000
0x0018: BAR io addr: 0x00002000/0x0080
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 17aa Product ID: 3806
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 00 Min Gnt: 00 Max Lat: 00
0x0040: Capability 0x01: Power Management
State: D0 PME# enabled
0x0058: Capability 0x10: PCI Express
Link Speed: 2.5 / 2.5 GT/s, Link Width: x1 / x1
0x0100: Enhanced Capability 0x01: Advanced Error Reporting
0x0180: Enhanced Capability 0x03: Device Serial Number
0x00c0: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: yes
0x00d8: Capability 0x11: Extended Message Signalled Interrupts (MSI-X)
Enabled: no; table size 16 (BAR 0:8192)
ifconfig with media autoselect :
alc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr xx:xx:xx:xx:xx:xx
index 1 priority 0 llprio 3
media: Ethernet autoselect (none)
status: no carrier
ifconfig with media manually set to 100baseTX mediaop full-duplex :
alc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr xx:xx:xx:xx:xx:xx
index 1 priority 0 llprio 3
media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause)
status: active
dhclient alc0 :
alc0: no lease......... sleeping
Setting a static IP does not change anything, and the ethernet device is
working properly on FreeBSD 12.0.