I've tried both 6.0 and current with same results. Here is a dmesg:
=====================
OpenBSD 6.0-current (GENERIC.MP) #10: Mon Oct 10 14:42:44 PDT 2016
    i...@puffy.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error 80<clock_battery>
real mem = 8468033536 (8075MB)
avail mem = 8206884864 (7826MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xe6a80 (27 entries)
bios0: vendor Insyde Corp. version "V2.12" date 05/20/2014
bios0: Acer Aspire S7-392
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP TCPA UEFI FPDT MSDM ASF! HPET APIC MCFG SSDT
BOOT ASPT DBGP SSDT SSDT SSDT SSDT SSDT DMAR
acpi0: wakeup devices P0P1(S4) GLAN(S4) EHC1(S3) EHC2(S3) XHC_(S3)
HDEF(S4) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4)
PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 1596.71 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADL
INE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BM
I1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 1596.31 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADL
INE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BM
I1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 1596.31 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADL
INE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BM
I1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 1596.31 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADL
INE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BM
I1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 40 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P1)
acpiprt2 at acpi0: bus -1 (RP01)
acpiprt3 at acpi0: bus -1 (RP02)
acpiprt4 at acpi0: bus 1 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus -1 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus -1 (RP07)
acpiprt9 at acpi0: bus -1 (RP08)
acpiprt10 at acpi0: bus -1 (PEG0)
acpiprt11 at acpi0: bus -1 (PEG1)
acpiprt12 at acpi0: bus -1 (PEG2)
acpiec0 at acpi0
acpicpu0 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpitz0 at acpi0: critical temperature is 99 degC
acpitz1 at acpi0: critical temperature is 98 degC
acpials0 at acpi0: ALSD
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model "AP13F3N" serial  2358 type LION oem
acpibtn0 at acpi0: PWRB
"10250759" at acpi0 not configured
"SYN1B78" at acpi0 not configured
"PNP0C14" at acpi0 not configured
dwiic0 at acpi0: I2C1 addr 0xfe105000/0x1000 irq 7
iic0 at dwiic0
"BCM2E4E" at acpi0 not configured
acpibtn1 at acpi0: LID0
acpibtn2 at acpi0: SLPB
"PNP0C14" at acpi0 not configured
"INT340E" at acpi0 not configured
"INT33A0" at acpi0 not configured
tpm0 at acpi0: TPM_ addr 0xfed40000/0x5000: Infineon SLB9635 1.2 rev 0x10
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
cpu0: Enhanced SpeedStep 1596 MHz: speeds: 2401, 2400, 2300, 2200,
2000, 1900, 1700, 1600, 1500, 1400, 1300, 1200, 1100, 900, 800, 768
MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 4G Host" rev 0x0b
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x0b
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 1920x1080
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
azalia0 at pci0 dev 3 function 0 "Intel Core 4G HD Audio" rev 0x0b: msi
xhci0 at pci0 dev 20 function 0 "Intel 8 Series xHCI" rev 0x04: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
3.00/1.00 addr 1
"Intel 8 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
azalia1 at pci0 dev 27 function 0 "Intel 8 Series HD Audio" rev 0x04: msi
azalia1: codecs: Realtek ALC282
audio0 at azalia1
ppb0 at pci0 dev 28 function 0 "Intel 8 Series PCIE" rev 0xe4: msi
pci1 at ppb0 bus 1
iwm0 at pci1 dev 0 function 0 "Intel Dual Band Wireless AC 7260" rev 0x6b,
msi
ehci0 at pci0 dev 29 function 0 "Intel 8 Series USB" rev 0x04: apic 2 int 23
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel 8 Series LPC" rev 0x04
ahci0 at pci0 dev 31 function 2 "Intel 8 Series AHCI" rev 0x04: msi, AHCI 1.3
ahci0: port 0: 6.0Gb/s
ahci0: port 1: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, KINGSTON SMSR150, S8FM> SCSI3
0/direct fixed t10.ATA_KINGSTON_SMSR150S3256G_
sd0: 122104MB, 512 bytes/sector, 250069680 sectors, thin
sd1 at scsibus1 targ 1 lun 0: <ATA, KINGSTON SMSR150, S8FM> SCSI3
0/direct fixed t10.ATA_KINGSTON_SMSR150S3256G_
sd1: 122104MB, 512 bytes/sector, 250069680 sectors, thin
ichiic0 at pci0 dev 31 function 3 "Intel 8 Series SMBus" rev 0x04: apic 2 int
18
iic1 at ichiic0
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pms0: Synaptics clickpad, firmware 8.1
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
error: [drm:pid0:intel_uncore_check_errors] *ERROR* Unclaimed register
before interrupt
uvideo0 at uhub0 port 5 configuration 1 interface 0 "SuYin HD WebCam"
rev 2.00/1.02 addr 2
video0 at uvideo0
ugen0 at uhub0 port 6 "Intel product 0x07dc" rev 2.00/0.01 addr 3
uhidev0 at uhub0 port 7 configuration 1 interface 0 "ELAN Touchscreen"
rev 2.00/0.20 addr 4
uhidev0: iclass 3/0, 68 report ids
uhid0 at uhidev0 reportid 1: input=115, output=0, feature=0
uhid1 at uhidev0 reportid 2: input=64, output=0, feature=0
uhid2 at uhidev0 reportid 3: input=0, output=31, feature=0
uhid3 at uhidev0 reportid 4: input=19, output=0, feature=0
uhid4 at uhidev0 reportid 10: input=0, output=0, feature=1
uhid5 at uhidev0 reportid 68: input=0, output=0, feature=255
uhub2 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching
Hub" rev 2.00/0.04 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (c2cc39d30de991c7.a) swap on sd0b dump on sd0b
iwm0: hw rev 0x140, fw ver 16.242414.0, address

ADAPTER PLUGGED IN

axen0 at uhub0 port 10 configuration 1 interface 0 "ASIX Elec. Corp.
AX88179" rev 3.00/1.00 addr 5
 get_phyno 3
axen_cmd: cmd 0x6001 val 0x0010 len 6
axen0: AX88179, address
axen_cmd: cmd 0x1001 val 0x0005 len 1
AXEN_CMD_MAC_READ(0x05): 0x40
axen_cmd: cmd 0x1001 val 0x0003 len 1
AX88179 ver. UA2
axen_cmd: cmd 0x2101 val 0x0026 len 2
axen_cmd: cmd 0x2101 val 0x0026 len 2
axen_cmd: cmd 0x1101 val 0x0033 len 1
axen_cmd: cmd 0x1101 val 0x0024 len 1
axen_cmd: cmd 0x2004 val 0x0043 len 2
EEPROM0x43 = 0xffff
axen_cmd: cmd 0x1001 val 0x0002 len 1
uplink: USB3.0
axen_cmd: cmd 0x5101 val 0x002e len 5
axen_cmd: cmd 0x6101 val 0x0010 len 6
axen_cmd: cmd 0x1101 val 0x0055 len 1
axen_cmd: cmd 0x1101 val 0x0054 len 1
axen_cmd: cmd 0x1101 val 0x0034 len 1
axen_cmd: cmd 0x1101 val 0x0035 len 1
axen_cmd: cmd 0x2101 val 0x000b len 2
axen_cmd: cmd 0x1101 val 0x0024 len 1
axen_cmd: cmd 0x1001 val 0x0024 len 1
axen: Monitor mode = 0x64
axen: set to medium mode: 0x0137
axen_cmd: cmd 0x2101 val 0x0022 len 2
axen_cmd: cmd 0x2001 val 0x0022 len 2
axen: current medium mode: 0x0135
axen_cmd: cmd 0x2102 val 0x0003 len 2
axen_miibus_writereg: phy 0x3 reg 0x1f val 0x5
axen_cmd: cmd 0x2102 val 0x0003 len 2
axen_miibus_writereg: phy 0x3 reg 0xc val 0x0
axen_cmd: cmd 0x2002 val 0x0003 len 2
axen_miibus_readreg: phy 0x3 reg 0x1 val 0x680
axen_cmd: cmd 0x2102 val 0x0003 len 2
axen_miibus_writereg: phy 0x3 reg 0x1 val 0x80
axen_cmd: cmd 0x2102 val 0x0003 len 2
axen_miibus_writereg: phy 0x3 reg 0x1f val 0x0
axen_cmd: cmd 0x2002 val 0x0003 len 2
axen_miibus_readreg: phy 0x3 reg 0x1 val 0x7949
axen_cmd: cmd 0x2002 val 0x0003 len 2
axen_miibus_readreg: phy 0x3 reg 0x2 val 0x1c
axen_cmd: cmd 0x2002 val 0x0003 len 2
axen_miibus_readreg: phy 0x3 reg 0x3 val 0xc915
axen_cmd: cmd 0x2002 val 0x0003 len 2
axen_miibus_readreg: phy 0x3 reg 0x1 val 0x7949
rgephy0 at axen0 phy 3: RTL8169S/8110S/8211 PHY, rev. 5
axen_cmd: cmd 0x2002 val 0x0003 len 2
axen_miibus_readreg: phy 0x3 reg 0x1 val 0x7949
axen_cmd: cmd 0x2002 val 0x0003 len 2
axen_miibus_readreg: phy 0x3 reg 0xf val 0x2000
axen_cmd: cmd 0x2102 val 0x0003 len 2
axen_miibus_writereg: phy 0x3 reg 0x0 val 0x8000
axen_cmd: cmd 0x2002 val 0x0003 len 2
axen_miibus_readreg: phy 0x3 reg 0x0 val 0x8000
axen_cmd: cmd 0x2002 val 0x0003 len 2
axen_miibus_readreg: phy 0x3 reg 0x0 val 0x8000
axen_cmd: cmd 0x2002 val 0x0003 len 2
axen_miibus_readreg: phy 0x3 reg 0x0 val 0x1140

ADAPTER DIES
ETHERNET UNPLUGGED/PLUGGED (nothing happens)

axen0: axen_detach: enter
rgephy0 detached
axen0 detached

ADAPTER UNPLUGGED


On Fri, Oct 14, 2016 at 6:45 AM, Remi Locherer <remi.loche...@relo.ch> wrote:
> On Thu, Oct 13, 2016 at 05:40:18PM -0700, Ilya Kaliman wrote:
>> Hi!
>>
>> I have a "Plugable USB 3.0 ethernet adapter" with ASIX AX88179
>> chipset. The device is successfully recognized by axen(4) driver but
>> behaves strangely. When I plug in the ethernet cable the ifconfig
>> axen0 status says active and the leds start blinking. But after a
>> second or two both leds turn off and status says: no carrier.
>> Re-plugging the cable have no effect. Re-plugging the adapter itself
>> brings it up again for a second or two.
>>
>> The device itself seems to be fine as it works in other OSes without
>> problems. I suspect it has to do with OpenBSD driver.
>>
>> I have axen(4) driver compiled with debug - it prints a lot of stuff,
>> but nothing that seem to indicate an error. Can anyone give some
>> pointers on how to diagnose the problem?
>>
>> Thanks,
>> Ilya
>
> What version of OpenBSD are you running? Usually it's best to add the
> output of dmesg to such a mail to give others an idea what you are
> running.
>
> There was a change to axen in March this year that made my adapter
> work reliably. It ships with 6.0.
>
> http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/dev/usb/if_axen.c
>
> Remi

Reply via email to