From owner-freebsd-usb@FreeBSD.ORG Mon Dec 6 14:34:15 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 5D945106566B for ; Mon, 6 Dec 2010 14:34:15 +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 A2B6C8FC22 for ; Mon, 6 Dec 2010 14:34:14 +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 QAA10693; Mon, 06 Dec 2010 16:34:10 +0200 (EET) (envelope-from avg@freebsd.org) Message-ID: <4CFCF461.8090208@freebsd.org> Date: Mon, 06 Dec 2010 16:34:09 +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: <20101204144023.2f4be1a5@core.draftnet> In-Reply-To: <20101204144023.2f4be1a5@core.draftnet> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: "Autosense failed" - I/O stops on SD card reader 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, 06 Dec 2010 14:34:15 -0000 on 04/12/2010 16:40 Bruce Cran said the following: > Hi, > > I've been having problems with a card reader (http://www.frontier-electronics.co.za/stor_sdr012.htm) > and an 8GB SD card > (http://www.amazon.co.uk/Transcend-SDHC-Class-Flash-Memory/dp/B000P9ZBFA) > I'm trying to use. FreeBSD 9-CURRENT will regularly display the > following error which causes all IO to stop: > > (da0:umass-sim0:0:0:0): AutoSense failed As I understand, "AutoSense" is an automatic fetching of sense data in case of an error. Strange that that error is not reported here. It would give a much better idea of what was going on. > g_vfs_done():da0s1[READ(offset=6782976, length=36864)]error = 5 > vnode_pager_getpages: I/O read error > vm_fault: pager read error, pid 2986 (cp) > > I tried setting hw.usb.umass.debug=1 but there was no extra debug > output; setting hw.usb.ehci.debug=1 or hw.usb.debug=1 results in > lots of output that I'm not sure is useful. > What would I need to do to help debug what's going wrong? -- Andriy Gapon