From owner-freebsd-usb@FreeBSD.ORG Wed Apr 15 06:48:33 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7BE5F492 for ; Wed, 15 Apr 2015 06:48:33 +0000 (UTC) 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 3B98E870 for ; Wed, 15 Apr 2015 06:48:32 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (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 5FAB01FE023; Wed, 15 Apr 2015 08:48:24 +0200 (CEST) Message-ID: <552E09EC.1030109@selasky.org> Date: Wed, 15 Apr 2015 08:49:16 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "Eugene M. Zheganin" , freebsd-usb@freebsd.org Subject: Re: cardreader replugged References: <552E078F.4070404@norma.perm.ru> In-Reply-To: <552E078F.4070404@norma.perm.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2015 06:48:33 -0000 On 04/15/15 08:39, Eugene M. Zheganin wrote: > Hi. > > I'm using the cardreader sometimes. The bad thing is that it's plugged > in the server. Yesterday someone replugged it, now the usb bus, as > camcontrol sees it, always shows an error: > > [root@moscow-alpha:~]# camcontrol rescan all > Re-scan of bus 0 was successful > Re-scan of bus 1 was successful > Re-scan of bus 2 was successful > Re-scan of bus 3 was successful > Re-scan of bus 4 was successful > Re-scan of bus 5 was successful > Re-scan of bus 6 returned error 0xa > > and the usbconfig just hangs. > > Is there something I can do besides rebooting the server ? > Looks like a bug to me. > Hi, If you use KGDB and dump all threads, and look for usb_ or usbd_ , then probably you'll see who is waiting for what. Typically most of these problems reside in the CAM / SCSI layer, which does not release all reference counts when the device is going away. --HPS