tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bus_dmamap_sync() for uhci(4)



bouyer%antioche.eu.org@localhost wrote:

> > Anyway I'll test it on cobalt with later..
> 
> thanks !
> Here's my latest patch. In addition to the previous, it fixes a possible
> race between the controller and host when removing TDs from a queue.
> With this, my test on umodem has been running for more than 36 hours
> without issues, where it would hit a "host controller process error" within
> max. 12 hours before. I'll let it running until monday.

On cobalt2700 with VIA ehci and an IDE-USB bridge cable, it shows:
---
 :
uhci1 at pci0 dev 10 function 0: VIA Technologies VT83C572 USB Controller (rev. 
0x61)
uhci1: interrupting at irq 9
usb0 at uhci1: USB revision 1.0
uhci2 at pci0 dev 10 function 1: VIA Technologies VT83C572 USB Controller (rev. 
0x61)
uhci2: interrupting at irq 9
usb1 at uhci2: USB revision 1.0
ehci0 at pci0 dev 10 function 2: VIA Technologies VT8237 EHCI USB Controller 
(rev. 0x63)
ehci0: interrupting at irq 9
ehci0: dropped intr workaround enabled
ehci0: companion controllers, 2 ports each: uhci1 uhci2
usb2 at ehci0: USB revision 2.0
 :
uhub0 at usb0: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1 at usb1: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2 at usb2: VIA Technologies EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
 :
umass0 at uhub2 port 2 configuration 1 interface 0
umass0: vendor 0x05e3 USB TO IDE, rev 2.00/0.33, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <WDC WD80, 0BB-00JHC0, 0811> disk fixed
sd0: fabricating a geometry
sd0: 76319 MB, 76319 cyl, 64 head, 32 sec, 512 bytes/sect x 156301488 sectors
 :

# newfs /dev/rsd0a
/dev/rsd0a: 76319.1MB (156301488 sectors) block size 16384, fragment size 2048
        using 415 cylinder groups of 184.30MB, 11795 blks, 23296 inodes.
super-block backups (for fsck_ffs -b #) at:
32, 377472, 754912, 1132352, 1509792, 1887232, 2264672, 2642112, 3019552,
....................................................umass0: BBB reset failed, 
TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: Invalid CSW: tag 1674 should be 12675
umass0: BBB reset failed, TIMEOUT


---
I'm not sure if this is caused by bus_dma(9) issue or
a bad implemented bridge though.

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index