From owner-freebsd-usb@freebsd.org Mon Nov 6 09:02:47 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BEEE5E57666 for ; Mon, 6 Nov 2017 09:02:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 995516629A for ; Mon, 6 Nov 2017 09:02:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vA692lO1052113 for ; Mon, 6 Nov 2017 09:02:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222624] [usb] [panic] thread's sleep queue 0 is not empty at usb_process.c:193 Date: Mon, 06 Nov 2017 09:02:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: decke@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Nov 2017 09:02:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222624 --- Comment #11 from Bernhard Froehlich --- I have updated the kernel to a very recent 11-STABLE. FreeBSD 11.1-STABLE #1 r325275: Wed Nov 1 13:08:01 CET 2017 panic: thread's sleep queue 0 is not empty GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... Unread portion of the kernel message buffer: panic: thread's sleep queue 0 is not empty cpuid =3D 0 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0460ccb= 9d0 vpanic() at vpanic+0x186/frame 0xfffffe0460ccba50 kassert_panic() at kassert_panic+0x126/frame 0xfffffe0460ccbac0 sleepq_add() at sleepq_add+0x382/frame 0xfffffe0460ccbb10 _cv_wait() at _cv_wait+0x1a2/frame 0xfffffe0460ccbb70 usb_process() at usb_process+0x17b/frame 0xfffffe0460ccbbb0 fork_exit() at fork_exit+0x84/frame 0xfffffe0460ccbbf0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0460ccbbf0 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- Uptime: 1d18h0m42s Dumping 953 out of 16239 MB:..2%..11%..21%..31%..41%..51%..61%..71%..81%..9= 1% #0 doadump (textdump=3D1) at pcpu.h:222 222 pcpu.h: No such file or directory. in pcpu.h (kgdb) #0 doadump (textdump=3D1) at pcpu.h:222 #1 0xffffffff80a5d5d5 in kern_reboot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:366 #2 0xffffffff80a5dbb0 in vpanic (fmt=3D, ap=3D) at /usr/src/sys/kern/kern_shutdown.c:759 #3 0xffffffff80a5d9e6 in kassert_panic (fmt=3D) at /usr/src/sys/kern/kern_shutdown.c:649 #4 0xffffffff80aaca32 in sleepq_add (wchan=3D0xfffffe0000fc2e70, lock=3D0xfffffe0000fc3140, wmesg=3D0xffffffff8142963f "-", flags=3D, queue=3D0) at /usr/src/sys/kern/subr_sleepqueue.c:332 #5 0xffffffff809fbb42 in _cv_wait (cvp=3D0xfffffe0000fc2e70, lock=3D0xfffffe0000fc3140) at /usr/src/sys/kern/kern_condvar.c:135 #6 0xffffffff808bc61b in usb_process (arg=3D0xfffffe0000fc2e60) at /usr/src/sys/dev/usb/usb_process.c:193 #7 0xffffffff80a1f944 in fork_exit ( callout=3D0xffffffff808bc4a0 , arg=3D0xfffffe0000fc2e60, frame=3D0xfffffe0460ccbc00) at /usr/src/sys/kern/kern_fork.c:1044 #8 0xffffffff80ebcc5e in fork_trampoline () at /usr/src/sys/amd64/amd64/exception.S:651 #9 0x0000000000000000 in ?? () Current language: auto; currently minimal --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Nov 6 09:06:19 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8664DE57734 for ; Mon, 6 Nov 2017 09:06:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6C03866410 for ; Mon, 6 Nov 2017 09:06:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vA696Jas068230 for ; Mon, 6 Nov 2017 09:06:19 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222624] [usb] [panic] thread's sleep queue 0 is not empty at usb_process.c:193 Date: Mon, 06 Nov 2017 09:06:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: decke@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Nov 2017 09:06:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222624 --- Comment #12 from Bernhard Froehlich --- Another panic but this time a different one still USB related as it seems. FreeBSD 11.1-STABLE #1 r325275: Wed Nov 1 13:08:01 CET 2017 Unread portion of the kernel message buffer: Kernel page fault with the following non-sleepable locks held: exclusive sleep mutex ehci0 (usb_def_mtx) r =3D 0 (0xfffffe0000fc3140) lock= ed @ /usr/src/sys/dev/usb/controller/ehci.c:1465 stack backtrace: #0 0xffffffff80abe640 at witness_debugger+0x70 #1 0xffffffff80abfa6e at witness_warn+0x45e #2 0xffffffff80edb013 at trap_pfault+0x53 #3 0xffffffff80eda810 at trap+0x2b0 #4 0xffffffff80ebc671 at calltrap+0x8 #5 0xffffffff80886dd1 at ehci_interrupt+0x221 #6 0xffffffff80a22259 at intr_event_execute_handlers+0x99 #7 0xffffffff80a228f6 at ithread_loop+0xb6 #8 0xffffffff80a1f944 at fork_exit+0x84 #9 0xffffffff80ebcc5e at fork_trampoline+0xe Fatal trap 12: page fault while in kernel mode cpuid =3D 3; apic id =3D 06 fault virtual address =3D 0x48 fault code =3D supervisor read data, page not present instruction pointer =3D 0x20:0xffffffff80887814 stack pointer =3D 0x28:0xfffffe0460cb2ab0 frame pointer =3D 0x28:0xfffffe0460cb2ad0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 12 (irq23: ehci0) trap number =3D 12 panic: page fault cpuid =3D 3 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0460cb2= 690 vpanic() at vpanic+0x186/frame 0xfffffe0460cb2710 panic() at panic+0x43/frame 0xfffffe0460cb2770 trap_fatal() at trap_fatal+0x322/frame 0xfffffe0460cb27c0 trap_pfault() at trap_pfault+0x62/frame 0xfffffe0460cb2820 trap() at trap+0x2b0/frame 0xfffffe0460cb29e0 calltrap() at calltrap+0x8/frame 0xfffffe0460cb29e0 --- trap 0xc, rip =3D 0xffffffff80887814, rsp =3D 0xfffffe0460cb2ab0, rbp = =3D 0xfffffe0460cb2ad0 --- ehci_check_transfer() at ehci_check_transfer+0x94/frame 0xfffffe0460cb2ad0 ehci_interrupt() at ehci_interrupt+0x221/frame 0xfffffe0460cb2b20 intr_event_execute_handlers() at intr_event_execute_handlers+0x99/frame 0xfffffe0460cb2b60 ithread_loop() at ithread_loop+0xb6/frame 0xfffffe0460cb2bb0 fork_exit() at fork_exit+0x84/frame 0xfffffe0460cb2bf0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0460cb2bf0 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- Uptime: 11h1m19s --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Nov 6 09:26:37 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9DEB3E57CF7 for ; Mon, 6 Nov 2017 09:26:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 85CF766D9A for ; Mon, 6 Nov 2017 09:26:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vA69QbWh032193 for ; Mon, 6 Nov 2017 09:26:37 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222624] [usb] [panic] thread's sleep queue 0 is not empty at usb_process.c:193 Date: Mon, 06 Nov 2017 09:26:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Nov 2017 09:26:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222624 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mjg@FreeBSD.org --- Comment #13 from Hans Petter Selasky --- Do you have a core dump of the last crash? Can you run gdb: gdb file /boot/kernel/ehci.ko info line *(void *)(ehci_check_transfer+0x94) In my system this leads to the xfer->td_transfer_cache is NULL. This variable should not be NULL during regular usage. This might be an indication of another memory problem or maybe a mutex issue. It would be interesting to dump some structures to see if their contents is valid. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Nov 6 11:59:11 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 03DF9E5B865 for ; Mon, 6 Nov 2017 11:59:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E491B6BF79 for ; Mon, 6 Nov 2017 11:59:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vA6BxALe097108 for ; Mon, 6 Nov 2017 11:59:10 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 94717] [ulpt] Reading from /dev/ulpt can break work of a UHCI hub Date: Mon, 06 Nov 2017 11:59:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 1.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: eugen@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Nov 2017 11:59:11 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D94717 Eugene Grosbein changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Progress |Open CC| |eugen@freebsd.org --- Comment #1 from Eugene Grosbein --- Is this problem still relevant for supported versions of FreeBSD (10.4 or newver)? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Wed Nov 8 07:55:24 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 01157E7086A for ; Wed, 8 Nov 2017 07:55:23 +0000 (UTC) (envelope-from netsick@gmail.com) Received: from mail-qt0-x231.google.com (mail-qt0-x231.google.com [IPv6:2607:f8b0:400d:c0d::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A581F6F212 for ; Wed, 8 Nov 2017 07:55:23 +0000 (UTC) (envelope-from netsick@gmail.com) Received: by mail-qt0-x231.google.com with SMTP id 31so2234714qtz.9 for ; Tue, 07 Nov 2017 23:55:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=8nXehwD+3R/OwKSbc6PH04PmUKXgR/imjuFMCI40Fg8=; b=Re7+CEIopRFvcRbDGdPhfQ+xDop1NoNgH8HswH247OWK+O0dffwxyXb0cqpKcFzlQH YQsUdaLT+pveHKY1Pmd4vKIvTjXNLZm1UzfPxCOzxBC0UKA69yw08e6Nb0FnnyfubYy/ ZH0cVWs/PJNEsrBKyFbXfd+PYvvycJn6m9YvNRWgPBsjiEEzAgQhxXiohhv5YO9mZpHV dGTWtHqO2zrfpaantk2nyW4AMLeOBbV7RDnDnEiepK5bwfQaiOT+5MhRq0lh4TgithLF a7QaSzKlx0jQT2519r9lCTNsRVbepqQT4gRcTKGTHfNvrIsCYbjA8cdFb86iBRQuUjex sStw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8nXehwD+3R/OwKSbc6PH04PmUKXgR/imjuFMCI40Fg8=; b=PX1FIScFn5ECfB7bjaZyCQyIoQYJgC5CIArtu6Xq4yGyU57TM6c1hJy5+k1CswAuH8 f7vVgtjq2JG6ivNeWilvnXHfR8hgRpCcJI876Ujc9GPbeoDELLPu9K0z7UJuAQtfsd7J yqtx+zInazLq85yE1hB6ntzamOS5Gxo0LpQuEZyyONN353P6Jkaa3MEoEKUjEehKCt3y UbtEiWb8rxj1/XJcOPLvHjl1My8twIgJYhjPQcdqHT7pC6q5iqrbW/2nA1mNaHwoGNbl sU530iUb69NyLwZ6hGfLOAiVkiAkJLXOTqEoxi9rzH/lrUKCdC/MRZrcZnVegXc+byfP bV8w== X-Gm-Message-State: AJaThX6GsMiLQVfGYpyyxWpr3rpIMdc2I6Ja/XvdZ3J40I1ZtiqVPHfA wT1423nB/KvL0UJwOj0RPAW66VC1pUgUDvrfUWwOPA== X-Google-Smtp-Source: AGs4zMam1PLUmZPJxikKgNtEQmOX5LKH8yBn6CmTNMMUVlQwPEsmFoTJP1gKETMVQWC7LPtzj1Co1h/kgEZ0gPTK4PA= X-Received: by 10.200.41.19 with SMTP id y19mr2181711qty.300.1510127722408; Tue, 07 Nov 2017 23:55:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.60.84 with HTTP; Tue, 7 Nov 2017 23:55:21 -0800 (PST) From: Kris G Date: Wed, 8 Nov 2017 17:55:21 +1000 Message-ID: Subject: usb quirks for ugen0.2: at usbus0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Nov 2017 07:55:24 -0000 Hi, I am finding that I have to run below command each time I plug the USB device mentioned in subject to have ue0 interface appear. usbconfig -d 0.2 set_config 1 How do I go about doing this automatically? At the moment I just have the command above in /etc/rc.local but I prefer to fix it properly. Can someone give me some pointers? Thanks From owner-freebsd-usb@freebsd.org Wed Nov 8 08:07:10 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 68C8AE70DA7 for ; Wed, 8 Nov 2017 08:07:10 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 357456F7FB for ; Wed, 8 Nov 2017 08:07:10 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 0212B26090B; Wed, 8 Nov 2017 09:07:07 +0100 (CET) Subject: Re: usb quirks for ugen0.2: at usbus0 To: Kris G , freebsd-usb@freebsd.org References: From: Hans Petter Selasky Message-ID: <51a971f6-2ddc-6a52-c0de-60f37a9207f1@selasky.org> Date: Wed, 8 Nov 2017 09:04:28 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Nov 2017 08:07:10 -0000 On 11/08/17 08:55, Kris G wrote: > Hi, > > I am finding that I have to run below command each time I plug the USB > device mentioned in subject to have ue0 interface appear. > > usbconfig -d 0.2 set_config 1 > > How do I go about doing this automatically? At the moment I just have the > command above in /etc/rc.local but I prefer to fix it properly. > > Can someone give me some pointers? Hi, Have a look here for example: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221852 There is "UQ_CFG_INDEX_1" and you can also specify it in /boot/loader.conf . man usb_quirk --HPS From owner-freebsd-usb@freebsd.org Fri Nov 10 01:59:18 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E958E622D4 for ; Fri, 10 Nov 2017 01:59:18 +0000 (UTC) (envelope-from netsick@gmail.com) Received: from mail-qt0-x234.google.com (mail-qt0-x234.google.com [IPv6:2607:f8b0:400d:c0d::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 26CBE164E for ; Fri, 10 Nov 2017 01:59:18 +0000 (UTC) (envelope-from netsick@gmail.com) Received: by mail-qt0-x234.google.com with SMTP id n61so10144875qte.10 for ; Thu, 09 Nov 2017 17:59:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+EeFA8ndlfneY+lz36krvq8COLQBqFM4tOW7JrK5imU=; b=Xecaixquvu89QTTxjIJQSgZsZkvCrzXX3XOstO9/kTt+N8cEWXJJG8xBclrsv/1RiL P+hnQAvXczC79pt946I2WdxpAtOTALHkeNzETv0IFIh5lJpX65IKWKn7Pbjdldia0Zmg 5xKzzRU5sMG14xtQNICiyIhz4SXIkzyd1o2kobyRbOmvPZ79lEGEmS+fuZVf2sVyAVSg h6aSvQS0sTcFc0/B25IsxqN8F3kMJ+tGyW1XikJO7hGKeq//H0NU6+IQwyGc/bYdb41F EIlQTcUtF8vXbu4/LI/7C8jj8rL8FB2EdFUldz5VtcKRMqMvxw0FewIVyIgqpIjF0war /CrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+EeFA8ndlfneY+lz36krvq8COLQBqFM4tOW7JrK5imU=; b=objTagEPA+PNv61xrMm+EEAzI3bMt1tTb6aVepnOOvLh8iSmf3t1qPi5ZFPN7xMdG/ S7P3z8W1F3S17elq+ekpQYrigM8ngEuZKH/UWLoD8jdZtySw6HyGEuQEyLWPu4RBkD2h AkIoJg5eMfF+jFa84FDCnokDJ4VkJDBtM7i3oZ85WU8pphZzg4SQJ8gNjeFMVCPyAvqf v7ZoTyDiNCvmrpVSVJQxT9VbD98ULdQ+Py2NhLTd3GWgVwU0H9n+01kbZf+K3SoJa8Ps 2wYLbGUU67sFBZMSEtEHYWI55ayeBbzB0cLb9A6bf6eldN7kIJJakZPJyLsCjE4dIGkF qTCQ== X-Gm-Message-State: AJaThX7UBsa5/6I18F0hrBW6KLPqlwZqrTaxuzsFZLxbgCz7DkWF5Ezj JCFh+fUFl+/FmaspuIVN7a8M9/rguO5vUpPAsVXXgw== X-Google-Smtp-Source: AGs4zMaP0cvHPst7PH5mq2ow1TRj0WWTm13B7VTt3mEqbbmC0TatmSf2rPKjlXF7NX+rMyTcFvTD/SmE+Jg5T4zJcBU= X-Received: by 10.200.41.19 with SMTP id y19mr4260940qty.300.1510279157195; Thu, 09 Nov 2017 17:59:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.60.84 with HTTP; Thu, 9 Nov 2017 17:59:16 -0800 (PST) In-Reply-To: <51a971f6-2ddc-6a52-c0de-60f37a9207f1@selasky.org> References: <51a971f6-2ddc-6a52-c0de-60f37a9207f1@selasky.org> From: Kris G Date: Fri, 10 Nov 2017 11:59:16 +1000 Message-ID: Subject: Re: usb quirks for ugen0.2: at usbus0 To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Nov 2017 01:59:18 -0000 Given that my usbquirk in /boot/loader.conf works.. hw.usb.quirk.0="0x2357 0x0601 0 0xffff UQ_CFG_INDEX_1" ... don't suppose someone can submit this as a patch for me? In /sys/dev/usb/quirk/usb_quirk.c Add... USB_QUIRK(TPLINK, RTL8153, 0x0000, 0xffff, UQ_CFG_INDEX_1), In /sys/dev/usb/usbdevs Add.. vendor TPLINK 0x2357 TP-LINK /* TP-LINK products */ product TPLINK RTL8153 0x0601 RTL8153 USB 10/100/1000 LAN On Wed, Nov 8, 2017 at 6:04 PM, Hans Petter Selasky wrote: > On 11/08/17 08:55, Kris G wrote: > >> Hi, >> >> I am finding that I have to run below command each time I plug the USB >> device mentioned in subject to have ue0 interface appear. >> >> usbconfig -d 0.2 set_config 1 >> >> How do I go about doing this automatically? At the moment I just have the >> command above in /etc/rc.local but I prefer to fix it properly. >> >> Can someone give me some pointers? >> > > Hi, > > Have a look here for example: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221852 > > There is "UQ_CFG_INDEX_1" and you can also specify it in /boot/loader.conf > . > > man usb_quirk > > --HPS > > From owner-freebsd-usb@freebsd.org Fri Nov 10 07:45:27 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5839E674FD for ; Fri, 10 Nov 2017 07:45:27 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ACD3569910 for ; Fri, 10 Nov 2017 07:45:27 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 0E6C72603CF; Fri, 10 Nov 2017 08:45:25 +0100 (CET) Subject: Re: usb quirks for ugen0.2: at usbus0 To: Kris G Cc: freebsd-usb@freebsd.org References: <51a971f6-2ddc-6a52-c0de-60f37a9207f1@selasky.org> From: Hans Petter Selasky Message-ID: <32f842c9-5bd0-98d7-3129-8a709552af9d@selasky.org> Date: Fri, 10 Nov 2017 08:42:45 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Nov 2017 07:45:28 -0000 On 11/10/17 02:59, Kris G wrote: > USB_QUIRK(TPLINK, RTL8153, 0x0000, 0xffff, UQ_CFG_INDEX_1), Thank you for your quirk: https://svnweb.freebsd.org/changeset/base/325630 --HPS