From owner-freebsd-usb@FreeBSD.ORG Mon Oct 25 07:23:56 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 04338106566B for ; Mon, 25 Oct 2010 07:23:56 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8304F8FC13 for ; Mon, 25 Oct 2010 07:23:55 +0000 (UTC) Received: by fxm17 with SMTP id 17so2626961fxm.13 for ; Mon, 25 Oct 2010 00:23:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=duWS17sYJ+D8vBbtqIXhjKQzZFpPw4pO3J8vtHP/l1Y=; b=PmpxLgDnqRqCghVjL3FRXRQskFHxnQ6kjF0G9xLkITHWTy4eFC35XbsmffoOHdVTjU 7aGsJoIWySTg+jucrpNerGJCVUp9ndAjMLmbYdt8TUmol/X7Me4HpSGWspMiyYAjOGxk XntuRKQ9JcJiH96jr2PRayBSvKyj6CW5kUGx0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=UgEGRMDAkpZBvXrIZpOxQmgieV2IcbvG4gvAwQgORZkQoXa5icM9oKW2/4mQhAJyIP an4fKMAFP3FbgQ7IW2CdTdxa8kn7AHp+sRASlvqWOwHa3hQgdfa5FTilOaeB8L8jNFNq 5Lj+jxJZe+M2TwOMxzkwfNW+O5qk58S2JUxlA= Received: by 10.103.221.12 with SMTP id y12mr141948muq.109.1287989715259; Sun, 24 Oct 2010 23:55:15 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id o6sm2684054fal.39.2010.10.24.23.55.13 (version=SSLv3 cipher=RC4-MD5); Sun, 24 Oct 2010 23:55:14 -0700 (PDT) Sender: Alexander Motin Message-ID: <4CC529CF.8000304@FreeBSD.org> Date: Mon, 25 Oct 2010 09:55:11 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Hans Petter Selasky References: <20101020153040.GA3184@freebsd.org> <201010201955.56816.hselasky@c2i.net> In-Reply-To: <201010201955.56816.hselasky@c2i.net> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alexander Best , freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: serious issue caused by usb device, stalling almost all operations 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: Mon, 25 Oct 2010 07:23:56 -0000 Hans Petter Selasky wrote: > On Wednesday 20 October 2010 17:30:40 Alexander Best wrote: >> hi there, >> >> i'm running HEAD (r213495; amd64). i stumbled upon this severe problem: >> >> after attaching my mobile phone, it simply resets without doing mount or >> anything. however after letting the device come up again it won't show up >> in the console. after detaching it the usb subsystem seemed to have >> completely crashed. but that's not all. the following programs now simply >> hang without producing any output C-C won't do anything: >> >> - dmesg >> - top >> - ps >> - killall >> - camcontrol devlist >> - usbconfig > > That's most likely because USB's umass driver is waiting for cam to drain. > Possibly some refcounting is not correct. I suspect this is not a USB problem. > Try to enter into the debugger, and look for backtrace for function stuck in > umass_detach. It is a bit suspicious that problem happens only when device dies during request. Are you sure that running command was properly aborted when device got detached? Every running command has own set of references, denying detach. -- Alexander Motin