From owner-freebsd-current@FreeBSD.ORG Thu Aug 19 10:12:18 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A32616A4CE for ; Thu, 19 Aug 2004 10:12:18 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (80-219-164-48.dclient.hispeed.ch [80.219.164.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC74D43D2D for ; Thu, 19 Aug 2004 10:12:16 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:50db:a430:0:220:afff:fed4:dbcb]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id i7JAC6Q01193 verified NO) for ; Thu, 19 Aug 2004 12:12:13 +0200 (CEST) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id i7JAC5t01192; Thu, 19 Aug 2004 12:12:05 +0200 (CEST) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Thu, 19 Aug 2004 12:12:05 +0200 (CEST) Message-Id: <200408191012.i7JAC5t01192@Mail.NOSPAM.DynDNS.dK> X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: beer set sender to bounce@NOSPAM.dyndns.dk using -f X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed from queue /tmp X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed by beer with -C /etc/mail/sendmail.cf-LOCAL From: Barry Bouwsma References: <200407200045.aa99979@salmon.maths.tcd.ie> <200407271843.aa10377@salmon.maths.tcd.ie> <200408102244.i7AMid614188@Mail.NOSPAM.DynDNS.dK> <200408142159.i7ELxdH00871@Mail.NOSPAM.DynDNS.dK> To: freebsd-current@freebsd.org X-Mailman-Approved-At: Thu, 19 Aug 2004 12:03:43 +0000 Subject: Re: Unloading USB driver while device is attached. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2004 10:12:18 -0000 Once again, I carry on a conversation with myself, concerning the observation that the USB2 umass code from -current ported to my -stable machine seemed to work fine with one set of hardware (although problematic on different hardware): > Now, the same from the machine where it works as expected: Sigh, too good to be true. While pounding on the disk (cvsup doing a tagging operation), the USB2-attached disk went south, with the `need toggle update' message, from which it never recovered. So I guess things aren't all rosy, although I was able to do far more before the failure with this one controller card than with my other one (where I see that message within seconds or minutes). I guess I need to verify that NetBSD on the same hardware can handle more intense disk activity than I had tried, to assure myself that the code there is fine... Failure was like this: Aug 15 13:45:21 dastardly /kernel-BEAST: ehci_idone: need toggle update status=4df30d00 nstatus=2a008d80 Aug 15 13:45:21 dastardly /kernel-BEAST: umass0: Invalid CSW: sig 0x6574726f should be 0x53425355 which resulted in everything heading south: Aug 15 13:45:24 dastardly /kernel-BEAST: spec_getpages:(#da/0x20004) I/O read failure: (error=5) bp 0xc2139d20 vp 0xc547d0c0 Aug 15 13:45:24 dastardly /kernel-BEAST: size: 31232, resid: 31232, a_count: 30744, valid: 0x0 Aug 15 13:45:24 dastardly /kernel-BEAST: nread: 0, reqpage: 0, pindex: 0, pcount: 8 Aug 15 13:45:24 dastardly /kernel-BEAST: vm_fault: pager read error, pid 1621 (cvsup-FreeBSD) For reference, the messages I see during the boot, concerning the toggle update, are as follows, should there be any clues in there. Unfortunately, I think these include not only the disk which had problems, but also some multi-card-readers: Aug 14 23:56:31 dastardly /kernel-BEAST: ehci_idone: need toggle update status=80018d40 nstatus=80008c80 Aug 14 23:56:31 dastardly /kernel-BEAST: ehci_idone: need toggle update status=80028d40 nstatus=80008c80 Aug 14 23:56:31 dastardly /kernel-BEAST: ehci_idone: need toggle update status=00080248 nstatus=80008d80 Aug 14 23:56:34 dastardly /kernel-BEAST: ehci_idone: need toggle update status=00080248 nstatus=80008d80 Aug 14 23:56:34 dastardly /kernel-BEAST: ehci_idone: need toggle update status=00080248 nstatus=80008d80 Aug 14 23:56:34 dastardly /kernel-BEAST: ehci_idone: need toggle update status=00080248 nstatus=80008d80 Aug 14 23:56:35 dastardly /kernel-BEAST: ehci_idone: need toggle update status=00080248 nstatus=80008d80 Aug 14 23:56:36 dastardly /kernel-BEAST: ehci_idone: need toggle update status=00080248 nstatus=80008d80 thanks barry bouwsma