Advise on debugging ohci?

Thomas Sparrevohn Thomas.Sparrevohn at btinternet.com
Fri Jun 15 17:53:15 UTC 2007



Hi 

I am currently trying to pin down a problem with the native USB stack on the AMD64 -
when I am booting in 64bit mode with the MCP55 USB stack it fails in usb_attach - so
far the only clear error I have found is that the first Unit is not found correctly - below is the 32BIT
debug output  

ohci0: <OHCI (generic) USB controller> mem 0xdfffc000-0xdfffcfff irq 21 at device 11.0 on pci0
ohci0: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xdfffc000
ioapic0: routing intpin 21 (PCI IRQ 21) to vector 49
ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
ohci_init: start
usb0: OHCI version 1.0, legacy support
ohci_alloc_sed: allocating chunk
ohci_init: SMM active, request owner change
usb0: SMM does not respond, resetting
usb0: resetting
ohci_dumpregs: rev=0x00000110 control=0x000006bf command=0x00000000
               intrstat=0x00000004 intre=0x8000004a intrd=0x8000004a
               hcca=0x00287000 percur=0x00000000 ctrlhd=0x00286fe0
               ctrlcur=0x00000000 bulkhd=0x00286fc0 bulkcur=0x00000000
               done=0x00000000 fmival=0xa7782edf fmrem=0x80001f8d
               fmnum=0x00000011 perst=0x00002a2f lsthrs=0x00000628
               desca=0x0100120a descb=0x00000000 stat=0x00000000
               port1=0x00000100 port2=0x00000100
         HCCA: frame_number=0x0013 done_head=0x00000000
usbd_match
usbd_match
usb0: <OHCI (generic) USB controller> on ohci0
usbd_attach
usb0: USB revision 1.0
usbd_new_device bus=0xc5b66000 port=0 depth=0 speed=2
ohci_open: pipe=0xc5b5c280, addr=0, endpt=0 (0)
ohci_root_ctrl_control type=0x80 request=06
ohci_root_ctrl_control wValue=0x0100
usbd_new_device: adding unit addr=1, rev=100, class=9, subclass=0, protocol=0, maxpacket=64, len=18, speed=2
ohci_root_ctrl_close

On the AMD64 version the ohci the usbd_new_device seems to get the wrong information

ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
ohci_init: start
usb0: OHCI version 1.0, legacy support
ohci_alloc_sed: allocating chunk
ohci_init: SMM active, request owner change
usb0: SMM does not respond, resetting
usb0: resetting
ohci_dumpregs: rev=0x00000110 control=0x000006bf command=0x00000000
               intrstat=0x00000004 intre=0x8000004a intrd=0x8000004a
               hcca=0x95853000 percur=0x00000000 ctrlhd=0x95852fe0
               ctrlcur=0x00000000 bulkhd=0x95852fc0 bulkcur=0x00000000
               done=0x00000000 fmival=0xa7782edf fmrem=0x8000207b
               fmnum=0x00000011 perst=0x00002a2f lsthrs=0x00000628
               desca=0x0100120a descb=0x00000000 stat=0x00000000
               port1=0x00000100 port2=0x00000100
         HCCA: frame_number=0x0013 done_head=0x00000000
usbd_match
usbd_match
usb0: <OHCI (generic) USB controller> on ohci0
usbd_attach
usb0: USB revision 1.0
usbd_new_device bus=0xffffffff80e48000 port=0 depth=0 speed=2
ohci_open: pipe=0xffffff015f34b200, addr=0, endpt=0 (0)
ohci_root_ctrl_control type=0x80 request=06
ohci_root_ctrl_control wValue=0x0100
usbd_new_device: adding unit addr=1, rev=00, class=0, subclass=0, protocol=0, maxpacket=0, len=0, speed=2
usbd_new_device: illegal descriptor 0
usbd_remove_device: 0xffffff015f34b300
ohci_root_ctrl_close

When I compile with DIAGNOSTICS enabled on the amd64 - The system panics with "No data" or something like that 
at that point - does anybody have any suggestions? - With the HPS stack everything works fine - so its not the devices

Regards
	Thomas 


More information about the freebsd-usb mailing list