Re: debugging failed USB3 device attachment

2012-07-15 Thread Hans Petter Selasky
On Sunday 08 July 2012 01:21:51 Aragon Gouveia wrote:
 Hi Hans,
 
 On 07/06/12 08:54, Hans Petter Selasky wrote:
  There is some magic to switch USB ports to USB 3.0 which is not in
  FreeBSD yet. They have it in Linux, and you might be able to port that
  code to BSD and try.
 
 I know some C, but very little on USB architecture.  I'm curious enough
 to try, but a bit more direction would be helpful if you can spare some. :)



 
  Also, can you post output from pciconf -lv ?
 
 Sure, and pardon my delay:
 
 http://pastebin.com/Gxgv7W2F
 
 BTW, is this behaviour BIOS related?  I recently setup another machine
 that had Intel's Z77 USB3 controller, and I don't remember having these
 issues when attaching the same USB3 device...
 

Hi,

XHCI is very new, and there might be hardware differences out there.

BTW: The USB 3.0 switching found in Linux is for Pantherpoint only:

See /drivers/usb/host/pci-quirks.c in a recent Linux source code tree:

bool usb_is_intel_switchable_xhci(struct pci_dev *pdev)
{
return pdev-class == PCI_CLASS_SERIAL_USB_XHCI 
pdev-vendor == PCI_VENDOR_ID_INTEL 
pdev-device == PCI_DEVICE_ID_INTEL_PANTHERPOINT_XHCI;
}
EXPORT_SYMBOL_GPL(usb_is_intel_switchable_xhci);

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: debugging failed USB3 device attachment

2012-07-07 Thread Aragon Gouveia

Hi Hans,

On 07/06/12 08:54, Hans Petter Selasky wrote:

There is some magic to switch USB ports to USB 3.0 which is not in FreeBSD
yet. They have it in Linux, and you might be able to port that code to BSD and
try.


I know some C, but very little on USB architecture.  I'm curious enough 
to try, but a bit more direction would be helpful if you can spare some. :)




Also, can you post output from pciconf -lv ?


Sure, and pardon my delay:

http://pastebin.com/Gxgv7W2F

BTW, is this behaviour BIOS related?  I recently setup another machine 
that had Intel's Z77 USB3 controller, and I don't remember having these 
issues when attaching the same USB3 device...



Thanks,
Aragon

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: debugging failed USB3 device attachment

2012-07-06 Thread Hans Petter Selasky
On Friday 06 July 2012 01:36:15 Aragon Gouveia wrote:
 Hi,
 
 I have some hardware with a USB3 controller that is detected by xhci(4),
 but when I try attach a USB3 device, it fails to attach to a USB3 bus,
 and after timing out it connects to a USB2 bus.  Here's a verbose dmesg
 with xhci debugging enabled from when I plug the device in:
 
 http://pastebin.com/nM8nQFg3
 
 I've captured xhci(4)'s verbose boot time dmesg output here:
 
 http://pastebin.com/EA3k7RLE
 
 The full verbose boot dmesg is at:
 
 http://pastebin.com/Y0qKiDZg
 
 And a regular boot dmesg is at:
 
 http://pastebin.com/e3tS8eS4
 
 I've tried tweaking a handful of BIOS options like XHCI handoff and USB
 transfer timeout thresholds, but nothing seems to help.  Have already
 upgraded to the latest BIOS available too.  This FreeBSD 9.0-STABLE
 build is about 1 week old.
 
 Any help greatly appreciated!
 

Hi,

There is some magic to switch USB ports to USB 3.0 which is not in FreeBSD 
yet. They have it in Linux, and you might be able to port that code to BSD and 
try.

Also, can you post output from pciconf -lv ?

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


debugging failed USB3 device attachment

2012-07-05 Thread Aragon Gouveia

Hi,

I have some hardware with a USB3 controller that is detected by xhci(4), 
but when I try attach a USB3 device, it fails to attach to a USB3 bus, 
and after timing out it connects to a USB2 bus.  Here's a verbose dmesg 
with xhci debugging enabled from when I plug the device in:


http://pastebin.com/nM8nQFg3

I've captured xhci(4)'s verbose boot time dmesg output here:

http://pastebin.com/EA3k7RLE

The full verbose boot dmesg is at:

http://pastebin.com/Y0qKiDZg

And a regular boot dmesg is at:

http://pastebin.com/e3tS8eS4

I've tried tweaking a handful of BIOS options like XHCI handoff and USB 
transfer timeout thresholds, but nothing seems to help.  Have already 
upgraded to the latest BIOS available too.  This FreeBSD 9.0-STABLE 
build is about 1 week old.


Any help greatly appreciated!


Thanks,
Aragon


___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org