From owner-freebsd-drivers@freebsd.org Sun Mar 31 03:06:43 2019 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5E93C156F9E2; Sun, 31 Mar 2019 03:06:43 +0000 (UTC) (envelope-from stephen.hocking@gmail.com) Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2DFAA8C58B; Sun, 31 Mar 2019 03:06:42 +0000 (UTC) (envelope-from stephen.hocking@gmail.com) Received: by mail-oi1-x231.google.com with SMTP id n187so4649676oih.6; Sat, 30 Mar 2019 20:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pQ+NVcfm2d8JTyt7+ZM8cfQo9DuCQc03evwm1utaFWo=; b=HYOixVFnj3VhBpc5QoinqbswsPKCmYMigB5+/DSb0heYiEw8ekP3JOP6nQSLdrzhe9 Qsl/FYqggzaLUWulx9IM0mrTmbjX1UuOJ6XgrzVnSBUagOT/yhnVoadloEI8CeuSldxC ROyMQ5Jk7ymd1ctfzibdG+iTy1j/P9hdzzeQ/WGyJC5uSqPW+sPqfp0jIPpSup2g+MM/ mMZoNmrLW2aG974olLreUZ6d4Qg4rr1mEO0wrlMxSn5TaLtf+id0E5i7XbHNwxSf9wQp huFgxaICna7wDVALKpDbqoC1w2xVMedmTkZ6T4EpFouGh3ANn1kGDT2/Sqk6SaSohgcy zPDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pQ+NVcfm2d8JTyt7+ZM8cfQo9DuCQc03evwm1utaFWo=; b=a32tewxU2nMf/nU3g/r8TUNOb5NFV0KYR8gSp5SEg6nR20HvJoYJe6rXe8V/qY9+eA 4EpHNQMtDh2n6BJfIlC9R/rbePbMrxQUL0Mpj+BNGVDjWKXTzBig5UE9xPF69I7hsDq8 F1ncx1bVj8XNTbAyc1CGKPBf3kLO/wFkZF6lJT2K9P/t4vYGd6+IFsZ6ut/NW2nBB8pl tPSoqRbX8QivJdJb9tgiB7JI6Ubf0EBD/XAV+zzT2w1OL4J33etMU0Tq990P2ZBX7phq zhEcMkksrV3AjrezqmqYNkzf2ERZngTOj/3Gw55cr4bK1QT6ETI9lYj+cdD7B1cxUwK5 LcoQ== X-Gm-Message-State: APjAAAUZCwowSdqXKFkOB0WnUMCAhfioyni401IH/7xpg6as3qSQquw2 DabLn4dQ70TvpajxwKAOtWuvEJ4ov7zZjRRG9VXsh+fT X-Google-Smtp-Source: APXvYqwiuF27YMZr7cPk1Czg7IMMg7GwPZGSVpjTAzA5fUJBnN2ymB0wizTN7y3u++3K2YbDtxvEgnJ7hGlAA4jWsmI= X-Received: by 2002:aca:f004:: with SMTP id o4mr8092188oih.55.1554001600467; Sat, 30 Mar 2019 20:06:40 -0700 (PDT) MIME-Version: 1.0 References: <20190330172039.GB32034@raichu> In-Reply-To: <20190330172039.GB32034@raichu> From: Stephen Hocking Date: Sun, 31 Mar 2019 14:06:27 +1100 Message-ID: Subject: Re: USB3 AXGE Gigabit dongle not detected at boot, but detected when plugged in after boot. To: Mark Johnston Cc: freebsd-bugs@freebsd.org, freebsd-drivers@freebsd.org X-Rspamd-Queue-Id: 2DFAA8C58B X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=HYOixVFn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of stephenhocking@gmail.com designates 2607:f8b0:4864:20::231 as permitted sender) smtp.mailfrom=stephenhocking@gmail.com X-Spamd-Result: default: False [-6.75 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[1.3.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; IP_SCORE(-2.90)[ip: (-9.41), ipnet: 2607:f8b0::/32(-2.89), asn: 15169(-2.14), country: US(-0.07)]; NEURAL_HAM_SHORT(-0.84)[-0.844,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Mar 2019 03:06:43 -0000 Hi Mark, FreeBSD didn't create an interface for it when it was plugged in before rebooting. This box also has another USB NIC plugged in, an elderly 10/100 one, which is what is presenting as ue0. The box does see it when it's plugged in prior to powering on (cold start), but not on a reboot (warm start) Warm start dmesg & kldstat: ---<>--- Copyright (c) 1992-2018 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-RELEASE-p3 GENERIC amd64 FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1) VT(efifb): resolution 1024x768 CPU: Intel(R) Celeron(R) CPU N3000 @ 1.04GHz (1040.03-MHz K8-class CPU) Origin="GenuineIntel" Id=0x406c3 Family=0x6 Model=0x4c Stepping=3 Features=0xbfebfbff Features2=0x43d8e3bf AMD Features=0x28100800 AMD Features2=0x101 Structured Extended Features=0x2282 VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics real memory = 8589934592 (8192 MB) avail memory = 7895498752 (7529 MB) Event timer "LAPIC" quality 600 ACPI APIC Table: WARNING: L1 data cache covers fewer APIC IDs than a core (0 < 1) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) random: unblocking device. Firmware Warning (ACPI): 32/64X length mismatch in FADT/Gpe0Block: 128/32 (20181003/tbfadt-748) ioapic0 irqs 0-114 on motherboard Launching APs: 1 Timecounter "TSC" frequency 1040034554 Hz quality 1000 random: entropy device external interface kbd1 at kbdmux0 netmap: loaded module [ath_hal] loaded module_register_init: MOD_LOAD (vesa, 0xffffffff810f9770, 0) error 19 random: registering fast source Intel Secure Key RNG random: fast provider: "Intel Secure Key RNG" nexus0 efirtc0: on motherboard efirtc0: registered as a time-of-day clock, resolution 1.000000s cryptosoft0: on motherboard acpi0: <> on motherboard acpi0: Power Button (fixed) unknown: I/O range not supported cpu0: on acpi0 atrtc0: port 0x70-0x77 on acpi0 atrtc0: Warning: Couldn't map I/O. atrtc0: registered as a time-of-day clock, resolution 1.000000s Event timer "RTC" frequency 32768 Hz quality 0 hpet0: iomem 0xfed00000-0xfed003ff irq 8 on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 450 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 attimer0: port 0x40-0x43,0x50-0x53 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0xf000-0xf03f mem 0x90000000-0x90ffffff,0x80000000-0x8fffffff irq 16 at device 2.0 on pci0 vgapci0: Boot video device ahci0: port 0xf060-0xf07f mem 0x91415000-0x914157ff irq 19 at device 19.0 on pci0 ahci0: AHCI v1.31 with 2 6Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 xhci0: mem 0x91400000-0x9140ffff irq 20 at device 20.0 on pci0 xhci0: 32 bytes context size, 64-bit DMA usbus0 on xhci0 usbus0: 5.0Gbps Super Speed USB v3.0 pci0: at device 26.0 (no driver attached) hdac0: mem 0x91410000-0x91413fff irq 22 at device 27.0 on pci0 pcib1: irq 16 at device 28.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) pcib2: irq 17 at device 28.1 on pci0 pci2: on pcib2 re0: port 0xd000-0xd0ff mem 0x91204000-0x91204fff,0x91200000-0x91203fff irq 17 at device 0.0 on pci2 re0: Using 1 MSI-X message re0: Chip rev. 0x4c000000 re0: MAC rev. 0x00000000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re0: Using defaults for TSO: 65518/35/2048 re0: Ethernet address: dc:fe:07:e1:23:ee re0: netmap queues/slots: TX 1/256, RX 1/256 isab0: at device 31.0 on pci0 isa0: on isab0 acpi_button0: on acpi0 acpi_button1: on acpi0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbdc0: non-PNP ISA device will be removed from GENERIC in FreeBSD 12. est0: on cpu0 ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec hdacc0: at cad 0 on hdac0 hdaa0: at nid 1 on hdacc0 pcm0: at nid 33 on hdaa0 hdacc1: at cad 2 on hdac0 hdaa1: at nid 1 on hdacc1 pcm1: at nid 5 on hdaa1 pcm2: at nid 6 on hdaa1 pcm3: at nid 7 on hdaa1 ugen0.1: <0x8086 XHCI root HUB> at usbus0 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ACS-4 ATA SATA 3.x device ada0: Serial Number 50026B76829A6BF4 ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes) ada0: Command Queueing enabled ada0: 114473MB (234441648 512 byte sectors) uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 Trying to mount root from zfs:zroot/ROOT/default []... Root mount waiting for: usbus0 uhub0: 13 ports with 13 removable, self powered Root mount waiting for: usbus0 ugen0.2: at usbus0 Root mount waiting for: usbus0 ugen0.3: at usbus0 uhub1 on uhub0 uhub1: on usbus0 uhub1: 4 ports with 4 removable, self powered Root mount waiting for: usbus0 ugen0.4: at usbus0 ukbd0 on uhub1 ukbd0: on usbus0 kbd2 at ukbd0 Root mount waiting for: usbus0 ugen0.5: at usbus0 ukbd1 on uhub1 ukbd1: on usbus0 kbd3 at ukbd1 ugen0.6: at usbus0 Root mount waiting for: usbus0 ugen0.7: at usbus0 lo0: link state changed to UP re0: link state changed to DOWN re0: link state changed to UP udav0 on uhub0 udav0: on usbus0 miibus1: on udav0 ukphy0: PHY 0 on miibus1 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ue0: on udav0 ue0: Ethernet address: 00:60:6e:00:f1:51 uhid0 on uhub1 uhid0: on usbus0 device_attach: uhid0 attach returned 12 uhid0 on uhub1 uhid0: on usbus0 uhid1 on uhub1 uhid1: on usbus0 device_attach: uhid1 attach returned 12 ums0 on uhub1 ums0: on usbus0 ums0: 3 buttons and [XYZ] coordinates ID=0 uhid1 on uhub1 uhid1: on usbus0 device_attach: uhid1 attach returned 12 ubt0 on uhub0 ubt0: on usbus0 ue0: link state changed to DOWN ue0: link state changed to UP WARNING: attempt to domain_add(bluetooth) after domainfinalize() WARNING: attempt to domain_add(netgraph) after domainfinalize() pflog0: promiscuous mode enabled Security policy loaded: MAC/ntpd (mac_ntpd) tun0: link state changed to UP ue0: promiscuous mode enabled Id Refs Address Size Name 1 48 0xffffffff80200000 243cd00 kernel 2 1 0xffffffff8263d000 3a9a10 zfs.ko 3 2 0xffffffff829e7000 a4f0 opensolaris.ko 4 1 0xffffffff82f11000 1cc0 if_udav.ko 5 1 0xffffffff82f13000 1550 uether.ko 6 1 0xffffffff82f15000 1800 uhid.ko 7 1 0xffffffff82f17000 23a8 ums.ko 8 1 0xffffffff82f1a000 3aa0 ng_ubt.ko 9 5 0xffffffff82f1e000 a020 netgraph.ko 10 1 0xffffffff82f29000 9608 ng_hci.ko 11 3 0xffffffff82f33000 9c0 ng_bluetooth.ko 12 1 0xffffffff82f34000 cd40 ng_l2cap.ko 13 1 0xffffffff82f41000 1b9c0 ng_btsocket.ko 14 1 0xffffffff82f5d000 2190 ng_socket.ko 15 1 0xffffffff82f60000 9f0 pflog.ko 16 1 0xffffffff82f61000 326f8 pf.ko 17 1 0xffffffff82f94000 acf mac_ntpd.ko Here's the dmesg & kldstat after a cold start: ---<>--- Copyright (c) 1992-2018 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-RELEASE-p3 GENERIC amd64 FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1) VT(efifb): resolution 1024x768 CPU: Intel(R) Celeron(R) CPU N3000 @ 1.04GHz (1040.04-MHz K8-class CPU) Origin="GenuineIntel" Id=0x406c3 Family=0x6 Model=0x4c Stepping=3 Features=0xbfebfbff Features2=0x43d8e3bf AMD Features=0x28100800 AMD Features2=0x101 Structured Extended Features=0x2282 VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics real memory = 8589934592 (8192 MB) avail memory = 7895498752 (7529 MB) Event timer "LAPIC" quality 600 ACPI APIC Table: WARNING: L1 data cache covers fewer APIC IDs than a core (0 < 1) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) random: unblocking device. Firmware Warning (ACPI): 32/64X length mismatch in FADT/Gpe0Block: 128/32 (20181003/tbfadt-748) ioapic0 irqs 0-114 on motherboard Launching APs: 1 Timecounter "TSC" frequency 1040037141 Hz quality 1000 random: entropy device external interface kbd1 at kbdmux0 netmap: loaded module [ath_hal] loaded module_register_init: MOD_LOAD (vesa, 0xffffffff810f9770, 0) error 19 random: registering fast source Intel Secure Key RNG random: fast provider: "Intel Secure Key RNG" nexus0 efirtc0: on motherboard efirtc0: registered as a time-of-day clock, resolution 1.000000s cryptosoft0: on motherboard acpi0: <> on motherboard acpi0: Power Button (fixed) unknown: I/O range not supported cpu0: on acpi0 atrtc0: port 0x70-0x77 on acpi0 atrtc0: Warning: Couldn't map I/O. atrtc0: registered as a time-of-day clock, resolution 1.000000s Event timer "RTC" frequency 32768 Hz quality 0 hpet0: iomem 0xfed00000-0xfed003ff irq 8 on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 450 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 attimer0: port 0x40-0x43,0x50-0x53 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0xf000-0xf03f mem 0x90000000-0x90ffffff,0x80000000-0x8fffffff irq 16 at device 2.0 on pci0 vgapci0: Boot video device ahci0: port 0xf060-0xf07f mem 0x91415000-0x914157ff irq 19 at device 19.0 on pci0 ahci0: AHCI v1.31 with 2 6Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 xhci0: mem 0x91400000-0x9140ffff irq 20 at device 20.0 on pci0 xhci0: 32 bytes context size, 64-bit DMA usbus0 on xhci0 usbus0: 5.0Gbps Super Speed USB v3.0 pci0: at device 26.0 (no driver attached) hdac0: mem 0x91410000-0x91413fff irq 22 at device 27.0 on pci0 pcib1: irq 16 at device 28.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) pcib2: irq 17 at device 28.1 on pci0 pci2: on pcib2 re0: port 0xd000-0xd0ff mem 0x91204000-0x91204fff,0x91200000-0x91203fff irq 17 at device 0.0 on pci2 re0: Using 1 MSI-X message re0: Chip rev. 0x4c000000 re0: MAC rev. 0x00000000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re0: Using defaults for TSO: 65518/35/2048 re0: Ethernet address: dc:fe:07:e1:23:ee re0: netmap queues/slots: TX 1/256, RX 1/256 isab0: at device 31.0 on pci0 isa0: on isab0 acpi_button0: on acpi0 acpi_button1: on acpi0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbdc0: non-PNP ISA device will be removed from GENERIC in FreeBSD 12. est0: on cpu0 ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec hdacc0: at cad 0 on hdac0 hdaa0: at nid 1 on hdacc0 pcm0: at nid 33 on hdaa0 hdacc1: at cad 2 on hdac0 hdaa1: at nid 1 on hdacc1 pcm1: at nid 5 on hdaa1 pcm2: at nid 6 on hdaa1 pcm3: at nid 7 on hdaa1 ugen0.1: <0x8086 XHCI root HUB> at usbus0 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ACS-4 ATA SATA 3.x device ada0: Serial Number 50026B76829A6BF4 ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes) ada0: Command Queueing enabled ada0: 114473MB (234441648 512 byte sectors) uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 Trying to mount root from zfs:zroot/ROOT/default []... Root mount waiting for: usbus0 uhub0: 13 ports with 13 removable, self powered Root mount waiting for: usbus0 ugen0.2: at usbus0 Root mount waiting for: usbus0 ugen0.3: at usbus0 uhub1 on uhub0 uhub1: on usbus0 uhub1: 4 ports with 4 removable, self powered Root mount waiting for: usbus0 ugen0.4: at usbus0 ukbd0 on uhub1 ukbd0: on usbus0 kbd2 at ukbd0 Root mount waiting for: usbus0 ugen0.5: at usbus0 ukbd1 on uhub1 ukbd1: on usbus0 kbd3 at ukbd1 ugen0.6: at usbus0 Root mount waiting for: usbus0 ugen0.7: at usbus0 Root mount waiting for: usbus0 ugen0.8: at usbus0 lo0: link state changed to UP re0: link state changed to DOWN re0: link state changed to UP udav0 on uhub0 udav0: on usbus0 miibus1: on udav0 ukphy0: PHY 0 on miibus1 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ue0: on udav0 ue0: Ethernet address: 00:60:6e:00:f1:51 uhid0 on uhub1 uhid0: on usbus0 device_attach: uhid0 attach returned 12 uhid0 on uhub1 uhid0: on usbus0 uhid1 on uhub1 uhid1: on usbus0 device_attach: uhid1 attach returned 12 ums0 on uhub1 ums0: on usbus0 ums0: 3 buttons and [XYZ] coordinates ID=0 uhid1 on uhub1 uhid1: on usbus0 device_attach: uhid1 attach returned 12 ubt0 on uhub0 ubt0: on usbus0 uhid1 on uhub1 uhid1: on usbus0 device_attach: uhid1 attach returned 12 axge0 on uhub0 axge0: on usbus0 miibus2: on axge0 rgephy1: PHY 3 on miibus2 rgephy1: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow ue1: on axge0 ue1: Ethernet address: 00:23:55:9c:31:10 ue0: link state changed to DOWN ue0: link state changed to UP WARNING: attempt to domain_add(bluetooth) after domainfinalize() WARNING: attempt to domain_add(netgraph) after domainfinalize() ue1: link state changed to DOWN pflog0: promiscuous mode enabled Security policy loaded: MAC/ntpd (mac_ntpd) tun0: link state changed to UP ue0: promiscuous mode enabled Id Refs Address Size Name 1 54 0xffffffff80200000 243cd00 kernel 2 1 0xffffffff8263d000 3a9a10 zfs.ko 3 2 0xffffffff829e7000 a4f0 opensolaris.ko 4 1 0xffffffff82f11000 1cc0 if_udav.ko 5 2 0xffffffff82f13000 1550 uether.ko 6 1 0xffffffff82f15000 1800 uhid.ko 7 1 0xffffffff82f17000 23a8 ums.ko 8 1 0xffffffff82f1a000 3aa0 ng_ubt.ko 9 5 0xffffffff82f1e000 a020 netgraph.ko 10 1 0xffffffff82f29000 9608 ng_hci.ko 11 3 0xffffffff82f33000 9c0 ng_bluetooth.ko 12 1 0xffffffff82f34000 2260 if_axge.ko 13 1 0xffffffff82f37000 cd40 ng_l2cap.ko 14 1 0xffffffff82f44000 1b9c0 ng_btsocket.ko 15 1 0xffffffff82f60000 2190 ng_socket.ko 16 1 0xffffffff82f63000 9f0 pflog.ko 17 1 0xffffffff82f64000 326f8 pf.ko 18 1 0xffffffff82f97000 acf mac_ntpd.ko On Sun, 31 Mar 2019 at 04:20, Mark Johnston wrote: > On Sat, Mar 30, 2019 at 11:44:55AM +1100, Stephen Hocking wrote: > > Hi all, > > > > I have one of these dongles and was hoping to use it as a another > ethernet > > interface for the NUC-based firewall I'm using. The is present in FreeBSD > > 12. > > > > FreeBSD fwrout.crafncomp.com 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 > > GENERIC amd64 > > > > The following comes up when I plug it in > > > > ugen0.7: at usbus0 > > uhid1 on uhub1 > > uhid1: on usbus0 > > device_attach: uhid1 attach returned 12 > > axge0 on uhub0 > > axge0: on usbus0 > > miibus2: on axge0 > > rgephy1: PHY 3 on > miibus2 > > rgephy1: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, > > 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, > > 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow > > ue1: on axge0 > > ue1: Ethernet address: 00:23:55:9c:31:10 > > ue1: link state changed to DOWN > > > > The following modules are loaded: > > > > Id Refs Address Size Name > > 1 54 0xffffffff80200000 243cd00 kernel > > 2 1 0xffffffff8263d000 3a9a10 zfs.ko > > 3 2 0xffffffff829e7000 a4f0 opensolaris.ko > > 4 1 0xffffffff82f11000 1cc0 if_udav.ko > > 5 2 0xffffffff82f13000 1550 uether.ko > > 6 1 0xffffffff82f15000 1800 uhid.ko > > 7 1 0xffffffff82f17000 23a8 ums.ko > > 8 1 0xffffffff82f1a000 3aa0 ng_ubt.ko > > 9 5 0xffffffff82f1e000 a020 netgraph.ko > > 10 1 0xffffffff82f29000 9608 ng_hci.ko > > 11 3 0xffffffff82f33000 9c0 ng_bluetooth.ko > > 12 1 0xffffffff82f34000 cd40 ng_l2cap.ko > > 13 1 0xffffffff82f41000 1b9c0 ng_btsocket.ko > > 14 1 0xffffffff82f5d000 2190 ng_socket.ko > > 15 1 0xffffffff82f60000 9f0 pflog.ko > > 16 1 0xffffffff82f61000 326f8 pf.ko > > 17 1 0xffffffff82f94000 acf mac_ntpd.ko > > 18 1 0xffffffff82f95000 2260 if_axge.ko > > > > I've tried preloading if_axge.ko in /boot/loader.conf, but that doesn't > > make any difference. This bug has been present since FreeBSD 11, at > least. > > What exactly is the bug? FreeBSD doesn't create a network interface for > the dongle when it's plugged in before booting, or something else? > Could you provide a dmesg? > > I just tried booting a server running -CURRENT with an AX88179 plugged > in and didn't observe any problems. A ue0 interface was created and the > link was up. > -- "I and the public know what all schoolchildren learn Those to whom evil is done Do evil in return" W.H. Auden, "September 1, 1939" From owner-freebsd-drivers@freebsd.org Mon Apr 1 19:57:46 2019 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 28E17156D5B6; Mon, 1 Apr 2019 19:57:46 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D9298867D4; Mon, 1 Apr 2019 19:57:44 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-io1-xd2e.google.com with SMTP id b6so8896198iog.0; Mon, 01 Apr 2019 12:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=rr7JmdhMN/B+EuyK4bX4bkbPULMAxIRPUgSKTNlBztM=; b=J22Z3sNjPhw2wePo8Vlz3w6BX37ckPIRVarHBUuICmPN2clKs2U9/iGuJV2yLEeBh1 tqdwdknmU1O/cMxm3L2Bspa5ziGz/7yHqei9uRbzYCHucbsLCD+8pOvNuJwxglHmaNf/ kdCF7Ti0uGj60ZQRM0M0JfyuV47lKFVyBpO4COMcopQ0oDUWmPSdQaXpUzneL72ex6XP TudcRuG0ubAbPJVKU2tRZMZI7FDTkt71IeBeHsmW2zP1WXjL5tFgCbxq8F+wlfWpFkUi gQ8DXpKZOVA+mSOOJPeYEe0QH+z2yWAS0zrzFR5LMi/pWnlUOHvbyi54JmDOaLM6NBxi WOnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=rr7JmdhMN/B+EuyK4bX4bkbPULMAxIRPUgSKTNlBztM=; b=lOGUDYR56TUEvchpUHqOrVNc5qeG4kUJDQm5Mioi3Twc5Fd0kVM3C5WYlCSebFWoHT Vup0u0s/Y47i9UEUO6kIsjBPVBgYY+MyL1nJGIEZ7j79L7UsE/4Ns/7sxAfIzRy5EDtt TvXDvjg8QR8ynkGpWTKjpQavllN3tiziWGbMh5I0f4RuKMHdMdiakngUmJrEsYmFJSfl PF4hJN0RWoTDXKIXfj4iw0Oxts9tAWoYYNCpgx3QX9/x7MLdXE3Ff4jWwm2X7vWmFATp sK1Kuo55BCfkLrnVIP/g6eswuvh+yo0+gatHvteWJJnQeV+egCZM89G8JD4c0LusJHCR sqVw== X-Gm-Message-State: APjAAAXP+13xemtXYsNC+o1VSo9plCnFKfm1VKRkeVhB4DsFImT9/q16 tou39z79HbPWJ4wG6B/mJEA= X-Google-Smtp-Source: APXvYqyysYKDeAS7A2tLmdkuSoqQxAqzWTjNi5Y0db/JLPGB1lXrbMghRdzaDDv4v+LuLXO4PfmT/g== X-Received: by 2002:a5d:9a8d:: with SMTP id c13mr25573502iom.195.1554148664146; Mon, 01 Apr 2019 12:57:44 -0700 (PDT) Received: from raichu (toroon0560w-lp140-01-69-159-36-31.dsl.bell.ca. [69.159.36.31]) by smtp.gmail.com with ESMTPSA id r12sm4698891ioc.84.2019.04.01.12.57.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Apr 2019 12:57:43 -0700 (PDT) Sender: Mark Johnston Date: Mon, 1 Apr 2019 15:57:41 -0400 From: Mark Johnston To: Stephen Hocking Cc: freebsd-bugs@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: USB3 AXGE Gigabit dongle not detected at boot, but detected when plugged in after boot. Message-ID: <20190401195741.GG89881@raichu> References: <20190330172039.GB32034@raichu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) X-Rspamd-Queue-Id: D9298867D4 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=J22Z3sNj; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::d2e as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-5.24 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.84)[-0.843,0]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[e.2.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.69)[ip: (-8.33), ipnet: 2607:f8b0::/32(-2.89), asn: 15169(-2.15), country: US(-0.06)]; MID_RHS_NOT_FQDN(0.50)[] X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Apr 2019 19:57:46 -0000 On Sun, Mar 31, 2019 at 02:06:27PM +1100, Stephen Hocking wrote: > Hi Mark, > > FreeBSD didn't create an interface for it when it was plugged in before > rebooting. This box also has another USB NIC plugged in, an elderly 10/100 > one, which is what is presenting as ue0. The box does see it when it's > plugged in prior to powering on (cold start), but not on a reboot (warm > start) So in the warm start case nothing is loading if_axge.ko, correct? I see no problems on -CURRENT with either a cold start or a warm start. Does manually loading if_axge.ko result in the device being recognized? In the previous email you said you tried preloading if_axge.ko from loader.conf, but that didn't help. Could you try also preloading uether.ko? After a warm boot, do you see the NIC in "usbconfig list" output? Could you show the output of "usbconfig -d ugen dump_device_desc" for that device if so?