From owner-freebsd-usb@FreeBSD.ORG Tue Nov 2 13:05:06 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15DA1106564A; Tue, 2 Nov 2010 13:05:06 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id AE38B8FC0C; Tue, 2 Nov 2010 13:05:05 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3A76A.dip.t-dialin.net [87.179.167.106]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 26F0B84400D; Tue, 2 Nov 2010 14:05:00 +0100 (CET) Received: from webmail.leidinger.net (unknown [IPv6:fd73:10c7:2053:1::2:102]) by outgoing.leidinger.net (Postfix) with ESMTP id 5C82A2342; Tue, 2 Nov 2010 14:04:57 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id oA2D4afr005549; Tue, 2 Nov 2010 14:04:36 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Tue, 02 Nov 2010 14:04:36 +0100 Message-ID: <20101102140436.20255uuirfsbtxwc@webmail.leidinger.net> Date: Tue, 02 Nov 2010 14:04:36 +0100 From: Alexander Leidinger To: Andriy Gapon References: <201011021036.41617.hselasky@freebsd.org> <20101102110134.53027bx6btjokpgc@webmail.leidinger.net> <201011021300.54515.hselasky@freebsd.org> <4CD0046A.1000801@icyb.net.ua> In-Reply-To: <4CD0046A.1000801@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 26F0B84400D.A4352 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (cached, score=1.351, required 6, autolearn=disabled, RDNS_NONE 1.27, TW_KD 0.08) X-EBL-MailScanner-SpamScore: s X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1289307903.90165@Z7Td2mFD7DZqAxMVQtufVg X-EBL-Spam-Status: No Cc: Alexander Motin , Hans Petter Selasky , "freebsd-usb@freebsd.org" Subject: Re: usbconfig reset ugen4.2 hanging since an hour X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Nov 2010 13:05:06 -0000 Quoting Andriy Gapon (from Tue, 02 Nov 2010 14:30:34 +0200): > on 02/11/2010 14:00 Hans Petter Selasky said the following: >> On Tuesday 02 November 2010 11:01:34 Alexander Leidinger wrote: >>> # procstat -kk 29213 >>> PID TID COMM TDNAME KSTACK >>> 29213 100291 usbconfig - mi_switch+0x188 >>> sleepq_switch+0x13c sleepq_timedwait+0x40 _sleep+0x320 pause+0x30 >>> usb_pause_mtx+0x94 usb_ioctl+0x171 devfs_ioctl_f+0x73 kern_ioctl+0x9d >>> ioctl+0xc5 syscallenter+0x1af syscall+0x34 Xint0x80_syscall+0x21 >>> >>>> somewhere in umass_detach(), which is preventing the usbconfig reset from >>> >>> No umass_detach in there... >> >> Hi, >> >> The USB threads are joined into a single process and not visible from "ps". >> Not sure how you can get a list of all threads. > > -H option would that for ps. > But I am not why mentioned ps, because procstat shows the threads, > e.g. procstat > -k -a will show stacks of all non-running kernel threads. So withdraw my last question (the answer to HPS' message that it is not shown in ps), as I already provided the procstat -kka | grep umass_detach part (no trace of it). There is every half an hour a job which is polling an USB device. This job is not proceeding anymore (each instance started hangs), so it looks like the USB system is in a f*ed-up state (it does not matter to me if this is because of the "usbconfig reset ugen4.2" or not). I rebooted the system to get again the data flowing from this job. Looks like I'm able to trigger this situation within some days. If someone wants me to run some specific commands, be it in kdb or something else, please specify clearly (kdb commands / instructions) what you want and I try to provide this info by setting up the system in a way to get into the same situation again. Bye, Alexander. -- TOTD (T-shirt Of The Day): I'm the person your mother warned you about. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137