From owner-freebsd-usb@FreeBSD.ORG Wed Oct 9 12:11:55 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D6153512 for ; Wed, 9 Oct 2013 12:11:55 +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 911D42202 for ; Wed, 9 Oct 2013 12:11:55 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id AD6047A14A; Wed, 9 Oct 2013 14:11:53 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 041EE8F5B3C; Wed, 9 Oct 2013 14:12:17 +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 4wur4Ajc49-U; Wed, 9 Oct 2013 14:12:16 +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 03AF48F269E; Wed, 9 Oct 2013 14:12:15 +0200 (CEST) Message-ID: <52554855.6030404@bitfrost.no> Date: Wed, 09 Oct 2013 14:13:09 +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> <52553000.2010003@bitfrost.no> In-Reply-To: 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 12:11:55 -0000 On 10/09/13 12:38, Daniel O'Connor wrote: > > On 09/10/2013, at 20:59, Hans Petter Selasky wrote: >>> 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? >>> >> It is not a deadlock. It is just that the reference in /dev/cuaUX does not go away. Have you tried 9-stable? > Hi, > It is actually running r253505, sorry I should have mentioned that before. > > It isn't a serial device, although the driver is a thin wrapper around the usb_fifo code (which is very useful - thanks :) Does your application close the file handle when it gets a read/poll error? >> There are also some sysctls you can set, see hw.usb to change the shutdown behaviour. > > This would be hw.usb.no_shutdown_wait ? Yes, correct! --HPS