tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: USB 3.0 xhci questions



Hi,

From: Takahiro HAYASHI <t.hash425%gmail.com@localhost>, Date: Tue, 12 Aug 2014 
02:14:43 +0900

> Hello,
> 
> On 08/11/14 21:51, Ryo ONODERA wrote:
>>> Do these xHCIs work on other OS?
>>> If yes, hardware seems good.
>>
>> Arch Linux (archlinux-2014.08.01.iso; Linux 3.15.7) works fine
>> on both machines. SuperSpeed USB device is detected and attached to
>> xhci.
>> Hardwares have no problem.
> 
> Thanks for checking.
> 
> I have no good idea to explain this.
> It looks like xhci_intr is called even though
> no interrupters trigger.
> 
> I have some questions.
> 
> 1) Do you have PCI_INTR_FIXUP in your kernel config?

I had no PCI_INTR_FIXUP in kernel config.
I have added PCI_INTR_FIXUP to my kernel config, and no effects.

> 2) Is the port enabled -- has XHCI_PS_PED in PORTSC?

All PORTSC is 0x2a0.
It means port is disabled?

Thank you.

> I think address of USBSTS is correct because
> xhci_init returns normally and xhci is configured.
> 
> 
> For comparison here is dmesg from my testbed:
> 
> xhci0 at pci5 dev 0 function 0: vendor 0x1033 product 0x0194
> (rev. 0x04)
> xhci0: interrupting at ioapic0 pin 21
> xhci_init
> xhci0: ac64 1 ctxsz 32
> xhci0: xECP 500
> xhci0: ECR 500: 00000401
> xhci0: ECR 510: 03000402
> xhci0: SP: 03000402 20425355 00000201
> xhci0: ECR 520: 02000002
> xhci0: SP: 02000002 20425355 00000203
> xhci0: PAGESIZE 0x00000001
> xhci0: sc_pgsz 0x00001000
> xhci0: sc_maxslots 0x00000020
> xhci0: sc_maxspbuf 0
> xhci0: eventst: NORMAL_COMPLETION 0000000002f15fc0 0xffff800013028fc0
> 1000
> xhci0: dcbaa: NORMAL_COMPLETION 0000000002f17000 0xffff800013029000
> 1000
> xhci0: USBCMD 00000005
> usb5 at xhci0: USB revision 2.0
> usb5: WARNING: power management not supported
> 
> and i got:
> 
> xhci0: xhci_intr1 USBSTS 00000018
> xhci0: xhci_intr1 USBSTS 00000000
> xhci0: xhci_intr1 IMAN0 00000003
> xhci0: xhci_intr1 IMAN0 00000002
> xhci0: xhci_intr1 USBSTS 00000000
> xhci0: port 1 status change
> 
> 
> -- 
> t-hash

--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Home | Main Index | Thread Index | Old Index