Subject: Re: Does uhci work on macppc/big-endian?
To: None <port-macppc@NetBSD.org>
From: Dave Huang <khym@azeotrope.org>
List: port-macppc
Date: 03/03/2006 13:35:05
On Fri, Mar 03, 2006 at 12:40:18PM -0600, Dave Huang wrote:
> I've attached my kernel messages with uhcidebug=20 to PR kern/11018.

Well, I thought I did... has the procedure for adding info to a PR
changed? I sent an email to gnats-bugs@netbsd.org with Subject:
kern/11018.

In any case, here's the msgbuf (lost the first few lines since the
buffer wasn't big enough):

0 MHz, no-parity 1MB WB L2 cache (PB SRAM) at 2:1 ratio
cpu1 at mainbus0cpu1: 500.00 MHz
: 7400 (Revision 2.9), ID 1
cpu1: HID0 8094c0a4<EMCP,DOZE,DPM,EIEC,ICE,DCE,SGE,BTIC,BHT>
cpu1: 500.00 MHz, no-parity 1MB WB L2 cache (PB SRAM) at 2:1 ratio
uninorth0 at mainbus0
pci0 at uninorth0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer UniNorth AGP Interface (rev. 0x00)
ofb0 at pci0 dev 16 function 0: ATI Technologies Radeon 7200
ofb0: 1280 x 1024, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation)
wsmux1: connecting to wsdisplay0
uninorth1 at mainbus0
pci1 at uninorth1 bus 0
pci1: i/o space, memory space enabled
pchb1 at pci1 dev 11 function 0
pchb1: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
ppb0 at pci1 dev 13 function 0: Digital Equipment DC21154 PCI-PCI Bridge (rev. 0x05)
pci2 at ppb0 bus 1
pci2: i/o space, memory space enabled
uhci0 at pci2 dev 4 function 0: VIA Technologies VT83C572 USB Controller (rev. 0x61)
uhci0: interrupting at irq 54
uhci_init: start
uhci0 regs: cmd=0000, sts=0020, intr=0000, frnum=0000, flbase=00000000, sof=0040, portsc1=0480, portsc2=0580
uhci_alloc_std: allocating chunk
uhci_alloc_sqh: allocating chunk
uhci_alloc_sqh: allocating chunk
uhci_alloc_std: allocating chunk
uhci_init: enabling
uhci_run: setting run=1
uhci_run: done cmd=0x81 sts=0x0
usb0 at uhci0: USB revision 1.0
uhci_open: pipe=0xd0063b00, addr=0, endpt=0 (0)
uhci_root_ctrl_control type=0x00 request=05
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0100
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0100
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0300
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0300
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0301
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0301
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0302
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0302
uhub0 at usb0uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0301
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0301
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0302
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0302

uhub0: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0200
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0200
uhci_root_ctrl_control type=0x00 request=09
uhci_root_ctrl_control type=0xa0 request=06
uhub0: 2 ports with 2 removable, self powered
uhci_open: pipe=0xd0063980, addr=1, endpt=129 (1)
uhci_root_intr_start: xfer=0xd0202e00 len=1 flags=4
uhci_root_ctrl_control type=0x23 request=03
uhci_root_ctrl_control type=0x23 request=03
uhci1 at pci2 dev 4 function 1: VIA Technologies VT83C572 USB Controller (rev. 0x61)
uhci1: interrupting at irq 54
uhci_init: start
uhci1 regs: cmd=0000, sts=0020, intr=0000, frnum=0000, flbase=00000000, sof=0040, portsc1=05a1, portsc2=0480
uhci_alloc_std: allocating chunk
uhci_alloc_sqh: allocating chunk
uhci_alloc_sqh: allocating chunk
uhci_alloc_std: allocating chunk
uhci_init: enabling
uhci_run: setting run=1
uhci_run: done cmd=0x81 sts=0x0
usb1 at uhci1: USB revision 1.0
uhci_open: pipe=0xd0063800, addr=0, endpt=0 (0)
uhci_root_ctrl_control type=0x00 request=05
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0100
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0100
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0300
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0300
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0301
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0301
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0302
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0302
uhub1 at usb1uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0301
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0301
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0302
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0302

uhub1: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0200
uhci_root_ctrl_control type=0x80 request=06
uhci_root_ctrl_control wValue=0x0200
uhci_root_ctrl_control type=0x00 request=09
uhci_root_ctrl_control type=0xa0 request=06
uhub1: 2 ports with 2 removable, self powered
uhci_open: pipe=0xd0063680, addr=1, endpt=129 (1)
uhci_root_intr_start: xfer=0xd0202c00 len=1 flags=4
uhci_root_ctrl_control type=0x23 request=03
uhci_root_ctrl_control type=0x23 request=03
ehci0 at pci2 dev 4 function 2: VIA Technologies VT8237 EHCI USB Controller (rev. 0x63)
ehci0: interrupting at irq 54
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: VIA Technologies EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 4 ports with 4 removable, self powered
obio0 at pci2 dev 7 function 0: addr 0x80000000
enabling KeyLargo internal modem
zsc0 at obio0 offset 0x13000: irq 22,50
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
davbus at obio0 offset 0x14000 not configured
adb0 at obio0 offset 0x16000 irq 47: pm_adb_op: timeout. command = 0x0
0 targets
aed0 at adb0 addr 0: ADB Event device
wdc0 at obio0 offset 0x1f000 irq 19: DMA transfer
atabus0 at wdc0 channel 0
wdc1 at obio0 offset 0x20000 irq 20: DMA transfer
atabus1 at wdc1 channel 0
wdc2 at obio0 offset 0x21000 irq 21: DMA transfer
atabus2 at wdc2 channel 0
ohci0 at pci2 dev 8 function 0: Apple Computer KeyLargo USB Controller (rev. 0x00)
ohci0: interrupting at irq 27
ohci0: OHCI version 1.0
usb3 at ohci0: USB revision 1.0
uhub3 at usb3
uhub3: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ohci1 at pci2 dev 9 function 0: Apple Computer KeyLargo USB Controller (rev. 0x00)
ohci1: interrupting at irq 28
ohci1: OHCI version 1.0
usb4 at ohci1: USB revision 1.0
uhub4 at usb4
uhub4: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub4: 2 ports with 2 removable, self powered
fwohci0 at pci2 dev 10 function 0: Texas Instruments TSB12LV26 IEEE 1394 Host Controller (rev. 0x00)
fwohci0: interrupting at irq 63
fwohci0: OHCI version 1.0 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:30:65:ff:fe:c6:c8:6c
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
uninorth2 at mainbus0
pci3 at uninorth2 bus 0
pci3: i/o space, memory space enabled
pchb2 at pci3 dev 11 function 0
pchb2: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
gem0 at pci3 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x01)
gem0: interrupting at irq 41
gem0: Ethernet address 00:30:65:c6:c8:6c, 10KB RX fifo, 4KB TX fifo
brgphy0 at gem0 phy 0: BCM5400 1000BASE-T media interface, rev. 7
brgphy0: using BCM5401 DSP patch
brgphy0: 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
uhci0: uhci_intr1
uhci0 regs: cmd=0081, sts=0000, intr=000f, frnum=04a7, flbase=10040000, sof=0040, portsc1=048a, portsc2=058a
uhci1: uhci_intr1
uhci1 regs: cmd=0081, sts=0000, intr=000f, frnum=0606, flbase=10086000, sof=0040, portsc1=05aa, portsc2=048a
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
ieee1394if0: bus manager 0 (me)
wd0 at atabus0 drive 0: <WDC WD1200JB-00EVA0>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 111 GB, 232581 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1 at atabus0 drive 1: <Maxtor 4W080H6>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 78167 MB, 158816 cyl, 16 head, 63 sec, 512 bytes/sect x 160086528 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66) (using DMA)
wd1(wdc0:0:1): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66) (using DMA)
atapibus0 at atabus1: 2 targets
uhci_root_ctrl_control type=0xa3 request=00
uhci_root_ctrl_control type=0x23 request=01
uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=1 feature=17
uhci_root_ctrl_control type=0x23 request=01
uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=1 feature=16
uhci_root_ctrl_control type=0xa3 request=00
uhci_root_ctrl_control type=0x23 request=01
uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=2 feature=17
uhci_root_ctrl_control type=0x23 request=01
uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=2 feature=16
uhci_root_ctrl_control type=0xa3 request=00
uhci_root_ctrl_control type=0x23 request=01
uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=1 feature=17
uhci_root_ctrl_control type=0x23 request=01
uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=1 feature=16
uhci_root_ctrl_control type=0xa3 request=00
uhci_root_ctrl_control type=0x23 request=01
uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=2 feature=17
uhci_root_ctrl_control type=0x23 request=01
uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=2 feature=16
cd0 at atapibus0 drive 0: <MATSHITADVD-ROM SR-8585F, , 2X26> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(wdc1:0:0): using PIO mode 4, DMA mode 2 (using DMA)
ehci0: handing over low speed device on port 3 to uhci1
uhci0: uhci_intr1
uhci0 regs: cmd=0081, sts=0000, intr=000f, frnum=0700, flbase=10040000, sof=0040, portsc1=0480, portsc2=0580
uhci1: uhci_intr1
uhci1 regs: cmd=0081, sts=0000, intr=000f, frnum=005f, flbase=10086000, sof=0040, portsc1=05a3, portsc2=0480
uhub2: port 3, device disappeared after reset
uhci_root_ctrl_control type=0xa3 request=00
uhci_root_ctrl_control type=0x23 request=01
uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=1 feature=16
uhci_root_ctrl_control type=0x23 request=03
ugen0 at uhub3 port 1ulpt0 at uhub4 port 1 configuration 1 interface 0
ugen0: Canon CanoScan, rev 2.00/3.06, addr 2

ulpt0: EPSON USB Printer, rev 1.10/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode
uhci port 1 reset, status0 = 0x078a
uhci port 1 reset, status1 = 0x05ab
uhci port 1 iteration 9, status = 0x05af
uhci port 1 iteration 8, status = 0x05a5
uhci port 1 reset, status2 = 0x05a5
uhci_root_ctrl_control type=0xa3 request=00
uhci_root_ctrl_control type=0x23 request=01
uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=1 feature=20
uhci_root_ctrl_control type=0xa3 request=00
uhci_open: pipe=0xd0260f00, addr=0, endpt=0 (1)
uhci_device_control type=0x00, request=0x05, wValue=0x0002, wIndex=0x0000 len=0, addr=0, endpt=0
uhci_device_request: before transfer
TD(0xd4af1fc0) at 1008afc0 = link=0x1008afa4 status=0x1c800000 token=0x00e0002d buffer=0x10045e00
  1008afa4<VF> 1c800000<ACTIVE,LS>,errcnt=3,actlen=1 pid=2d,addr=0,endpt=0,D=0,maxlen=8
TD(0xd4af1fa0) at 1008afa0 = link=0x00000001 status=0x1d800000 token=0xffe80069 buffer=0x00000000
  1<T> 1d800000<ACTIVE,IOC,LS>,errcnt=3,actlen=1 pid=69,addr=0,endpt=0,D=1,maxlen=0
uhci_add_ls_ctrl: sqh=0xd4af0f60
uhci_enter_ctl_q: follow from [0]
TD(0xd4a2efc0) at 10087fc0 = link=0x10088f62 status=0x02000000 token=0x00000000 buffer=0x00000000
  10088f62<Q> 2000000<ISO>,errcnt=0,actlen=1 pid=00,addr=0,endpt=0,D=0,maxlen=1
QH(0xd4a2ff60) at 10088f60: hlink=10088f82 elink=00000001
QH(0xd4a2ff60) at 10088f60: hlink=10088f82 elink=00000001
QH(0xd4a2ff80) at 10088f80: hlink=10089f62 elink=00000001
QH(0xd4af0f60) at 10089f60: hlink=10088fa2 elink=1008afc0
QH(0xd4a2ffc0) at 10088fc0: hlink=10088fe2 elink=00000001
QH(0xd4a2ffe0) at 10088fe0: hlink=00000001 elink=10087fe0
Enqueued QH:
QH(0xd4af0f60) at 10089f60: hlink=10088fa2 elink=1008afc0
TD(0xd4af1fc0) at 1008afc0 = link=0x1008afa4 status=0x1c800000 token=0x00e0002d buffer=0x10045e00
  1008afa4<VF> 1c800000<ACTIVE,LS>,errcnt=3,actlen=1 pid=2d,addr=0,endpt=0,D=0,maxlen=8
TD(0xd4af1fa0) at 1008afa0 = link=0x00000001 status=0x1d800000 token=0xffe80069 buffer=0x00000000
  1<T> 1d800000<ACTIVE,IOC,LS>,errcnt=3,actlen=1 pid=69,addr=0,endpt=0,D=1,maxlen=0
uhub5 at uhub3 port 2
uhub5: Philips Semiconductors hub, class 9/0, rev 1.10/1.10, addr 3
uhub5: 3 ports with 3 removable, self powered
uhub6 at uhub5 port 1
uhub6: Mitsumi Electric Hub in Apple Extended USB Keyboard, class 9/0, rev 1.10/1.22, addr 4
uhub6: 3 ports with 2 removable, bus powered
uhidev0 at uhub6 port 1 configuration 1 interface 0
uhidev0: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22, addr 5, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd0 at ukbd0 mux 1
wskbd0: connecting to wsdisplay0
uhidev1 at uhub6 port 1 configuration 1 interface 1
uhidev1: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22, addr 5, iclass 3/0
uhidev1: 3 report ids
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0
uhidev2 at uhub6 port 2 configuration 1 interface 0
uhidev2: Fujitsu Takamisawa Component Apple Optical USB Mouse, rev 1.10/1.06, addr 6, iclass 3/1
ums0 at uhidev2: 1 button
wsmouse0 at ums0 mux 0
uhci_timeout: uxfer=0xd0202b00
uhci_timeout_task: xfer=0xd0202b00
uhci_abort_xfer: xfer=0xd0202b00, status=15
uhci_abort_xfer: stop ii=0xd0202b6c
uhci_abort_xfer: tsleep
uhci1: uhci_softintr (0)
uhci_check_intr: ii=0xd0202b6c
uhci_check_intr: aborted xfer=0xd0202b00
uhci_abort_xfer: callback
uhci_remove_ls_ctrl: sqh=0xd4af0f60
uhci_find_prev_qh: pqh=0xd4a2ff80 sqh=0xd4af0f60
uhci_device_ctrl_done: length=0
usb_new_device: set address 2 failed
uhub_explore: usb_new_device failed, error=SET_ADDR_FAILED
uhub1: device problem, disabling port 1
uhci_root_ctrl_control type=0x23 request=01
uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=1 feature=1
uhci_root_ctrl_control type=0xa3 request=00
uhci_root_ctrl_control type=0xa3 request=00
uhci_root_ctrl_control type=0xa3 request=00
uhidev3 at uhub5 port 2 configuration 1 interface 0
uhidev3: WACOM CTE-430-UV3.1-4, rev 1.10/3.14, addr 7, iclass 3/1
uhidev3: 3 report ids
ums1 at uhidev3 reportid 1: 3 buttons and Z dir.
wsmouse1 at ums1 mux 0
uhid2 at uhidev3 reportid 2: input=7, output=0, feature=2
uhid3 at uhidev3 reportid 3: input=0, output=0, feature=2
uhidev4 at uhub5 port 3 configuration 1 interface 0
uhidev4: Apple Computer Studio Display, rev 1.00/6.49, addr 8, iclass 3/0
uhidev4: 228 report ids
uhid4 at uhidev4 reportid 1: input=0, output=0, feature=1
uhid5 at uhidev4 reportid 2: input=0, output=0, feature=128
uhid6 at uhidev4 reportid 18: input=0, output=0, feature=2
uhid7 at uhidev4 reportid 32: input=0, output=0, feature=2
uhid8 at uhidev4 reportid 34: input=0, output=0, feature=2
uhid9 at uhidev4 reportid 36: input=0, output=0, feature=2
uhid10 at uhidev4 reportid 40: input=0, output=0, feature=2
uhid11 at uhidev4 reportid 48: input=0, output=0, feature=2
uhid12 at uhidev4 reportid 50: input=0, output=0, feature=2
uhid13 at uhidev4 reportid 56: input=0, output=0, feature=2
uhid14 at uhidev4 reportid 64: input=0, output=0, feature=2
uhid15 at uhidev4 reportid 66: input=0, output=0, feature=2
uhid16 at uhidev4 reportid 68: input=0, output=0, feature=2
uhid17 at uhidev4 reportid 174: input=0, output=0, feature=2
uhid18 at uhidev4 reportid 176: input=0, output=0, feature=1
uhid19 at uhidev4 reportid 214: input=0, output=0, feature=1
uhid20 at uhidev4 reportid 224: input=0, output=0, feature=2
uhid21 at uhidev4 reportid 226: input=0, output=0, feature=2
uhid22 at uhidev4 reportid 228: input=1, output=0, feature=0
boot device: wd0
root on wd0a dumps on wd0b
cpu1: started
gem0: link state changed to DOWN
gem0: link state changed to UP
ffs_snapshot_mount: non-snapshot inode 16384
ffs_snapshot_mount: non-snapshot inode 64