From owner-freebsd-stable@FreeBSD.ORG Fri Dec 10 15:22:00 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32FBE106566C for ; Fri, 10 Dec 2010 15:22:00 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 7ABE18FC12 for ; Fri, 10 Dec 2010 15:21:57 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id RAA09448; Fri, 10 Dec 2010 17:20:34 +0200 (EET) (envelope-from avg@freebsd.org) Message-ID: <4D024541.7090302@freebsd.org> Date: Fri, 10 Dec 2010 17:20:33 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: Bruce Cran References: <20101209213556.GA3322@pollux.local.net> <20101209221108.GA13256@icarus.home.lan> <8591B0F0-82B2-433C-AE0C-0D454B12E41B@gromit.dlib.vt.edu> <20101210144720.00002b38@unknown> In-Reply-To: <20101210144720.00002b38@unknown> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, Jeremy Chadwick Subject: Re: umass: AutoSense failed X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2010 15:22:00 -0000 on 10/12/2010 16:47 Bruce Cran said the following: > On Fri, 10 Dec 2010 09:40:05 -0500 > Paul Mather wrote: > >> I get something similar to this happening on 8.2-PRERELEASE. In my >> case, it's not during boot probing or device attachment. Instead, it >> happens occasionally after boot. The devices concerned are Maxtor >> OneTouch external USB hard drives. Every now and then, I will get >> something akin to the following crop up in the console log: >> >> (da1:umass-sim1:1:0:0): AutoSense failed > > I'm seeing the same with a USB card reader and an 8GB card on CURRENT: > after a while I'll get "AutoSense failed" and the device stops > responding. I looked at the code a little and I guess that the source of this message is umass_cam_sense_cb(), specifically the default case of the status switch. Which means that the status is likely STATUS_WIRE_FAILED. So I suspect that something goes wrong at USB level. But unfortunately usb/umass drivers do not tell us anything. So perhaps compiling and running umass with debug enabled could shed more light at what is actually happening. The code would have to be compiled with USB_DEBUG and tunable/sysctl hw.usb.umass.debug would have to be set. Maybe enabling overall usb debug would be a good idea too. -- Andriy Gapon