From owner-freebsd-bugs@FreeBSD.ORG Wed Nov 3 23:10:32 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B805416A4CE for ; Wed, 3 Nov 2004 23:10:32 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8889743D4C for ; Wed, 3 Nov 2004 23:10:32 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id iA3NAW0B067280 for ; Wed, 3 Nov 2004 23:10:32 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id iA3NAWO4067279; Wed, 3 Nov 2004 23:10:32 GMT (envelope-from gnats) Date: Wed, 3 Nov 2004 23:10:32 GMT Message-Id: <200411032310.iA3NAWO4067279@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Herve Quiroz Subject: Re: kern/63621: USB MemoryStick Reader stalls/crashes system X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Herve Quiroz List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Nov 2004 23:10:32 -0000 The following reply was made to PR kern/63621; it has been noted by GNATS. From: Herve Quiroz To: freebsd-gnats-submit@freebsd.org, marck@rinet.ru Cc: Subject: Re: kern/63621: USB MemoryStick Reader stalls/crashes system Date: Thu, 4 Nov 2004 00:03:34 +0100 Dmitry, I was able to reproduce this error on 5.2.1-RELEASE-p11. In fact I had already encountered this problem but it occured while using Subversion. Each time I boot my machine, then plug my USB memory stick [1], then do a simple checkout from a repository located on the USB device, the stick hangs. Worse, even my USB mouse gets off in the process. From this point, nothing can be done to avoid a panic. Indeed, if a leave everything as-is for a while, the system lags then crash after a few minutes. OTOH it is impossible to umount the device and if I try to unplug the stick without unmounting it, I get a panic (as reported in many other PRs [2]). If I simply shutdown the system, I get the same output as you in the console: a problem while syncing some buffer. I found a workaround though. A tricky one that is. The first time I plug my memory stick after a fresh reboot, I do a simple cat(1) of some text file in the partition I just mounted (UFS2 BTW) and wait a few seconds before doing anything else with the stick. Then, most of the time, the subsequent subversion operations I perform are successful and nothing breaks. Better yet, if I umount, unplug and then re-plug and re-mount the memory stick, I don't need to 'cat' the file anymore to have my subversion operations working. So, as long as I don't reboot my system, my memory stick is now running fine and I can do anything on the filesystem on it. I recently tried to upgrade to 5.3-BETA (BETA5 or BETA6 -- I can't remember unfortunately) and experienced the same problem. BTW, I am experiencing this problem either with UHCI [3] or OHCI [4] on different systems. Just as you, I'm looking for a fix... I just hope this follow-up will help identify the cause of the problem. Herve [1] USB Memory Stick (with some UFS2 partition): umass0: USB Flash Disk, rev 2.00/2.00, addr 3 GEOM: create disk da0 dp=0xc4b83450 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: 249MB (511744 512 byte sectors: 64H 32S/T 249C) [2] Panic when unplugging mounted USB mass storage device PRs: kern/72119 kern/46176 [3] UHCI uhci0: port 0xff80-0xff9f irq 16 at device 29.0 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered [4] OHCI ohci0: mem 0xea000000-0xea000fff irq 4 at device 3.0 on pci0 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered