Subject: Re: Ehci/Umass bug OK
To: None <tech-kern@netbsd.org>
From: Michael <macallan18@earthlink.net>
List: tech-kern
Date: 05/13/2005 09:06:55
--Signature_Fri__13_May_2005_09_06_55_-0400_Enw=OV=OTjgv7j=A
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

speaking of ehci - I just did a cvs update and made a new kernel - it's
doing better but isn't quite there yet.=20

when fsck'ing a disk I get this:
umass0: Invalid CSW: sig 0xc0bc04d0 should be 0x53425355
ehci_idone: need toggle update status=3D14003148 nstatus=3D20008d80
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
... here it sits for a while...
ehci_idone: need toggle update status=3D9bf33d00 nstatus=3D50000d80
umass0: at uhub3 port 4 (addr 2) disconnected
umass0: BBB bulk-in stall clear failed, IOERROR
sd2(umass0:0:0:0): generic HBA error
sd2 detached
scsibus2 detached
umass0 detached
umass0 at uhub3 port 4 configuration 1 interface 0
umass0: Genesys Logic USB TO IDE, rev 2.00/0.02, addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, 1 lun per target
sd2 at scsibus2 target 0 lun 0: <TOSHIBA, MK6412MAT, 0811> disk fixed
sd2: fabricating a geometry
sd2: 1344 GB, 1376352 cyl, 64 head, 32 sec, 512 bytes/sect x 2818768971
sectors

... disk size is nonsense, the original attachment looks like this:
umass0 at uhub3 port 4 configuration 1 interface 0
umass0: Genesys Logic USB TO IDE, rev 2.00/0.02, addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, 1 lun per target
...
sd2 at scsibus2 target 0 lun 0: <TOSHIBA, MK6412MAT, 0811> disk fixed
sd2: fabricating a geometry
sd2: 6194 MB, 6194 cyl, 64 head, 32 sec, 512 bytes/sect x 12685680
sectors
... which is correct.

The USB controller is this:
ohci0: interrupting at irq 25
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
(two more of these)
ehci0 at pci1 dev 0 function 3: Acer Labs M5239 USB 2.0 Host Controller
(rev. 0x 01)
ehci0: interrupting at irq 25
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: ohci0 ohci1 ohci2
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: Acer Labs EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered

running on
~# uname -a
NetBSD Macallan 3.99.3 NetBSD 3.99.3 (MACALLAN) #636: Fri May 13
08:49:07 EDT 2005=20
root@Macallan:/data/src/sys/arch/macppc/compile/MACALLAN macppc

The device works perfectly without ehci, and it also works fine on the
ehci found in my iBook G4.

have fun
Michael

--Signature_Fri__13_May_2005_09_06_55_-0400_Enw=OV=OTjgv7j=A
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQoSmcMpnzkX8Yg2nAQI35wf+NdrNTSJYzA8UwwUuFECvff5xfJfCwpam
f69GvV0WfLZ7DY3PsNK91EHuA/9jKqG6dZ4VQQt7nxrk7rOv/UqZeJv1Hcq1a08L
JGy36OGKmJMNlN7tcqR/IhZkAXP/4n0/uiJ5FundZqY/JAYat5B7LV4IWBTy07fe
KEehMzOM0gy012J6VPn//O+HTkHKMAl98QTC0AmerjL0vuD8PcmQgE+G7N54KPAe
6AaPcOsh2+/jPES+ioSRqU5Lx+3wKPr8/tXogdBdLH0OtXiU4P2uoxtGls2tnaW+
0RWLC16F/s9iFaUEnAGxB1CDSgzDWTi9Hpl2Fk7+3yFz3zVkFVK6Ww==
=e+pq
-----END PGP SIGNATURE-----

--Signature_Fri__13_May_2005_09_06_55_-0400_Enw=OV=OTjgv7j=A--