Bug 221491 - uPD720201 USB 3.0 Host Controller causes system to fail to boot
Summary: uPD720201 USB 3.0 Host Controller causes system to fail to boot
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 11.1-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-usb mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-13 21:17 UTC by Rajil Saraswat
Modified: 2019-03-13 06:01 UTC (History)
2 users (show)

See Also:


Attachments
USB options in BIOS (50.56 KB, image/jpeg)
2017-08-20 21:09 UTC, Rajil Saraswat
no flags Details
X2APIC BIOS screenshot (69.57 KB, image/jpeg)
2017-08-20 21:10 UTC, Rajil Saraswat
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rajil Saraswat 2017-08-13 21:17:19 UTC
My system had bootup issues with PCIe card based on NEC uPD720201 chipset. Further details are at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221405#c4
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2017-08-15 19:27:21 UTC
Attaching information from predecessor PR 221405:

[code]
xhci1@pci0:129:0:0:     class=0x0c0330 card=0x00141912 chip=0x00141912 rev=0x03 hdr=0x00
    vendor     = 'Renesas Technology Corp.'
    device     = 'uPD720201 USB 3.0 Host Controller'
    class      = serial bus
    subclass   = USB
[/code]

The cards i tried were the following based on uPD720201 chipset
Mailiya PCI-E to USB 3.0 4 Port PCI Express Expansion Card (PCIe Card)
https://www.amazon.com/Mailiya-Expansion-Superspeed-Connector-Desktops/dp/B01G86538S and Rosewill PCI-E to USB 3.0 4-Port PCI Express Expansion Card
https://www.amazon.com/dp/B011LZY20G

Both cause the hangup at boot. After removing the card the system boots up fine.
Comment 2 Rajil Saraswat 2017-08-17 02:25:21 UTC
I replaced the card with another chipset, and the system hangs in the same fashion.

The card is "Inateck Superspeed 4 Ports PCI-E to USB 3.0 Expansion Card- Interface USB 3.0 4-Port" (https://www.amazon.com/gp/product/B00B6ZCNGM)

ppt3@pci0:129:0:0:      class=0x0c0330 card=0x11001b73 chip=0x11001b73
rev=0x10 hdr=0x00
    vendor     = 'Fresco Logic'
    device     = 'FL1100 USB 3.0 Host Controller'
    class      = serial bus
    subclass   = USB
Comment 3 Rajil Saraswat 2017-08-17 04:04:15 UTC
For uPD720201 USB 3.0 Host Controller

# pciconf -l -BbcV pci0:1:0:0
xhci0@pci0:1:0:0:       class=0x0c0330 card=0x00141912 chip=0x00141912 rev=0x03 hdr=0x00
    bar   [10] = type Memory, range 64, base rxc7300000, size 8192, enabled
    cap 01[50] = powerspec 3  supports D0 D3  current D0
    cap 05[70] = MSI supports 8 messages, 64 bit enabled with 1 message
    cap 11[90] = MSI-X supports 8 messages
                 Table in map 0x10[0x1000], PBA in map 0x10[0x1080]
    cap 10[a0] = PCI-Express 2 endpoint max data 128(128) NS
                 link x1(x1) speed 5.0(5.0) ASPM L1(L0s/L1)
    ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected
    ecap 0018[150] = LTR 1
Comment 4 Rajil Saraswat 2017-08-17 04:04:55 UTC
For  Inateck Superspeed 4 Ports 
# pciconf -l -BbcV pci0:129:0:0
xhci2@pci0:129:0:0:     class=0x0c0330 card=0x11001b73 chip=0x11001b73 rev=0x10 hdr=0x00
    bar   [10] = type Memory, range 64, base rxfb200000, size 65536, enabled
    bar   [18] = type Memory, range 64, base rxfb211000, size 4096, enabled
    bar   [20] = type Memory, range 64, base rxfb210000, size 4096, enabled
    cap 01[40] = powerspec 3  supports D0 D1 D3  current D0
    cap 05[50] = MSI supports 8 messages, 64 bit enabled with 1 message
    cap 10[70] = PCI-Express 2 endpoint max data 256(512) NS
                 link x1(x1) speed 5.0(5.0) ASPM disabled(L0s/L1)
    cap 11[b0] = MSI-X supports 8 messages
                 Table in map 0x18[0x0], PBA in map 0x20[0x0]
    ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected
Comment 5 Hans Petter Selasky freebsd_committer 2017-08-17 06:06:13 UTC
Are you able to dump things like IRQ statistics? (vmstat -i) ?

--HPS
Comment 6 Hans Petter Selasky freebsd_committer 2017-08-17 06:06:26 UTC
Is this a regression issue?
Comment 7 Rajil Saraswat 2017-08-17 10:22:27 UTC
I booted into 10.3 and had a frozen system like 11.1

# vmstat -i
interrupt                          total       rate
irq9: acpi0                            3          0
irq18: ehci0 ehci1                 54898          2
cpu0:timer                       8689199        389
cpu1:timer                       2559486        114
cpu31:timer                      1875198         84
cpu11:timer                      1777687         79
cpu15:timer                      1890883         85
cpu24:timer                      1824803         82
cpu6:timer                       2039394         91
cpu30:timer                      2025464         91
cpu40:timer                      2256776        101
cpu41:timer                      2148592         96
cpu12:timer                      1886366         84
cpu32:timer                      2050458         92
cpu47:timer                      2344105        105
cpu14:timer                      1945688         87
cpu42:timer                      2324978        104
cpu10:timer                      1825416         82
cpu29:timer                      1887757         84
cpu23:timer                      2164539         97
cpu27:timer                      1802953         81
cpu3:timer                       3705634        166
cpu36:timer                      2203274         99
cpu20:timer                      2172473         97
cpu46:timer                      2431838        109
cpu18:timer                      2069449         93
cpu39:timer                      2123196         95
cpu38:timer                      2196019         98
cpu19:timer                      1991958         89
cpu34:timer                      2132938         95
cpu35:timer                      1994843         89
cpu45:timer                      2270519        102
cpu13:timer                      1812240         81
cpu22:timer                      2318390        104
cpu25:timer                      1769622         79
cpu37:timer                      2115865         95
cpu4:timer                       9456132        423
cpu5:timer                       1456422         65
cpu9:timer                       1741258         78
cpu21:timer                      2060062         92
cpu28:timer                      1976683         88
cpu16:timer                      1975905         88
cpu2:timer                       4031299        180
cpu44:timer                      2406059        108
cpu8:timer                       1733877         78
cpu33:timer                      2009266         90
cpu17:timer                      1959218         88
cpu7:timer                       1648291         74
cpu43:timer                      2205469         99
cpu26:timer                      1901916         85
irq264: mps0                     1801603         81
irq265: ix0:q0                    213474         10
irq266: ix0:q1                   2816999        126
irq267: ix0:q2                   1768500         79
irq268: ix0:q3                   5348365        239
irq269: ix0:q4                  32165718       1438
irq270: ix0:q5                    729278         33
irq271: ix0:q6                    604412         27
irq272: ix0:q7                     84887          4
irq273: ix0:link                       2          0
irq274: ix1:q0                    440316         20
irq275: ix1:q1                   3370498        151
irq276: ix1:q2                  16166321        723
irq277: ix1:q3                   5357140        240
irq278: ix1:q4                  32227605       1441
irq279: ix1:q5                     75539          3
irq280: ix1:q6                   1250775         56
irq281: ix1:q7                     66617          3
irq282: ix1:link                       2          0
irq284: xhci0                     130599          6
irq285: ahci1                      33896          2
irq286: nvme0                         54          0
irq287: nvme0                       4440          0
irq288: nvme0                       4690          0
irq289: nvme0                       5163          0
irq290: nvme0                       4781          0
irq291: nvme0                       4985          0
irq292: nvme0                       4963          0
irq293: nvme0                       5444          0
irq294: nvme0                       5260          0
irq295: nvme0                       5608          0
irq296: nvme0                       6019          0
irq297: nvme0                       5308          0
irq298: nvme0                       6410          0
irq299: nvme0                       4252          0
irq300: nvme0                       3798          0
irq301: nvme0                       3953          0
irq302: nvme0                       4089          0
irq303: nvme0                       4431          0
irq304: nvme0                       4713          0
irq305: nvme0                       4669          0
irq306: nvme0                       4765          0
irq307: nvme0                       4820          0
irq308: nvme0                       4780          0
irq309: nvme0                       4746          0
irq310: nvme0                       5683          0
irq311: sfxge0:0                     101          0
irq312: sfxge0:1                       2          0
irq313: sfxge0:2                       2          0
irq314: sfxge0:3                       2          0
irq315: sfxge0:4                     989          0
irq316: sfxge0:5                       2          0
irq317: sfxge0:6                       2          0
irq318: sfxge0:7                       2          0
irq319: sfxge0:8                       2          0
irq320: sfxge0:9                       2          0
irq321: sfxge0:10                      2          0
irq322: sfxge0:11                      2          0
irq323: sfxge0:12                      2          0
irq324: sfxge0:13                    773          0
irq325: sfxge0:14                      2          0
irq326: sfxge0:15                      2          0
irq327: sfxge0:16                      2          0
irq328: sfxge0:17                      2          0
irq329: sfxge0:18                      2          0
irq330: sfxge0:19                    512          0
irq331: sfxge0:20                      2          0
irq332: sfxge0:21                      2          0
irq333: sfxge0:22                      2          0
irq334: sfxge0:23                      2          0
irq335: sfxge0:24                      2          0
irq336: sfxge0:25                      2          0
irq337: sfxge0:26                      2          0
irq338: sfxge0:27                      2          0
irq339: sfxge0:28                      2          0
irq340: sfxge0:29                      2          0
irq341: sfxge0:30                      2          0
irq342: sfxge0:31                      2          0
irq375: ppt0                       23827          1
Total                          220041386       9839
Comment 8 Rajil Saraswat 2017-08-17 10:27:30 UTC
At the moment i have both the usb cards inserted in the system.
# pciconf -v -l | grep ppt0
ppt0@pci0:1:0:0:        class=0x0c0330 card=0x00141912 chip=0x00141912 rev=0x03 hdr=0x00

#pciconf -v -l | grep ppt3
ppt3@pci0:129:0:0:      class=0x0c0330 card=0x11001b73 chip=0x11001b73 rev=0x10 hdr=0x00

But the second card (ppt3) doesnt show up in the IRQ list

#vmstat -i | grep ppt
irq375: ppt0                       24060          1
Comment 9 Rajil Saraswat 2017-08-20 20:35:34 UTC
I gave this another go with a USB2 PCIe card, and got the same boot freeze. 

Hans anybody tried to use a external USB card in a FreeBSD system?


Syba PCI -Express USB 2.0 5-port Host Controller Card (https://www.amazon.com/gp/product/B0026I4DZ2)


#pciconf -v -l
ohci0@pci0:130:0:0:     class=0x0c0310 card=0x00351033 chip=0x00351033 rev=0x43 hdr=0x00
    vendor     = 'NEC Corporation'
    device     = 'OHCI USB Controller'
    class      = serial bus
    subclass   = USB
ohci1@pci0:130:0:1:     class=0x0c0310 card=0x00351033 chip=0x00351033 rev=0x43 hdr=0x00
    vendor     = 'NEC Corporation'
    device     = 'OHCI USB Controller'
    class      = serial bus
    subclass   = USB
ppt0@pci0:130:0:2:      class=0x0c0320 card=0x00e01033 chip=0x00e01033 rev=0x04 hdr=0x00
    vendor     = 'NEC Corporation'
    device     = 'uPD72010x USB 2.0 Controller'
    class      = serial bus
    subclass   = USB

# pciconf -l -BbcV pci0:130:0:0
ohci0@pci0:130:0:0:     class=0x0c0310 card=0x00351033 chip=0x00351033 rev=0x43 hdr=0x00
    bar   [10] = type Memory, range 32, base rxfb202000, size 4096, enabled
    cap 01[40] = powerspec 2  supports D0 D1 D2 D3  current D0
Comment 10 Hans Petter Selasky freebsd_committer 2017-08-20 21:05:24 UTC
Yes. What USB BIOS options do you have?

--HPS
Comment 11 Rajil Saraswat 2017-08-20 21:09:54 UTC
Created attachment 185613 [details]
USB options in BIOS
Comment 12 Rajil Saraswat 2017-08-20 21:10:38 UTC
Created attachment 185614 [details]
X2APIC BIOS screenshot
Comment 13 Hans Petter Selasky freebsd_committer 2017-08-20 21:12:05 UTC
Do the cards also fail with another mainboard ?

--HPS