From owner-freebsd-bugs@freebsd.org Sun Nov 8 18:56:27 2015 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 54518A29A83 for ; Sun, 8 Nov 2015 18:56:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3FFE918FD for ; Sun, 8 Nov 2015 18:56:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tA8IuRbD080714 for ; Sun, 8 Nov 2015 18:56:27 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 204378] xhci fails on Cavium ThunderX Date: Sun, 08 Nov 2015 18:56:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Nov 2015 18:56:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204378 Bug ID: 204378 Summary: xhci fails on Cavium ThunderX Product: Base System Version: 11.0-CURRENT Hardware: arm64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: emaste@freebsd.org ThunderX XHCI requires MSI I tried booting with: hw.usb.xhci.use_polling=0 hw.usb.xhci.debug=255 and I see: xhci0: mem 0x868000000000-0x8680001fffff,0x868000200000-0x8680002fffff at device 16.0 on pci0^M xhci_init: ^M xhci_init: CAPLENGTH=0x20^M xhci_init: RUNTIMEOFFSET=0x440^M xhci_init: DOOROFFSET=0x480^M xhci_init: xHCI version = 0x0100^M xhci_init: HCS0 = 0x0220f665^M xhci0: 64 bytes context size, 64-bit DMA^M xhci_init: Max slots: 64^M xhci_init: HCS2=0x0c0000f1^M xhci_init: Max scratch: 1^M xhci0: Could not allocate IRQ^M xhci_halt_controller: ^M device_attach: xhci0 attach returned 6^M xhci0: mem 0x869000000000-0x8690001fffff,0x869000200000-0x8690002fffff at device 17.0 on pci0^M xhci_init: ^M xhci_init: CAPLENGTH=0x20^M xhci_init: RUNTIMEOFFSET=0x440^M xhci_init: DOOROFFSET=0x480^M xhci_init: xHCI version = 0x0100^M xhci_init: HCS0 = 0x0220f665^M xhci0: 64 bytes context size, 64-bit DMA^M xhci_init: Max slots: 64^M xhci_init: HCS2=0x0c0000f1^M xhci_init: Max scratch: 1^M xhci0: Could not allocate IRQ^M xhci_halt_controller: ^M device_attach: xhci0 attach returned 6^M I tried booting with xhci polling: set hw.usb.xhci.use_polling=1 set hw.usb.xhci.debug=255 and I see: xhci0: mem 0x868000000000-0x8680001fffff,0x868000200000-0x8680002fffff at device 16.0 on pci0^M xhci_init: ^M xhci_init: CAPLENGTH=0x20^M xhci_init: RUNTIMEOFFSET=0x440^M xhci_init: DOOROFFSET=0x480^M xhci_init: xHCI version = 0x0100^M xhci_init: HCS0 = 0x0220f665^M xhci0: 64 bytes context size, 64-bit DMA^M xhci_init: Max slots: 64^M xhci_init: HCS2=0x0c0000f1^M xhci_init: Max scratch: 1^M xhci0: Could not allocate IRQ^M xhci0: Interrupt polling at 1000Hz^M xhci_interrupt: real interrupt (status=0x00000001)^M xhci_interrupt: host controller halted^M xhci_halt_controller: ^M xhci_start_controller: ^M xhci_start_controller: CONFIG=0x00000000 -> 0x00000040^M xhci_start_controller: ERSTSZ=0x00000000 -> 0x00000001^M xhci_start_controller: ERDP(0)=0x0000000007600080^M xhci_start_controller: ERSTBA(0)=0x0000000007600000^M xhci_start_controller: CRCR=0x0000000007600d80^M usbus0 on xhci0^M xhci0: usbpf: Attached^M random: harvesting attach, 8 bytes (4 bits) from usbus0^M random: harvesting attach, 8 bytes (4 bits) from xhci0^M xhci1: mem 0x869000000000-0x8690001fffff,0x869000200000-0x8690002fffff at device 17.0 on pci0^M xhci_init: ^M xhci_init: CAPLENGTH=0x20^M xhci_init: RUNTIMEOFFSET=0x440^M xhci_init: DOOROFFSET=0x480^M xhci_init: xHCI version = 0x0100^M xhci_init: HCS0 = 0x0220f665^M xhci1: 64 bytes context size, 64-bit DMA^M xhci_init: Max slots: 64^M xhci_init: HCS2=0x0c0000f1^M xhci_init: Max scratch: 1^M xhci1: Could not allocate IRQ^M xhci1: Interrupt polling at 1000Hz^M xhci_interrupt: real interrupt (status=0x00000001)^M xhci_interrupt: host controller halted^M xhci_halt_controller: ^M xhci_start_controller: ^M xhci_start_controller: CONFIG=0x00000000 -> 0x00000040^M xhci_start_controller: ERSTSZ=0x00000000 -> 0x00000001^M xhci_start_controller: ERDP(0)=0x00000000066cd080^M xhci_start_controller: ERSTBA(0)=0x00000000066cd000^M xhci_start_controller: CRCR=0x00000000066cdd80^M usbus1 on xhci1^M xhci1: usbpf: Attached^M random: harvesting attach, 8 bytes (4 bits) from usbus1^M random: harvesting attach, 8 bytes (4 bits) from xhci1^M and then every few seconds: xhci_set_hw_power: xhci_set_hw_power: xhci_set_hw_power: xhci_set_hw_power: xhci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0001 xhci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0001 xhci_roothub_exec: UR_GET_STATUS i=1 xhci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0001 xhci_roothub_exec: port status=0x000002a0 xhci_roothub_exec: UR_GET_STATUS i=1 xhci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0002 xhci_roothub_exec: port status=0x000002a0 xhci_roothub_exec: UR_GET_STATUS i=2 xhci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0002 xhci_roothub_exec: port status=0x000002a0 xhci_roothub_exec: UR_GET_STATUS i=2 xhci_roothub_exec: UR_GET_STATUS i=1 xhci_roothub_exec: port status=0x000002a0 xhci_roothub_exec: port status=0x000002a0 xhci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0001 xhci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0002 xhci_roothub_exec: UR_GET_STATUS i=1 xhci_roothub_exec: UR_GET_STATUS i=2 xhci_roothub_exec: port status=0x000002a0 xhci_roothub_exec: port status=0x000002a0 xhci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0002 xhci_roothub_exec: UR_GET_STATUS i=2 xhci_roothub_exec: port status=0x000002a0 pciconf -lvc shows: none1@pci0:0:16:0: class=0x0c0330 card=0xa11b177d chip=0xa01b177d rev=0x01 hdr=0x00 vendor = 'Cavium, Inc.' device = 'THUNDERX xHCI USB Controller' class = serial bus subclass = USB cap 10[70] = PCI-Express 2 endpoint max data 128(128) link x0(x0) cap 11[b0] = MSI-X supports 4 messages Table in map 0x20[0x0], PBA in map 0x20[0xf0000] ecap 000e[100] = ARI 1 ecap 000b[108] = Vendor 1 ID 160 none2@pci0:0:17:0: class=0x0c0330 card=0xa11b177d chip=0xa01b177d rev=0x01 hdr=0x00 vendor = 'Cavium, Inc.' device = 'THUNDERX xHCI USB Controller' class = serial bus subclass = USB cap 10[70] = PCI-Express 2 endpoint max data 128(128) link x0(x0) cap 11[b0] = MSI-X supports 4 messages Table in map 0x20[0x0], PBA in map 0x20[0xf0000] ecap 000e[100] = ARI 1 ecap 000b[108] = Vendor 1 ID 160 -- You are receiving this mail because: You are the assignee for the bug.