You are not logged in.

#1 2015-04-11 11:07:56

stri
Member
Registered: 2014-06-09
Posts: 62

[SOLVED] usb 3.0 pci card not working

Hi,

I have a PCIE card with two USB 3.0 ports (ASM1042, see lspci output below). The card seems to be recognized and the driver loaded, but when I attach a usb device, nothing happens (e.g. dmesg doesn't report that a device was attached). All other usb ports work fine. What should I do?

[root@kistn2 stefan]# lspci|grep -i usb
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 04)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 04)
06:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller

The ASMedia is the problematic one.

[root@kistn2 stefan]# lspci -v |grep -12 -i usb

...

06:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller (prog-if 30 [XHCI])
        Subsystem: Device 174c:2104
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at f7100000 (64-bit, non-prefetchable) [size=32K]
        Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
        Capabilities: [68] MSI-X: Enable+ Count=8 Masked-
        Capabilities: [78] Power Management version 3
        Capabilities: [80] Express Legacy Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci

...
[root@kistn2 stefan]# lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 0846:9030 NetGear, Inc. WNA1100 Wireless-N 150 [Atheros AR9271]
Bus 003 Device 003: ID 045e:0745 Microsoft Corp. Nano Transceiver v1.0 for Bluetooth
Bus 003 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I noticed that 5 new IRQs are created after I attach the PCIE card (27-31, see below).  Is that normal? I have no clue about this stuff. The other usb ports interrupt on 17,23,25 (usb2.0, usb2.0, usb3.0 respectively).

[root@kistn2 stefan]# cat /proc/interrupts 
           CPU0       CPU1       CPU2       CPU3       
  0:         20          0          0          0   IO-APIC-edge      timer
  1:          0          0          0          2   IO-APIC-edge      i8042
  8:          1          0          0          0   IO-APIC-edge      rtc0
  9:          3          0          0          0   IO-APIC-fasteoi   acpi
 12:          3          0          1          0   IO-APIC-edge      i8042
 17:        238        177         87         27   IO-APIC  17-fasteoi   ehci_hcd:usb1, firewire_ohci, snd_hda_intel
 23:         27          0          1          5   IO-APIC  23-fasteoi   ehci_hcd:usb2
 25:     718499      15770      16001      12754   PCI-MSI-edge      xhci_hcd
 26:      14367       4866       4552       2497   PCI-MSI-edge      0000:00:1f.2
 27:          0          0          0          0   PCI-MSI-edge      xhci_hcd
 28:          0          0          0          0   PCI-MSI-edge      xhci_hcd
 29:          0          0          0          0   PCI-MSI-edge      xhci_hcd
 30:          0          0          0          0   PCI-MSI-edge      xhci_hcd
 31:          0          0          0          0   PCI-MSI-edge      xhci_hcd
 32:         22          1          0          0   PCI-MSI-edge      mei_me
 33:        769         19         22         16   PCI-MSI-edge      eno1
 34:        268         13         12         37   PCI-MSI-edge      snd_hda_intel

...
[root@kistn2 stefan]# dmesg|grep 'xhci\|ehci'
[    0.375454] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.375566] ehci-pci: EHCI PCI platform driver
[    0.375667] ehci-pci 0000:00:1a.0: EHCI Host Controller
[    0.375671] ehci-pci 0000:00:1a.0: new USB bus registered, assigned bus number 1
[    0.375681] ehci-pci 0000:00:1a.0: debug port 2
[    0.379589] ehci-pci 0000:00:1a.0: cache line size of 64 is not supported
[    0.379601] ehci-pci 0000:00:1a.0: irq 17, io mem 0xf7338000
[    0.387726] ehci-pci 0000:00:1a.0: USB 2.0 started, EHCI 1.00
[    0.388003] ehci-pci 0000:00:1d.0: EHCI Host Controller
[    0.388007] ehci-pci 0000:00:1d.0: new USB bus registered, assigned bus number 2
[    0.388018] ehci-pci 0000:00:1d.0: debug port 2
[    0.391922] ehci-pci 0000:00:1d.0: cache line size of 64 is not supported
[    0.391931] ehci-pci 0000:00:1d.0: irq 23, io mem 0xf7337000
[    0.401101] ehci-pci 0000:00:1d.0: USB 2.0 started, EHCI 1.00
[    0.401349] xhci_hcd 0000:00:14.0: xHCI Host Controller
[    0.401353] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 3
[    0.401443] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported
[    0.403992] xhci_hcd 0000:00:14.0: xHCI Host Controller
[    0.403994] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 4
[    0.404898] xhci_hcd 0000:06:00.0: xHCI Host Controller
[    0.404901] xhci_hcd 0000:06:00.0: new USB bus registered, assigned bus number 5
[    0.464501] xhci_hcd 0000:06:00.0: xHCI Host Controller
[    0.464515] xhci_hcd 0000:06:00.0: new USB bus registered, assigned bus number 6
[    0.694602] usb 1-1: new high-speed USB device number 2 using ehci-pci
[    0.707943] usb 2-1: new high-speed USB device number 2 using ehci-pci
[    0.761296] usb 3-5: new full-speed USB device number 2 using xhci_hcd
[    1.098107] usb 3-6: new full-speed USB device number 3 using xhci_hcd
[  190.653951] usb 3-7: new high-speed USB device number 4 using xhci_hcd

Thanks a lot,
Stefan

Last edited by stri (2015-04-12 05:29:29)

Offline

#2 2015-04-11 12:06:19

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [SOLVED] usb 3.0 pci card not working

Have you tried to boot with the card already plugged in? Maybe it's just the hotplugging that does not work.
There's a thread from 2012 about this card, only one reply.
https://bbs.archlinux.org/viewtopic.php?id=139421

Offline

#3 2015-04-11 13:02:21

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] usb 3.0 pci card not working

I can only remember a few things that might help:
- Make sure you plug the molex power connector, I suspect some cards might not work properly if you don't connect it.
- If the previous suggestion doesn't work, try updating the firmware. You can find an update(1,2) here[1]. I suppose that to do the update you will have to manage to run it on windows (maybe try some of those bootable windows pe cds).

I have a pcie usb3 card (nec chipset) on an old desktop machine so here is a datapoint regarding that:

> dmesg | egrep -i "ehci|xhci"
[    0.884783] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.896921] ehci-pci: EHCI PCI platform driver
[    0.910722] xhci_hcd 0000:04:00.0: xHCI Host Controller
[    0.910734] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 2
[    0.917256] xhci_hcd 0000:04:00.0: xHCI Host Controller
[    0.917262] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 3
[    0.939583] ehci-pci 0000:00:02.1: EHCI Host Controller
[    0.939592] ehci-pci 0000:00:02.1: new USB bus registered, assigned bus number 4
[    0.939602] ehci-pci 0000:00:02.1: debug port 1
[    0.939630] ehci-pci 0000:00:02.1: cache line size of 32 is not supported
[    0.939650] ehci-pci 0000:00:02.1: irq 22, io mem 0xfeb00000
[    0.946719] ehci-pci 0000:00:02.1: USB 2.0 started, EHCI 1.00
[    1.306690] usb 4-8: new high-speed USB device number 3 using ehci-pci
[    1.343939] usb 3-2: new SuperSpeed USB device number 2 using xhci_hcd
[    1.574032] ehci-pci 0000:01:08.2: EHCI Host Controller
[    1.574041] ehci-pci 0000:01:08.2: new USB bus registered, assigned bus number 6
[    1.574097] ehci-pci 0000:01:08.2: irq 16, io mem 0xfeafd000
[    1.703357] ehci-pci 0000:01:08.2: USB 2.0 started, EHCI 0.95
[    2.010020] usb 6-3: new high-speed USB device number 2 using ehci-pci
[   13.133388] usb 6-3: reset high-speed USB device number 2 using ehci-pci

> cat /proc/interrupts
           CPU0       
  0:         53   IO-APIC-edge      timer
  1:        238   IO-APIC-edge      i8042
  6:          2   IO-APIC-edge      floppy
  7:          2   IO-APIC-edge      parport0
  8:          0   IO-APIC-edge      rtc0
  9:          0   IO-APIC-fasteoi   acpi
 14:        647   IO-APIC-edge      pata_amd
 15:       2480   IO-APIC-edge      pata_amd
 16:     574627   IO-APIC  16-fasteoi   ehci_hcd:usb6
 17:        462   IO-APIC  17-fasteoi   snd_emu10k1
 18:          2   IO-APIC  18-fasteoi   ohci_hcd:usb5
 19:          2   IO-APIC  19-fasteoi   firewire_ohci, ohci_hcd:usb7
 20:          0   IO-APIC  20-fasteoi   sata_nv
 21:          0   IO-APIC  21-fasteoi   sata_nv
 22:       4336   IO-APIC  22-fasteoi   ehci_hcd:usb4
 23:       4782   IO-APIC  23-fasteoi   ohci_hcd:usb1
 28:      45222   PCI-MSI-edge      radeon
 29:     238202   PCI-MSI-edge      xhci_hcd
 30:          0   PCI-MSI-edge      xhci_hcd
 31:          1   PCI-MSI-edge      eth0
NMI:         23   Non-maskable interrupts
LOC:     231819   Local timer interrupts
SPU:          0   Spurious interrupts
PMI:         23   Performance monitoring interrupts
IWI:          0   IRQ work interrupts
RTR:          0   APIC ICR read retries
RES:          0   Rescheduling interrupts
CAL:          0   Function call interrupts
TLB:          0   TLB shootdowns
TRM:          0   Thermal event interrupts
THR:          0   Threshold APIC interrupts
MCE:          0   Machine check exceptions
MCP:          5   Machine check polls
HYP:          0   Hypervisor callback interrupts
ERR:          1
MIS:          0

> lsusb
Bus 003 Device 002: ID 8564:1000  
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 083a:e503 Accton Technology Corp. Arcadyan WN4501 802.11b/g
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 003: ID 13fe:1d00 Kingston Technology Company Inc. DataTraveler 2.0 1GB/4GB Flash Drive / Patriot Xporter 4GB Flash Drive
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

(1) might be more a more recent fw than your card has or it might be older
(2) you may be able to find fw updates in the pages of other manufacturers that sell similar cards, but there is always the risk that they will brick the card

[1] http://www.station-drivers.com/index.ph … on-130201/


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2015-04-12 02:32:25

stri
Member
Registered: 2014-06-09
Posts: 62

Re: [SOLVED] usb 3.0 pci card not working

Thanks for your help!

You are right, there is a socket for power supply on the card. I didn't even see that (because I didn't expect it, but it's in the manual of the card, which I should have read...). I haven't found out yet where to connect that to, I guess I'd have to look at the power supply assembly of my computer and attach a cable.

Also, as you point out, the firmware may be old, and maybe with a new one it doesn't need the external power any more?

Another option would by a new card....

Thanks again!

Offline

#5 2015-04-12 02:48:58

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 609

Re: [SOLVED] usb 3.0 pci card not working

stri wrote:

Also, as you point out, the firmware may be old, and maybe with a new one it doesn't need the external power any more?

USB 3.0 has 0.9 or 1.0 A current output (USB 2.0 had 0.5). If there is molex for supply power than firmware changes nothing - it is for an example, for 3.5 hdd drives that needs external power supply when connected trough usb. This card is for pcie-x1? If i'm not wrong and remember correctly, pcie-x1 has 10W-25W power output but this is different for size of pcie card (small has 10W, bigger has 16, and "full" can setup themselves for 25W) so in my opinion, power is needed. I have usb 3.0 in back of my motherboard and in front from front panel (AKASA bay) and it is connected by 21 big pin cable that takes current directly from motherboard.

Last edited by firekage (2015-04-12 02:51:36)

Offline

#6 2015-04-12 05:27:24

stri
Member
Registered: 2014-06-09
Posts: 62

Re: [SOLVED] usb 3.0 pci card not working

Ah, very interesting. Yes, it's pcie-x1. So I need a power supply for the card, more specifically an ATX FDD (Floppy disk drive) power supply. The bad news is that I don't see such a cable exiting from the main power supply assembly.  In fact I don't see any free power cable (it's a small-form-factor computer, maybe that's why).

The good news is that the computer has a CDROM drive which I never use, which is powered by a square 4-Pin molex socket attached to the motherboard. From what I've read so far, I could convert that to FDD power supply. FDD has a 5 and 12 Volt cable, and SATA has 3.3, 5 and 12 Volts. So the 3.3 just wouldn't get used, right? See also here

http://www.tomshardware.com/reviews/pow … 61-11.html

Now I just have to get the cables. Unfortunately I haven't found a cable the converts 4-pin square molex to fdd directly, but I could convert the square to a flat one, and then with another cable from flat to FDD.

I think that's it, I'll mark it as solved. Thanks a lot!!

Stefan

Offline

#7 2015-04-12 06:09:06

stri
Member
Registered: 2014-06-09
Posts: 62

Re: [SOLVED] usb 3.0 pci card not working

Hmm, but now I'm having second thoughts: It might be better to split the 14-pin power cable that connects the motherboard to main power supply instead of routing a power outlet on the motherboard which is designated to "SATA" to a pci card? I don't know anything about electronics or electrodynamics in general, but what I'm thinking is that maybe when I attach too many usb devices (I only have to ports but could use a hub) then there will be "too much electricity flowing through the motherboard" and it will get fried. Does that make sense? Better do it the other way... seems more straightforward and safe.

Thanks, Stefan

Last edited by stri (2015-04-12 06:10:38)

Offline

#8 2015-04-12 10:16:44

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] usb 3.0 pci card not working

I doubt you need an fdd type power connector, it is possible but not very likely. If you already have one molex power connector you can buy an y splitter and that should solve the problem.

Unless you plan to connect power hungry devices to the USB card I wouldn't worry too much. But if you want to do it the hard error prone way you could tap into the cable that comes from the power supply, just make sure you use a multimeter to check you connected it correctly before plugging the plug on the card, otherwise you may see magic black smoke.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#9 2015-04-12 11:28:54

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 609

Re: [SOLVED] usb 3.0 pci card not working

stri wrote:

Hmm, but now I'm having second thoughts: It might be better to split the 14-pin power cable that connects the motherboard to main power supply instead of routing a power outlet on the motherboard which is designated to "SATA" to a pci card? I don't know anything about electronics or electrodynamics in general, but what I'm thinking is that maybe when I attach too many usb devices (I only have to ports but could use a hub) then there will be "too much electricity flowing through the motherboard" and it will get fried. Does that make sense? Better do it the other way... seems more straightforward and safe.

Thanks, Stefan

If you want to do this - don't. Either try to find molex converter (there are many of them, as moles - sata power, molex - 2x sata power and so on - i use the second one because i have only 8 sata devices from my 850W power supply and need more of them) or use cables from sata/molex power cord. I would not touch the main cable for power supply that it is connected to motherboard. You do it wrong, and could fire up all of it, there would be bad electrical connection and you can have problems with stability, shutdown, freezes or something more - if you don't isolate power cords they could do a nasty thing...and burn machine, so don't do it from the main power cable, use molex if you won't be able to find converter.

BTW - i don't use floppy drives but my power supply has support for it. Strange that yours does not because this small 4 pin connector is not only for flopy devices but sometimes even with front panel (audio, usb, card readers and so on).

One thing that buggs me is that your system behaves like he does not see this. I thing that even without powering devices trough this usb3.0 it should be useable (usb dongle and pendrives does not take much power) and power that coms from pcie-x1 slot should be more than enough.

BTW - you're sure that it is not being a faulty one? I own RAID "hosts" for pcie-x1 slots, two of them, and they don't need a power cords. They take current from pcie-x1 slots and are being reported by dmesg (sata sil chipset 3132 if i remember). One thing more - similar RAID "hosts" i could buy with ASMEDIA chips..but i read that they often does not work on linux...so i bought second with sata sil (3132, first one is from adaptec, second one from digitus) and they both work ok with 3TB drives.

Last edited by firekage (2015-04-12 11:34:48)

Offline

#10 2015-04-13 01:11:14

stri
Member
Registered: 2014-06-09
Posts: 62

Re: [SOLVED] usb 3.0 pci card not working

R00KIE wrote:

I doubt you need an fdd type power connector, it is possible but not very likely.

I should have provided the link to the product earlier:

http://www.astrotek.com.hk/ProductDetai … AT-CPEU3A2

Seems indeed to be ATX FDD.


R00KIE wrote:

If you already have one molex power connector you can buy an y splitter and that should solve the problem.

After reading the two previous posts I'm convinced that's the way to go. It's a new computer and black smoke is not what I want to produce with it.

But what worried me is that the molex power connector comes out of the motherboard, and not the main power supply. I have two of those coming out of the motherboard, and both are a labelled as "SATA" power supply (that's what it says in the manual).

I did a little more reading. According to this, the "Official cable/connector maximum wattage delivery" for SATA is 22.5 watts on the 5V cables, and 54 watts on the 12V cables. So I'm thinking I can draw this much power without frying the motherboard, otherwise it's the manufacturer's fault (because they wrote "SATA" in the manual).

On one of these two motherboard-"SATA"-molex's the manufacturer attached the SSD hard disk, on the other they attached the DVD drive.

Regarding the idea of attaching y-splitter to one of these: According to this, the typical maximum power consumption of a SATA DVD drive is 15-27 Watts. I don't know how much my PCIE-x1 consumes, but if this is correct, then the ATX-FDD on the PCE-x1 has a "maximum power-handling capability of 34 watts", which means that the card shouldn't draw more than this.

So the DVD drive and the PCIE-x1 *together* shouldn't draw more than 27+34=61W, which is less than the "Official cable/connector maximum wattage delivery" of SATA which is 22.5+54=76.5W.

So attaching the y-splitter is okay, right? I could even attach it to molex that supplies the SDD, since the power consumption of SDD seems to be much less than DVD (according to this). Then I could even hook up a third device maybe.


firekage wrote:

I thing that even without powering devices trough this usb3.0 it should be useable (usb dongle and pendrives does not take much power) and power that coms from pcie-x1 slot should be more than enough.

Yes, I agree, I don't know either.

firekage wrote:

BTW - you're sure that it is not being a faulty one?

No, I'm not sure at all, I'll only find out once I attach the power I guess.

But anyways, I feel like I learned a lot here. In case the card is really broken I get a new one; but from what I understand so far, if it's USB 3.0, then it's always a good idea to power it externally. Whether the card is powered by FDD, SATA or a conventional "Peripheral Power Connector" (aka molex) and how much power it actually draws is a different question, but now I know at least where I can get power from.

Thanks a lot!
Stefan

Offline

#11 2015-04-13 10:22:59

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] usb 3.0 pci card not working

stri wrote:
firekage wrote:

I thing that even without powering devices trough this usb3.0 it should be useable (usb dongle and pendrives does not take much power) and power that coms from pcie-x1 slot should be more than enough.

Yes, I agree, I don't know either.

I have tried one pcie card that wouldn't even show up in lspci if the molex connector was not plugged, I would guess that the pcie-usb bridge might draw power from pcie but the power for the usb ports comes exclusively from the molex connector, so you really have to plug it in.

If you say you don't use the dvd drive that much you can probably split power from there, if you are worried about combined power draw you can probably split from the ssd cable since ssds don't require much power, the caveat is that ssd stability might be affected since you will be loading the 5V line when you connect stuff to the usb card.

On the other hand, the power lines on the motherboard most probably have some margin over the spec to avoid possible problems so it should be ok to split from the dvd drive cable.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#12 2015-04-18 01:19:47

stri
Member
Registered: 2014-06-09
Posts: 62

Re: [SOLVED] usb 3.0 pci card not working

I just connected the power cable and it works now. Awesome!

Thanks,
Stefan

Offline

Board footer

Powered by FluxBB