From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 6 17:30:09 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D43A01065682 for ; Wed, 6 Aug 2008 17:30:09 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [212.17.241.230]) by mx1.freebsd.org (Postfix) with ESMTP id 334788FC13 for ; Wed, 6 Aug 2008 17:30:08 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m76HTfdA003286; Wed, 6 Aug 2008 19:29:52 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m76HTVVh003285; Wed, 6 Aug 2008 19:29:31 +0200 (CEST) (envelope-from olli) Date: Wed, 6 Aug 2008 19:29:31 +0200 (CEST) Message-Id: <200808061729.m76HTVVh003285@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, Matthias Apitz In-Reply-To: <20080806125719.GA8008@rebelion.Sisis.de> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 06 Aug 2008 19:29:54 +0200 (CEST) Cc: Subject: Re: USB key && kernel: da0: Attempt to query device size failed: UNIT ?ATTENTION, Medium not present X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Aug 2008 17:30:09 -0000 Matthias Apitz wrote: > I've updated usb/80361, see > http://www.freebsd.org/cgi/query-pr.cgi?pr=80361 > because I have the same problem as well that an USB key attaches fine > when plugged in at boot time, but not later: I'm just wondering what happens if you enforce a rescan on the (virtual) SCSI bus. That is, after you have plugged in the USB stick and the problem occured, type "camcontrol rescan 0". If that doesn't help, please try this patch: =============================================================================== --- src/sys/dev/usb/umass.c.orig 2008-05-21 16:22:03.000000000 +0200 +++ src/sys/dev/usb/umass.c 2008-08-06 19:23:01.000000000 +0200 @@ -2690,7 +2690,7 @@ * completed, when interrupts have been enabled. */ - callout_reset(&sc->cam_scsi_rescan_ch, MS_TO_TICKS(200), + callout_reset(&sc->cam_scsi_rescan_ch, MS_TO_TICKS(2000), umass_cam_rescan, sc); } =============================================================================== Note that this patch is not a solution. It's purpose is to find out if the cause of your problem is the same as the one in PR usb/80361. If it is, the patch from the PR should be committed (it introduces a quirk for cases like this), and your USB stick should be added to the quirks list. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "The last good thing written in C was Franz Schubert's Symphony number 9." -- Erwin Dieterich