From owner-freebsd-usb@freebsd.org Sun Sep 4 12:31:39 2016 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 74168A9D20F for ; Sun, 4 Sep 2016 12:31:39 +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 6014CBB4 for ; Sun, 4 Sep 2016 12:31:39 +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 u84CVc0C017734 for ; Sun, 4 Sep 2016 12:31:39 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211895] Logitech K360 keyboard: `usbconfig` hangs after suspend/resume Date: Sun, 04 Sep 2016 12:31:39 +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: 11.0-RC1 X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: afiskon@devzen.ru 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: Sun, 04 Sep 2016 12:31:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211895 --- Comment #4 from Aleksander Alekseev --- I'm sorry but I'm having some problems getting a backtrace. There are: ``` dumpdev=3D"AUTO" ddb_enable=3D"YES" ``` ... lines in /etc/rc.conf I can't enter debugger using sysctl: ``` $ sudo sysctl debug.kdb.enter=3D1 Password: debug.kdb.enter: 0 -> 0 ``` Ctr+Alt+Escape hotkey doesn't work either. I can crash a kernel using: ``` sudo sysctl debug.kdb.panic=3D1 ``` ... command but after reboot there is no dump in /var/crash directory. I tried to reboot without loading i915kms.ko in case it causes these proble= ms. But without this driver screen doesn't turn on after suspend/resume so even= if I enter a debugger I can't read a backtrace. In dmesg -a I see: ``` No suitable dump device was found. /etc/rc: WARNING: failed precmd routine for ddb ``` Full `dmesg -a` after crash and reboot: http://afiskon.ru/s/67/6c0d4868c6_dmesg_a_after_crash.txt I have a single disk partition, no swap: ``` # Device Mountpoint FStype Options Dump Pass# /dev/ada0p2 / ufs rw 1 1 ``` `savecore -v` tells me `savecore: no dumps found`. uname -a: `` FreeBSD e733 11.0-RC2 FreeBSD 11.0-RC2 #0 r304729: Wed Aug 24 06:59:03 UTC = 2016 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 ``` Any advice? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sun Sep 4 16:34:11 2016 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 CCA9BA9D305 for ; Sun, 4 Sep 2016 16:34: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 BC615CC9 for ; Sun, 4 Sep 2016 16:34:11 +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 u84GYAEE026852 for ; Sun, 4 Sep 2016 16:34:11 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211895] Logitech K360 keyboard: `usbconfig` hangs after suspend/resume Date: Sun, 04 Sep 2016 16:34: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: 11.0-RC1 X-Bugzilla-Keywords: regression 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: 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: Sun, 04 Sep 2016 16:34:11 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211895 --- Comment #5 from Hans Petter Selasky --- Bruce Evans has recently fixed some issues using the USB keyboard from the debugger. Are you running the latest 12-current? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sun Sep 4 16:40:55 2016 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 6F239A9D44B for ; Sun, 4 Sep 2016 16:40:55 +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 5EC6FDD4 for ; Sun, 4 Sep 2016 16:40:55 +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 u84GetpP038154 for ; Sun, 4 Sep 2016 16:40:55 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211895] Logitech K360 keyboard: `usbconfig` hangs after suspend/resume Date: Sun, 04 Sep 2016 16:40:55 +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: 11.0-RC1 X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: karl@denninger.net 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: Sun, 04 Sep 2016 16:40:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211895 karl@denninger.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |karl@denninger.net --- Comment #6 from karl@denninger.net --- Uh.... you might want to look here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211884 Try reverting that change and see if the problem goes away. This change appears to impact a lot of different people with the common element being U= SB keyboards (or mice) being completely screwed from the time the kernel gets control until the system has booted and is running normally. My IPKVM syst= ems attach both a keyboard and mouse, and exhibit the problem -- but reverting = that change restores normal functionality. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sun Sep 4 21:29:00 2016 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 F147DB761D3; Sun, 4 Sep 2016 21:29:00 +0000 (UTC) (envelope-from andriyvos@gmail.com) Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) (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 6C6199C2; Sun, 4 Sep 2016 21:28:57 +0000 (UTC) (envelope-from andriyvos@gmail.com) Received: by mail-lf0-f42.google.com with SMTP id g62so115381181lfe.3; Sun, 04 Sep 2016 14:28:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:to:subject:cc:mime-version :content-transfer-encoding:from:message-id:user-agent; bh=4K3qBq4JOFZClFoxL5mpmORZ4PdTZDK7HfqDzZLje+A=; b=km03it4Ohf9SK3Dx38KJ2nZp/X7iw3ZsL5kB+4ApDGhHNiuhyloNQyHkbLbYuUZqtZ bREOGW7ovfpZEv3t6HtXpDJtGIs0mYZY4kUKex/ZX8UhZ/NLjLC3ItuADF4QbYEKMPMZ RjXmuh77qf/+LeDevC9s34izpnvmJ+2vEkvI9BJLamPu5jmqtXavX7mmjtSnDVk+j0Y9 /gJogk2PrGvSeDcy8pRZT2+x+kXSR++MaeU8zdOrSxEPHrXyV8JeTqwCbN5E/KQQ3ZqC EZnggHkp6Ry7kC8Tk5BkdiimvgpZS2fFrHROfQOoLTpAVjHUTv28hsa9M8ZUKXNHIncx 9DUQ== X-Gm-Message-State: AE9vXwOYLyMMHaZe2/BxGILlbvzkj98D5ScZ/18kIqa0DhB5QULno1+I25HjqtWUs6v/FQ== X-Received: by 10.25.83.198 with SMTP id h189mr9683728lfb.130.1473024042233; Sun, 04 Sep 2016 14:20:42 -0700 (PDT) Received: from localhost (host-176-37-109-22.la.net.ua. [176.37.109.22]) by smtp.gmail.com with ESMTPSA id s82sm4212181lja.14.2016.09.04.14.20.41 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 04 Sep 2016 14:20:41 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Date: Mon, 05 Sep 2016 00:20:25 +0300 To: "Adrian Chadd" , "Hans Petter Selasky" Subject: Deadlock between device_detach() and usbd_do_request_flags() Cc: "freebsd-wireless@freebsd.org" , "freebsd-usb@freebsd.org" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Andriy Voskoboinyk" Message-ID: User-Agent: Opera Mail/12.16 (FreeBSD) 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: Sun, 04 Sep 2016 21:29:01 -0000 There is a rare, but reproducible deadlock for wlan(4) drivers: Thread 1: * uhub_explore_handle_re_enumerate() (obtains enum_sx lock) * usbd_set_config_index() * usb_unconfigure() * usb_detach_device() * usb_detach_device_sub() * typically is executed here (prevents another possible deadlock?) * ieee80211_ifdetach() * ieee80211_vap_destroy() * ic_vap_delete> * ieee80211_vap_detach() here it calls ieee80211_stop() and waits for -> INIT state transition Thread 2 (started from thread 1): * ieee80211_newstate_cb() * vap->iv_newstate() here: if the driver will try to call usbd_do_request_flags() (typically via / ) it will hang (because enum_sx lock is already held by thread 1). Another way: execute some periodical task that will try to access some registers (urtwn_temp_calib(), rum_ratectl_task(), run_ratectl_cb()) while thread 1 is running - deadlock is here too, since will wait for them indefinitely (via ieee80211_draintask()) Right now the most obvious (and, probably, wrong) way is to just detect & release all locks (usbd_enum_unlock()) for ieee80211_ifdetach() / ieee80211_draintask() and re-acquire them later (not tested yet). Any ideas? From owner-freebsd-usb@freebsd.org Mon Sep 5 07:48:29 2016 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 7DE76B718C7; Mon, 5 Sep 2016 07:48:29 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (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 3F9605E2; Mon, 5 Sep 2016 07:48:29 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (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 5DCC91FE022; Mon, 5 Sep 2016 09:48:21 +0200 (CEST) Subject: Re: Deadlock between device_detach() and usbd_do_request_flags() To: Andriy Voskoboinyk , Adrian Chadd , Hans Petter Selasky References: Cc: "freebsd-wireless@freebsd.org" , "freebsd-usb@freebsd.org" From: Hans Petter Selasky Message-ID: <4cf378ff-63e1-7cdc-6120-9578fceec20d@selasky.org> Date: Mon, 5 Sep 2016 09:53:03 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed 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: Mon, 05 Sep 2016 07:48:29 -0000 On 09/04/16 23:20, Andriy Voskoboinyk wrote: > There is a rare, but reproducible deadlock for wlan(4) drivers: > > Thread 1: > * uhub_explore_handle_re_enumerate() (obtains enum_sx lock) > * usbd_set_config_index() > * usb_unconfigure() > * usb_detach_device() > * usb_detach_device_sub() > * > typically is executed here (prevents > another possible deadlock?) > * ieee80211_ifdetach() > * ieee80211_vap_destroy() > * ic_vap_delete> > * ieee80211_vap_detach() > here it calls ieee80211_stop() and waits for -> INIT state > transition > > Thread 2 (started from thread 1): > * ieee80211_newstate_cb() > * vap->iv_newstate() > here: if the driver will try to call usbd_do_request_flags() > (typically via / ) it will hang > (because enum_sx lock is already held by thread 1). > > > Another way: execute some periodical task that will try to access > some registers (urtwn_temp_calib(), rum_ratectl_task(), > run_ratectl_cb()) while thread 1 is running - deadlock is > here too, since will wait for them indefinitely > (via ieee80211_draintask()) > > Right now the most obvious (and, probably, wrong) way is to just > detect & release all locks (usbd_enum_unlock()) for > ieee80211_ifdetach() / ieee80211_draintask() and re-acquire them > later (not tested yet). > Hi, I think the right solution is to let usbd_do_request_flags() use its own SX lock for synchronization, instead of re-using the enumeration SX lock. What do you think about that? --HPS From owner-freebsd-usb@freebsd.org Mon Sep 5 08:41:33 2016 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 C3F90A9D5E6; Mon, 5 Sep 2016 08:41:33 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::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 8DD52D71; Mon, 5 Sep 2016 08:41:33 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (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 294021FE022; Mon, 5 Sep 2016 10:41:31 +0200 (CEST) Subject: Re: Deadlock between device_detach() and usbd_do_request_flags() To: Andriy Voskoboinyk , Adrian Chadd References: <4cf378ff-63e1-7cdc-6120-9578fceec20d@selasky.org> Cc: "freebsd-wireless@freebsd.org" , "freebsd-usb@freebsd.org" From: Hans Petter Selasky Message-ID: <55cff8ce-6132-53ec-3419-d27286dce622@selasky.org> Date: Mon, 5 Sep 2016 10:46:12 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <4cf378ff-63e1-7cdc-6120-9578fceec20d@selasky.org> Content-Type: text/plain; charset=windows-1252; format=flowed 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: Mon, 05 Sep 2016 08:41:33 -0000 On 09/05/16 09:53, Hans Petter Selasky wrote: > > Hi, > > I think the right solution is to let usbd_do_request_flags() use its own > SX lock for synchronization, instead of re-using the enumeration SX > lock. What do you think about that? > > --HPS > Hi, Another approach which will work is to setup your own USB control endpoint xfer, and use that. I'll have a look and see what can be done. --HPS From owner-freebsd-usb@freebsd.org Mon Sep 5 08:44:25 2016 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 D2194A9D817 for ; Mon, 5 Sep 2016 08:44:25 +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 C187C8E for ; Mon, 5 Sep 2016 08:44:25 +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 u858iPwJ095949 for ; Mon, 5 Sep 2016 08:44:25 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211895] Logitech K360 keyboard: `usbconfig` hangs after suspend/resume Date: Mon, 05 Sep 2016 08:44:26 +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: 11.0-RC1 X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: afiskon@devzen.ru 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, 05 Sep 2016 08:44:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211895 --- Comment #7 from Aleksander Alekseev --- hselasky@, > Are you running the latest 12-current? No, I'm running 11.0-RC2 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Sep 5 09:05:54 2016 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 B6D15A9DD7A; Mon, 5 Sep 2016 09:05:54 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::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 69FDF9F7; Mon, 5 Sep 2016 09:05:54 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (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 C47B11FE022; Mon, 5 Sep 2016 11:05:52 +0200 (CEST) Subject: Re: Deadlock between device_detach() and usbd_do_request_flags() To: Andriy Voskoboinyk , Adrian Chadd References: <4cf378ff-63e1-7cdc-6120-9578fceec20d@selasky.org> <55cff8ce-6132-53ec-3419-d27286dce622@selasky.org> Cc: "freebsd-wireless@freebsd.org" , "freebsd-usb@freebsd.org" From: Hans Petter Selasky Message-ID: <67777201-e078-b519-566a-7a2a29363eee@selasky.org> Date: Mon, 5 Sep 2016 11:10:34 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <55cff8ce-6132-53ec-3419-d27286dce622@selasky.org> Content-Type: multipart/mixed; boundary="------------42EA583F81AFB157F5F19237" 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, 05 Sep 2016 09:05:54 -0000 This is a multi-part message in MIME format. --------------42EA583F81AFB157F5F19237 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hi, Can you test the attached patch? Does it solve your issue? --HPS --------------42EA583F81AFB157F5F19237 Content-Type: text/x-patch; name="usb_fix_deadlock.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="usb_fix_deadlock.diff" Index: sys/dev/usb/usb_device.c =================================================================== --- sys/dev/usb/usb_device.c (revision 304569) +++ sys/dev/usb/usb_device.c (working copy) @@ -1585,6 +1585,7 @@ /* initialise our SX-lock */ sx_init_flags(&udev->enum_sx, "USB config SX lock", SX_DUPOK); sx_init_flags(&udev->sr_sx, "USB suspend and resume SX lock", SX_NOWITNESS); + sx_init_flags(&udev->ctrl_sx, "USB control transfer SX lock", SX_DUPOK); cv_init(&udev->ctrlreq_cv, "WCTRL"); cv_init(&udev->ref_cv, "UGONE"); @@ -2195,6 +2196,7 @@ sx_destroy(&udev->enum_sx); sx_destroy(&udev->sr_sx); + sx_destroy(&udev->ctrl_sx); cv_destroy(&udev->ctrlreq_cv); cv_destroy(&udev->ref_cv); Index: sys/dev/usb/usb_device.h =================================================================== --- sys/dev/usb/usb_device.h (revision 304569) +++ sys/dev/usb/usb_device.h (working copy) @@ -183,6 +183,7 @@ struct usb_udev_msg cs_msg[2]; struct sx enum_sx; struct sx sr_sx; + struct sx ctrl_sx; struct mtx device_mtx; struct cv ctrlreq_cv; struct cv ref_cv; Index: sys/dev/usb/usb_request.c =================================================================== --- sys/dev/usb/usb_request.c (revision 304569) +++ sys/dev/usb/usb_request.c (working copy) @@ -418,7 +418,6 @@ uint16_t length; uint16_t temp; uint16_t acttemp; - uint8_t do_unlock; if (timeout < 50) { /* timeout is too small */ @@ -460,16 +459,16 @@ } /* - * Grab the USB device enumeration SX-lock serialization is - * achieved when multiple threads are involved: + * Serialize access to this function: */ - do_unlock = usbd_enum_lock(udev); + sx_xlock(&udev->ctrl_sx); /* * We need to allow suspend and resume at this point, else the * control transfer will timeout if the device is suspended! */ - usbd_sr_unlock(udev); + if (usbd_enum_is_locked(udev)) + usbd_sr_unlock(udev); hr_func = usbd_get_hr_func(udev); @@ -713,10 +712,10 @@ USB_XFER_UNLOCK(xfer); done: - usbd_sr_lock(udev); + sx_xunlock(&udev->ctrl_sx); - if (do_unlock) - usbd_enum_unlock(udev); + if (usbd_enum_is_locked(udev)) + usbd_sr_lock(udev); if ((mtx != NULL) && (mtx != &Giant)) mtx_lock(mtx); --------------42EA583F81AFB157F5F19237-- From owner-freebsd-usb@freebsd.org Mon Sep 5 09:06:31 2016 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 B9D2CA9DDCC for ; Mon, 5 Sep 2016 09:06:31 +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 A9686A4B for ; Mon, 5 Sep 2016 09:06:31 +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 u8596V9C096445 for ; Mon, 5 Sep 2016 09:06:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211895] Logitech K360 keyboard: `usbconfig` hangs after suspend/resume Date: Mon, 05 Sep 2016 09:06:31 +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: 11.0-RC1 X-Bugzilla-Keywords: regression 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: 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, 05 Sep 2016 09:06:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211895 --- Comment #8 from Hans Petter Selasky --- Can you test a 12-current kernel and see if this problem is fixed? --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Sep 5 10:29:35 2016 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 AA7A1B96807; Mon, 5 Sep 2016 10:29:35 +0000 (UTC) (envelope-from andriyvos@gmail.com) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) (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 37195882; Mon, 5 Sep 2016 10:29:34 +0000 (UTC) (envelope-from andriyvos@gmail.com) Received: by mail-lf0-f50.google.com with SMTP id l131so30034392lfl.2; Mon, 05 Sep 2016 03:29:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=3/pRTMfZH4zdC13X0Jxu0seEJ5YWZS3uEnJSVuMdT1U=; b=EcdLxpdmPgSCzFXf0b75rsa+iWMRaFQlaIh7UcFiN4rjEk9gnI2v+hWA7lKFCuUuUw uvkHWmxVDeSw4FoWIPm09ebqeRK3dO+N04AdvGKfH386aAyOeUYHVX9/iNt59DQSP0W+ e69Z7NU4lneHfwh+75rj1e0nYv1YkTDW1Aamra2CLg/BdbYj07nG0WpPWbZXdVU9ackc FIrGFkseRYCQWxieyvHNysUBZhjWL4I2pSgO31o9SQYh8uDUbnqgPUDHdNh778YgnsQR JA1Q2dpr0qXe+g8WZPYOb7WLMdxNdNj2Sx5S5rANhkoP2AAiZpvp6v27YDB4rvlNdzht S3Ag== X-Gm-Message-State: AE9vXwOLCDUHKm55wM1JjeC0I4UVvTImPyBrrEl6RRQ/M+t66OXLs87R/GZQNkhQojcDUQ== X-Received: by 10.25.88.145 with SMTP id m139mr8296775lfb.19.1473070884454; Mon, 05 Sep 2016 03:21:24 -0700 (PDT) Received: from localhost (host-176-37-109-22.la.net.ua. [176.37.109.22]) by smtp.gmail.com with ESMTPSA id 28sm2204880lfr.35.2016.09.05.03.21.23 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 05 Sep 2016 03:21:23 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Adrian Chadd" , "Hans Petter Selasky" Cc: "freebsd-wireless@freebsd.org" , "freebsd-usb@freebsd.org" Subject: Re: Deadlock between device_detach() and usbd_do_request_flags() References: <4cf378ff-63e1-7cdc-6120-9578fceec20d@selasky.org> <55cff8ce-6132-53ec-3419-d27286dce622@selasky.org> <67777201-e078-b519-566a-7a2a29363eee@selasky.org> Date: Mon, 05 Sep 2016 13:21:08 +0300 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable From: "Andriy Voskoboinyk" Message-ID: In-Reply-To: <67777201-e078-b519-566a-7a2a29363eee@selasky.org> User-Agent: Opera Mail/12.16 (FreeBSD) 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, 05 Sep 2016 10:29:35 -0000 Mon, 05 Sep 2016 12:10:34 +0300 =D0=B1=D1=83=D0=BB=D0=BE =D0=BD=D0=B0=D0= =BF=D0=B8=D1=81=D0=B0=D0=BD=D0=BE Hans Petter Selasky = : Works fine, thanks! P.S. Reliable test case: 1) ifconfig wlan1 create wlandev 2) wpa_supplicant -i wlan1 -c /etc/wpa_supplicant.conf & * wait for CTRL-EVENT-CONNECTED event 3) usbconfig -d . power_off > Hi, > > Can you test the attached patch? Does it solve your issue? > > --HPS From owner-freebsd-usb@freebsd.org Mon Sep 5 16:05:02 2016 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 8DC1EA9DB8D; Mon, 5 Sep 2016 16:05:02 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::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 58B52226; Mon, 5 Sep 2016 16:05:02 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (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 CC1F41FE022; Mon, 5 Sep 2016 18:04:59 +0200 (CEST) Subject: Re: Deadlock between device_detach() and usbd_do_request_flags() To: Andriy Voskoboinyk , Adrian Chadd References: <4cf378ff-63e1-7cdc-6120-9578fceec20d@selasky.org> <55cff8ce-6132-53ec-3419-d27286dce622@selasky.org> <67777201-e078-b519-566a-7a2a29363eee@selasky.org> Cc: "freebsd-wireless@freebsd.org" , "freebsd-usb@freebsd.org" From: Hans Petter Selasky Message-ID: <89377ebb-2286-25c7-05ca-34eba41dcd8b@selasky.org> Date: Mon, 5 Sep 2016 18:09:40 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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, 05 Sep 2016 16:05:02 -0000 On 09/05/16 12:21, Andriy Voskoboinyk wrote: > Mon, 05 Sep 2016 12:10:34 +0300 було написано Hans Petter Selasky > : > > Works fine, thanks! > > P.S. Reliable test case: > 1) ifconfig wlan1 create wlandev > 2) wpa_supplicant -i wlan1 -c /etc/wpa_supplicant.conf & > * wait for CTRL-EVENT-CONNECTED event > 3) usbconfig -d . power_off > >> Hi, >> >> Can you test the attached patch? Does it solve your issue? >> >> --HPS > FYI: https://svnweb.freebsd.org/changeset/base/305421 --HPS From owner-freebsd-usb@freebsd.org Thu Sep 8 06:55:58 2016 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 98C4EBD127D for ; Thu, 8 Sep 2016 06:55:58 +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 88386A9D for ; Thu, 8 Sep 2016 06:55:58 +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 u886tvpK013884 for ; Thu, 8 Sep 2016 06:55:58 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 156000] rum(4) Fatal trap 18: integer divide fault while in kernel mode Date: Thu, 08 Sep 2016 06:55:57 +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: 8.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: avos@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution 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: Thu, 08 Sep 2016 06:55:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D156000 Andriy Voskoboinyk changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Progress |Closed Resolution|--- |FIXED CC| |avos@freebsd.org --- Comment #5 from Andriy Voskoboinyk --- Should be fixed in r269127. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Sep 8 08:31:55 2016 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 29F45BC412C for ; Thu, 8 Sep 2016 08:31:55 +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 18FDD3BB for ; Thu, 8 Sep 2016 08:31:55 +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 u888VsNi098491 for ; Thu, 8 Sep 2016 08:31:54 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211895] Logitech K360 keyboard: `usbconfig` hangs after suspend/resume Date: Thu, 08 Sep 2016 08:31:54 +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: 11.0-RC1 X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: afiskon@devzen.ru 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: Thu, 08 Sep 2016 08:31:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211895 --- Comment #9 from Aleksander Alekseev --- Here is some additional debug information, just for the record (still on 11.0-RC2). dmesg right after resume: http://afiskon.ru/s/c1/e5cf238331_usb1.jpg dmesg after reconnecting USB adapter: http://afiskon.ru/s/73/9dbafeef9a_usb2.jpg If I disconnect an adapter everything works just fine, usbconfig doesn't ha= ng, etc. If I connect it or (!) any other USB device (a flash drive for instanc= e) back the problem returns. Apparently when I do it code enters an infinite l= oop somewhere in usub_reattach_port and usb_alloc_device procedures. Explains w= hy usbconfig hangs. I will try to reproduce this issue on 12.0 and add a bit more debug output.= I have no experience in kernel development so any suggestions on how else I c= ould debug this issue would be much appreciated. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Sep 8 09:50:31 2016 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 05D75BD0D31 for ; Thu, 8 Sep 2016 09:50:31 +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 E9CFF361 for ; Thu, 8 Sep 2016 09:50:30 +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 u889oUgS094724 for ; Thu, 8 Sep 2016 09:50:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 212256] xhci controllers cannot be used with ppt Date: Thu, 08 Sep 2016 09:50:30 +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: 10.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@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: Thu, 08 Sep 2016 09:50:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212256 --- Comment #2 from commit-hook@freebsd.org --- A commit references this bug: Author: hselasky Date: Thu Sep 8 09:50:04 UTC 2016 New revision: 305589 URL: https://svnweb.freebsd.org/changeset/base/305589 Log: MFC r281499: Modify the return value of the uhci/ehci/xhci PCI probe routines to 'BUS_PROBE_DEFAULT'. This allows bhyve's 'ppt' driver to claim ownership of the device and pass it through to the guest. In the common case where there are no competing drivers for USB controlle= rs this change is a no-op. PR: 212256 Changes: _U stable/10/ stable/10/sys/dev/usb/controller/ehci_pci.c stable/10/sys/dev/usb/controller/uhci_pci.c stable/10/sys/dev/usb/controller/xhci_pci.c --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Sep 8 09:51:20 2016 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 C6F70BD0ECA for ; Thu, 8 Sep 2016 09:51:20 +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 B6B7068E for ; Thu, 8 Sep 2016 09:51:20 +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 u889pKin097710 for ; Thu, 8 Sep 2016 09:51:20 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 212256] xhci controllers cannot be used with ppt Date: Thu, 08 Sep 2016 09:51:20 +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: 10.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status 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: Thu, 08 Sep 2016 09:51:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212256 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|New |Closed --- Comment #3 from Hans Petter Selasky --- The requested change is MFC'ed to 10-stable. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Sep 8 10:10:33 2016 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 C51B8BD15FF for ; Thu, 8 Sep 2016 10:10:33 +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 B4FA27E0 for ; Thu, 8 Sep 2016 10:10:33 +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 u88AAXVa078786 for ; Thu, 8 Sep 2016 10:10:33 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 170358] [ums] Wrong (duplicate) button numbers Date: Thu, 08 Sep 2016 10:10:33 +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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal 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: Thu, 08 Sep 2016 10:10:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D170358 --- Comment #8 from commit-hook@freebsd.org --- A commit references this bug: Author: hselasky Date: Thu Sep 8 10:10:05 UTC 2016 New revision: 305590 URL: https://svnweb.freebsd.org/changeset/base/305590 Log: Correctly map the USB mouse tilt delta values into buttons 5 and 6 instead of 3 and 4 which is used for the scroll wheel, according to X.org. PR: 170358 MFC after: 1 week Changes: head/sys/dev/usb/input/ums.c --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Sep 8 10:11:14 2016 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 946FDBD165A for ; Thu, 8 Sep 2016 10:11:14 +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 80F308A4 for ; Thu, 8 Sep 2016 10:11:14 +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 u88ABE0C080425 for ; Thu, 8 Sep 2016 10:11:14 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 170358] [ums] Wrong (duplicate) button numbers Date: Thu, 08 Sep 2016 10:11:14 +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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution 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: Thu, 08 Sep 2016 10:11:14 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D170358 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Progress |Closed Resolution|--- |FIXED --- Comment #9 from Hans Petter Selasky --- Will be MFC'ed after a week. Sorry for taking so long to process. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Sep 8 10:12:29 2016 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 AB251BD17AE for ; Thu, 8 Sep 2016 10:12:29 +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 9AF81ABD for ; Thu, 8 Sep 2016 10:12:29 +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 u88ACTV8089909 for ; Thu, 8 Sep 2016 10:12:29 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211205] USB_ERR_TIMEOUT errors after upgrade from 10.2 Date: Thu, 08 Sep 2016 10:12:29 +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: 10.3-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me 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: 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: Thu, 08 Sep 2016 10:12:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211205 --- Comment #4 from Hans Petter Selasky --- Ping - were you able to test the above mentioned patches? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Sep 8 12:48:54 2016 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 9A459BD11E2 for ; Thu, 8 Sep 2016 12:48:54 +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 87EF6176 for ; Thu, 8 Sep 2016 12:48:54 +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 u88CmsRx087318 for ; Thu, 8 Sep 2016 12:48:54 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211205] USB_ERR_TIMEOUT errors after upgrade from 10.2 Date: Thu, 08 Sep 2016 12:48:54 +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: 10.3-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dwvcfii@gmail.com 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: Thu, 08 Sep 2016 12:48:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211205 --- Comment #5 from Doug --- (In reply to Hans Petter Selasky from comment #4) No. Unfortunately my work schedule has simply not permitted evaluating the= m. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Sep 8 13:03:02 2016 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 EB70DBD1828 for ; Thu, 8 Sep 2016 13:03:02 +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 DB326EE5 for ; Thu, 8 Sep 2016 13:03:02 +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 u88D322S061829 for ; Thu, 8 Sep 2016 13:03:02 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211205] USB_ERR_TIMEOUT errors after upgrade from 10.2 Date: Thu, 08 Sep 2016 13:03:03 +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: 10.3-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me 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: 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: Thu, 08 Sep 2016 13:03:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211205 --- Comment #6 from Hans Petter Selasky --- Hi, These patches have now been MFC'ed to 10-stable. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Sep 8 17:25:16 2016 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 30D2ABD17DF for ; Thu, 8 Sep 2016 17:25:16 +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 20084ACA for ; Thu, 8 Sep 2016 17:25:16 +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 u88HPFOC092108 for ; Thu, 8 Sep 2016 17:25:15 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211205] USB_ERR_TIMEOUT errors after upgrade from 10.2 Date: Thu, 08 Sep 2016 17:25:16 +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: 10.3-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dwvcfii@gmail.com 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: Thu, 08 Sep 2016 17:25:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211205 --- Comment #7 from Doug --- While playing with this again today I noticed something I didn't report ear= lier -- when the machine initially boots into the bootloader and the bootloader = is counting down, my keyboard works and I can press return to accelerate the b= oot of the selected kernel. But once execution jumps to the kernel I get the problem I previously outlined. So basically whatever USB code is crammed i= nto the bootloader works, while the USB code in 10.3-RELEASE generic kernel does not. This further highlights that this is a software bug rather than a hardware issue. Point of reference: updated my system again, no patches received on 10.3-RELEASE since last update a couple weeks ago (as expected), USB problem still exists in 10.3-RELEASE-p7 at this time. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Sep 9 06:19:12 2016 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 71843BD101F for ; Fri, 9 Sep 2016 06:19:12 +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 6142CC46 for ; Fri, 9 Sep 2016 06:19:12 +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 u896JCJ2014171 for ; Fri, 9 Sep 2016 06:19:12 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211205] USB_ERR_TIMEOUT errors after upgrade from 10.2 Date: Fri, 09 Sep 2016 06:19:12 +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: 10.3-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me 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: 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: Fri, 09 Sep 2016 06:19:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211205 --- Comment #8 from Hans Petter Selasky --- The bootloader is using the BIOS USB code. Try disabling USB legacy support= in the BIOS. BTW: The patches are in 10-stable not the release branches. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Sep 9 18:54:37 2016 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 6FFB5BD4BBA for ; Fri, 9 Sep 2016 18:54: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 5FD2CAC8 for ; Fri, 9 Sep 2016 18:54: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 u89Isbh2064324 for ; Fri, 9 Sep 2016 18:54:37 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211205] USB_ERR_TIMEOUT errors after upgrade from 10.2 Date: Fri, 09 Sep 2016 18:54:37 +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: 10.3-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dwvcfii@gmail.com 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: Fri, 09 Sep 2016 18:54:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211205 --- Comment #9 from Doug --- (In reply to Hans Petter Selasky from comment #8) > Try disabling USB legacy support in the BIOS. What will that do in this context? Not opposed to trying it. I just want = to know what your aim is in suggesting it. > BTW: The patches are in 10-stable not the release branches. Yes, I know. Trying to figure out if I can use freebsd-upgrade to move to = that branch. I'm more of a Linux guy, built my own custom distros from source, = etc. but on FreeBSD I'm still a bit clueless. If I can switch to the 10 releng branch easily I'm willing to do that simply to validate the patches. I just don't have the time to deal with a custom kernel build at the moment. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sat Sep 10 02:57:18 2016 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 BD33ABD4376 for ; Sat, 10 Sep 2016 02:57:18 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 98BC0E11 for ; Sat, 10 Sep 2016 02:57:18 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from segfault-nmh-helo.tristatelogic.com (localhost [127.0.0.1]) by segfault.tristatelogic.com (Postfix) with ESMTP id 8B2CE3ADFA for ; Fri, 9 Sep 2016 19:57:17 -0700 (PDT) From: "Ronald F. Guilmette" To: freebsd-usb@freebsd.org Subject: USB3 install no workie Date: Fri, 09 Sep 2016 19:57:17 -0700 Message-ID: <31111.1473476237@server1.tristatelogic.com> 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: Sat, 10 Sep 2016 02:57:18 -0000 Greetings, I've asked in the past why FreeBSD seems to have such problems with USB3 devices and controllers, in particular, and various people of good will and admirable patience have been kind enough to explain to me the difficulties of trying to write drivers for things where nobody actually follows the standards, however... Just a day or two ago I downloaded the file: FreeBSD-10.3-RELEASE-amd64-memstick.img and then dd'ed it to a recent vintage Sandisk Flair USB 3.0 16GB stick, stuck that into one of the built-in USB 3 sockets on my Asus A78M-A and tried to boot so I could do a fresh install of 10.3-RELEASE. Long story short, after getting past most of the boot up process, the install that I had hoped to do crashed and burned. The first irrecoverable error message seemed to be this one: Mounting from ufs:/dev/ufs/FreeBSD_Install failed with error 19. (Of course, I have no idea what "error 19" is. Is that ENODEV?) Anyway, I at least had the good sense to try again with the same USB stick, but this time with the thing plugged into one of the built-in USB 2 ports on the motherboard. That, worked, no problem, and I was able to complete the install. But this series of events leaves me worrying. In the past, I've had literally a ton of trouble getting anything USB3-ish to work reliably, ever, with FreeBSD. But the last time I even tried was a couple of years ago. I had sort-of vaguely hoped that things might have matured since then, and that at least there would be good support by now for common and widely used motherboard chipsets (in this case, AMD A78 FCH, Bolton D3) as well as widely used devices such as recent vintage Sandisk USB3 sticks. But as noted above, I was unable to even perform a simple install using this combination. And it wasn't like I was trying to install something ancient and crusty. I was trying to install 10.3-RELEASE. So, questions: 1) Where can I find a list of which USB3 chipsets are in fact supported by, for example, 10.3-RELEASE? 2) Where can I find a list of which USB3 devices are in fact supported by, for example, 10.3-RELEASE? 3) Why did my install crash and burn, and what the bleep is error 19? (If that signifies ENODEV in this context, then, I mean, what the bleep? Why would a UFS mount work fine when a given device is plugged into a USB2 port but _not_ when it is plugged into a USB3 port?) 4) Should I assume that the USB3 ports on my Asus A78M-A won't be working any more reliably _after_ the install of 10.3 than they appear to have done _during_ the install? Regards, rfg From owner-freebsd-usb@freebsd.org Sat Sep 10 08:50:38 2016 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 3EF25BD5E9F for ; Sat, 10 Sep 2016 08:50:38 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (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 062AEB1B for ; Sat, 10 Sep 2016 08:50:37 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (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 CD2F11FE022; Sat, 10 Sep 2016 10:50:28 +0200 (CEST) Subject: Re: USB3 install no workie To: "Ronald F. Guilmette" , freebsd-usb@freebsd.org References: <31111.1473476237@server1.tristatelogic.com> From: Hans Petter Selasky Message-ID: <6efb4a35-cdbf-c356-1f6d-3d6f0be5be3d@selasky.org> Date: Sat, 10 Sep 2016 10:55:11 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <31111.1473476237@server1.tristatelogic.com> Content-Type: text/plain; charset=windows-1252; format=flowed 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: Sat, 10 Sep 2016 08:50:38 -0000 On 09/10/16 04:57, Ronald F. Guilmette wrote: > Greetings, > > I've asked in the past why FreeBSD seems to have such problems with > USB3 devices and controllers, in particular, and various people of > good will and admirable patience have been kind enough to explain > to me the difficulties of trying to write drivers for things where > nobody actually follows the standards, however... Hi, Can you try a 10-stable kernel on your box and see if USB 3.0 is reliably enumerating? --HPS From owner-freebsd-usb@freebsd.org Sat Sep 10 19:13:29 2016 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 253E2BD5D21 for ; Sat, 10 Sep 2016 19:13:29 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 131CF1DB for ; Sat, 10 Sep 2016 19:13:28 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from segfault-nmh-helo.tristatelogic.com (localhost [127.0.0.1]) by segfault.tristatelogic.com (Postfix) with ESMTP id 09E953AE87; Sat, 10 Sep 2016 12:13:27 -0700 (PDT) From: "Ronald F. Guilmette" To: Hans Petter Selasky cc: freebsd-usb@freebsd.org Subject: Re: USB3 install no workie In-Reply-To: <6efb4a35-cdbf-c356-1f6d-3d6f0be5be3d@selasky.org> Date: Sat, 10 Sep 2016 12:13:27 -0700 Message-ID: <38572.1473534807@server1.tristatelogic.com> 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: Sat, 10 Sep 2016 19:13:29 -0000 In message <6efb4a35-cdbf-c356-1f6d-3d6f0be5be3d@selasky.org>, you wrote: >On 09/10/16 04:57, Ronald F. Guilmette wrote: >> Greetings, >> >> I've asked in the past why FreeBSD seems to have such problems with >> USB3 devices and controllers, in particular, and various people of >> good will and admirable patience have been kind enough to explain >> to me the difficulties of trying to write drivers for things where >> nobody actually follows the standards, however... > >Hi, > >Can you try a 10-stable kernel on your box and see if USB 3.0 is >reliably enumerating? I can, but it will have to wait till late next week. I'm crushed with other work right now.