From owner-freebsd-current@FreeBSD.ORG Fri Nov 6 04:52:54 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB9431065670; Fri, 6 Nov 2009 04:52:54 +0000 (UTC) (envelope-from bland@bbnest.net) Received: from mail1.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.freebsd.org (Postfix) with ESMTP id AFD078FC17; Fri, 6 Nov 2009 04:52:54 +0000 (UTC) Received: from hub.bbnest.net (w133033.ppp.asahi-net.or.jp [121.1.133.33]) by mail1.asahi-net.or.jp (Postfix) with ESMTP id 072588FF67; Fri, 6 Nov 2009 13:52:52 +0900 (JST) Received: from hub.bbnest.net (localhost [127.0.0.1]) by hub.bbnest.net (8.14.3/8.14.3) with ESMTP id nA64qnIu001567 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 6 Nov 2009 13:52:49 +0900 (JST) (envelope-from bland@bbnest.net) Received: (from www@localhost) by hub.bbnest.net (8.14.3/8.14.3/Submit) id nA64qmLU001565; Fri, 6 Nov 2009 13:52:48 +0900 (JST) (envelope-from bland@bbnest.net) X-Authentication-Warning: hub.bbnest.net: www set sender to bland@bbnest.net using -f To: Alexander Nedotsukov MIME-Version: 1.0 Date: Fri, 06 Nov 2009 13:52:48 +0900 From: Alexander Nedotsukov In-Reply-To: <202969100caf7f0bb8098572b0dad622@mail> References: <202969100caf7f0bb8098572b0dad622@mail> Message-ID: <20d8e6193795d83f9ffa30ab94bf86eb@mail> X-Sender: bland@bbnest.net User-Agent: RoundCube Webmail/0.2a Content-Type: multipart/mixed; boundary="=_958d35a45c231854b4ffb480c87eec69" X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Fri Nov 6 13:52:52 2009 X-DSPAM-Confidence: 0.9991 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4af3aba415681856066157 X-Mailman-Approved-At: Fri, 06 Nov 2009 05:00:22 +0000 Cc: current@freebsd.org, Andrew Thompson , Hans Petter Selasky Subject: Re: umass problem. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 06 Nov 2009 04:52:55 -0000 --=_958d35a45c231854b4ffb480c87eec69 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Well I do. This is a regression in EHCI driver introduced along the new usb stack. Please review patch attached. Thanks, Alexander. On Tue, 20 Oct 2009 10:53:36 +0900, Alexander Nedotsukov wrote: > Hi, > > I can reproduce this reliably with simple dd if=/dev/da0. At the end > external USB drive turns off the lights (tough it still spinning) and > system fall into the state where it is impossible to reboot it cleanly. I > can get drive back only after full power cycle (simple reboot is not > enough). Using same drive under moderate load seems mostly to work. It also > is used to work under 7.2. > > Anyone have an idea what this could be? --=_958d35a45c231854b4ffb480c87eec69 Content-Transfer-Encoding: base64 Content-Type: application/octet-stream; charset=UTF-8; name=ehci-lostintr.patch; Content-Disposition: attachment; filename=ehci-lostintr.patch; SW5kZXg6IGNvbnRyb2xsZXIvZWhjaV9wY2kuYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBjb250cm9sbGVyL2Vo Y2lfcGNpLmMJKHJldmlzaW9uIDE5ODk2NikKKysrIGNvbnRyb2xsZXIvZWhjaV9wY2kuYwkod29y a2luZyBjb3B5KQpAQCAtNDE0LDYgKzQxNCwyMCBAQAogCQlzYy0+c2NfaW50cl9oZGwgPSBOVUxM OwogCQlnb3RvIGVycm9yOwogCX0KKworCS8qIEVuYWJsZSB3b3JrYXJvdW5kIGZvciBkcm9wcGVk IGludGVycnVwdHMgYXMgcmVxdWlyZWQgKi8KKwlzd2l0Y2ggKHBjaV9nZXRfdmVuZG9yKHNlbG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