Date: Fri, 06 Nov 2009 13:52:48 +0900 From: Alexander Nedotsukov <bland@bbnest.net> To: Alexander Nedotsukov <bland@freebsd.org> Cc: current@freebsd.org, Andrew Thompson <thompsa@freebsd.org>, Hans Petter Selasky <hselasky@c2i.net> Subject: Re: umass problem. Message-ID: <20d8e6193795d83f9ffa30ab94bf86eb@mail> In-Reply-To: <202969100caf7f0bb8098572b0dad622@mail> References: <202969100caf7f0bb8098572b0dad622@mail>
next in thread | previous in thread | raw e-mail | index | archive | help
--=_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 <bland@freebsd.org> 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 IGludGVycn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HJlZ2lz dGVycyAqLwogCXVpbnQ4X3QJc2NfZG9vcmJlbGxfZGlzYWJsZTsJLyogc2V0IG9uIGRvb3JiZWxs IGZhaWx1cmUgKi8K --=_958d35a45c231854b4ffb480c87eec69--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20d8e6193795d83f9ffa30ab94bf86eb>