Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Apr 2015 08:49:16 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        "Eugene M. Zheganin" <emz@norma.perm.ru>, freebsd-usb@freebsd.org
Subject:   Re: cardreader replugged
Message-ID:  <552E09EC.1030109@selasky.org>
In-Reply-To: <552E078F.4070404@norma.perm.ru>
References:  <552E078F.4070404@norma.perm.ru>

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




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