Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Oct 2013 12:29:20 +0200
From:      Hans Petter Selasky <hps@bitfrost.no>
To:        Daniel O'Connor <doconnor@gsoft.com.au>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: USB config SX lock deadlock
Message-ID:  <52553000.2010003@bitfrost.no>
In-Reply-To: <9783900F-08A1-41FB-81B8-3C9809B82521@gsoft.com.au>
References:  <9783900F-08A1-41FB-81B8-3C9809B82521@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52553000.2010003>