From nobody@FreeBSD.org  Fri Jun 18 20:12:26 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C443816A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Jun 2004 20:12:26 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C0CBE43D41
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Jun 2004 20:12:26 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i5IKBrd5014995
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Jun 2004 20:11:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i5IKBr7e014994;
	Fri, 18 Jun 2004 20:11:53 GMT
	(envelope-from nobody)
Message-Id: <200406182011.i5IKBr7e014994@www.freebsd.org>
Date: Fri, 18 Jun 2004 20:11:53 GMT
From: Alexei Khalimov <lesha@intercaf.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: EHCI is not working with Intel 82801DB (ICH4)
X-Send-Pr-Version: www-2.3

>Number:         68090
>Category:       i386
>Synopsis:       EHCI is not working with Intel 82801DB (ICH4)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 18 20:20:23 GMT 2004
>Closed-Date:    Fri Jul 23 13:40:25 GMT 2004
>Last-Modified:  Fri Jul 23 13:40:25 GMT 2004
>Originator:     Alexei Khalimov
>Release:        5.2-CURRENT (Jun 18)
>Organization:
InterCAF
>Environment:
FreeBSD greybox.intercaf.ru 5.2-CURRENT FreeBSD 5.2-CURRENT #3: Fri Jun 18 23:04:14 MSD 2004     lesha@greybox.intercaf.ru:/usr/src/sys/i386/compile/GREYBOX  i386
>Description:
Today I have decided to give EHCI another try.
This time with SONY "MicroVault" USB mass storage device.
Well, guess what - it is also not working ;-(


uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xdf20-0xdf3f irq 11 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801DB (ICH4) USB controller USB-A> 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

[ 2 more identical entries skipped ]

usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: <EHCI (generic) USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered

uhub4: Sony USB Embedded Hub, class 9/0, rev 2.00/0.01, addr 2
uhub4: 1 port with 0 removable, self powered
uhub4: cannot open interrupt pipe
device_attach: uhub4 attach returned 6

--------

Last time I have tried with Agrosy USB 2.0 extrenal HDD enclosure
All it gives me:
uhub3: port 1, set config at addr 2 failed
uhub3: device problem, disabling port 1


>How-To-Repeat:
Get yourself Intel 82801DB (ICH4) based Mainboard or Laptop
install 5.2.1-R, cvsup to -CURRENT, enable EHCI in kernel

Try to insert any USB 2.0 device
>Fix:
Unknown
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: le 
State-Changed-When: Mon Jul 19 21:01:40 GMT 2004 
State-Changed-Why:  
There have been made some commits to the USB stack that should 
improve EHCI handling.  Can you confirm that this problem still exists? 
I have no problem with a USB2.0 disk on -CURRENT. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68090 

From: Alex K <lesha@intercaf.ru>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: i386/68090: EHCI is not working with Intel 82801DB (ICH4)
Date: Tue, 20 Jul 2004 01:13:57 +0400

 Lukas,
 
 now USB2.0 (Agrosy) disk connects ok, but stops responding
 after transfering about 50M of data with:
   da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
   umass0: Invalid CSW: tag 442 should be 449
 
 disk is detected as:
  umass0: vendor 0x0840 USB 2.0 Storage Device, rev 2.00/0.01, addr 2
  umass0: SCSI over Bulk-Only; quirks = 0x0000
  umass0:3:0:-1: Attached to scbus3
  da0 at umass-sim0 bus 0 target 0 lun 0
  da0: <USB 2.0 Storage Device 0100> Fixed Direct Access SCSI-0 device
  da0: 1.000MB/s transfers
  da0: 78533MB (160836480 512 byte sectors: 255H 63S/T 10011C)
 which is correct, only not sure about 1Mb/s, it gives me about 6-7Mb/s rate
 
 Sony Memory stick won't work, as I assume USB2.0 hubs are not yet supported.
 
 -- 
 perl -e 'print unpack("u","1;&5S:&%`:6YT97)C868N<G4`");'
State-Changed-From-To: feedback->closed 
State-Changed-By: le 
State-Changed-When: Fri Jul 23 13:39:16 GMT 2004 
State-Changed-Why:  
Close this PR, as the primary problem seems to be fixed. 

It was already reported on the mailing lists that EHCI devices 
stop working after transferring larger amounts of data, so this might 
be worth a separate PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68090 
>Unformatted:
