From owner-freebsd-usb@FreeBSD.ORG Wed Oct 9 10:28:06 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 96A981D6 for ; Wed, 9 Oct 2013 10:28:06 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 534A22B6C for ; Wed, 9 Oct 2013 10:28:06 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 6D14D7A140; Wed, 9 Oct 2013 12:28:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id AF3E98F8836; Wed, 9 Oct 2013 12:28:27 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q8CzbePu6Kmy; Wed, 9 Oct 2013 12:28:27 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id F0EF68F8835; Wed, 9 Oct 2013 12:28:26 +0200 (CEST) Message-ID: <52553000.2010003@bitfrost.no> Date: Wed, 09 Oct 2013 12:29:20 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Daniel O'Connor Subject: Re: USB config SX lock deadlock References: <9783900F-08A1-41FB-81B8-3C9809B82521@gsoft.com.au> In-Reply-To: <9783900F-08A1-41FB-81B8-3C9809B82521@gsoft.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2013 10:28:06 -0000 On 10/09/13 12:04, Daniel O'Connor wrote: > Hi, > We have a custom Cypress FX2 based data acquisition card connected to a FreeBSD 9.2 system. > > Today the device disconnected > Oct 9 03:24:11 juskym kernel: ugsio0: at uhub3, port 1, addr 3 (disconnected) > > and then some time later we noticed the data acquisition process was stuck in 'USB config SX lock' (and un-killable). I ran usbconfig and it also got stuck in the same wchan. > > I tried rebooting it and got stuck with this on the screen.. > usbus0: Controller shutdown complete > usbus1: Controller shutdown > > I have previously run the same hardware on 9.0 (where there was a panic in devfs triggered if the DAQ card disconncted sometimes) and 9.1 (where I have not seen any problems). > > Does anyone have an idea about how I could go about gathering more information if it happens again? > Hi, It is not a deadlock. It is just that the reference in /dev/cuaUX does not go away. Have you tried 9-stable? There are also some sysctls you can set, see hw.usb to change the shutdown behaviour. --HPS