From owner-freebsd-usb@FreeBSD.ORG Fri Jun 15 17:53:15 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A819B16A41F for ; Fri, 15 Jun 2007 17:53:15 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: from smtp806.mail.ird.yahoo.com (smtp806.mail.ird.yahoo.com [217.146.188.66]) by mx1.freebsd.org (Postfix) with SMTP id 33AD213C43E for ; Fri, 15 Jun 2007 17:53:14 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: (qmail 61647 invoked from network); 15 Jun 2007 17:53:13 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=Received:X-YMail-OSG:From:To:Subject:Date:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=N8/8dHNe+vluuJXLgLbv++HGW4gwRIidNItCBOhxHZNzE0pxgHuj6pFNR1cB25iyDJAtyjrlzN7A+NQo6+a0kvmEFDFteEAvPRVfw5FqMJs/NlOXqum6u2AUFQdkTLE9urU2TVY896fgH7gOYWUM6zfR4BZaQ4yHBS7LPrnZals= ; Received: from unknown (HELO ?192.168.0.22?) (thomas.sparrevohn@btinternet.com@81.159.89.57 with login) by smtp806.mail.ird.yahoo.com with SMTP; 15 Jun 2007 17:53:13 -0000 X-YMail-OSG: 78xnseYVM1l9dToL0Ramx0fB2xwjr25ijM2EO_UtetyWHEtBOQ3TmRqW571nv8UssrhECkHs3g-- From: Thomas Sparrevohn To: freebsd-usb@freebsd.org Date: Fri, 15 Jun 2007 18:53:12 +0100 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Message-Id: <200706151853.12759.Thomas.Sparrevohn@btinternet.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Advise on debugging ohci? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 17:53:15 -0000 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: 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: 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: 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