Launchpad has imported 15 comments from the remote bug at
https://bugzilla.kernel.org/show_bug.cgi?id=220181.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2025-06-01T12:52:21+00:00 6svcyk03 wrote:

At boot, I see the undermentioned in red in `dmesg`:

> ~~~log
> config failed, hub doesn't have any ports! (err -19)
> ~~~

I've one entry for each boot in `journalctl`.

Using the first section of the error:

> ~~~YAML
> hub 12-0:1.0
> ~~~

...I believe that I've ascertained what the cause is. Using `lsusb -t`,
I find:

> ~~~YAML
> /:  Bus 012.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/0p, 5000M
> ~~~

`Driver=xhci_hcd/0p` means it has 0 ports, which is invalid, hence the
error.

I tried to `readlink /sys/class/usb_host/usb12` it to ascertain what the
cause is, but that fails, because the device unsuccessfully enumerated.
Consequently, I used `readlink /sys/bus/usb/devices/usb12` to verify the
device ID:

> ~~~log
> ../../../devices/pci0000:00/0000:00:08.3/0000:5a:00.0/usb12
> ~~~

When known, I used `5a:00.0` to locate the cause with `lspci -s
5a:00.0`:

> ~~~YAML
> 5a:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Raphael/Granite 
> Ridge USB 2.0 xHCI
> ~~~

It's the virtual "Advanced Micro Devices, Inc. [AMD] Raphael/Granite
Ridge USB 2.0 xHCI" USB controller, not exposing any ports despite the
driver purportedly requiring it. However, there obviously aren't ports
on a virtual device.

At https://discussion.fedoraproject.org/t/what-does-config-failed-hub-
doesnt-have-any-ports-err-19-mean/153954, I cite corroborations from
Kali Linux, Ubuntu, Debian and Fedora. However, I've also received a
personal e-mail from an interested party who claims to reproduce this on
openSUSE.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097466/comments/2

------------------------------------------------------------------------
On 2025-06-02T07:30:53+00:00 michal.pecio wrote:

I recall seeing a thread about it on ArchLinux forum. Posted logs
indicated that the xHCI chips in those cases only exposed USB 2.0 ports
and hence the USB 3.x bus registered by xhci_hcd has no ports and USB
core freaks out.

Such controllers are legal and supported, perhaps the driver could be
patched not to bother registering 3.x buses for them.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097466/comments/3

------------------------------------------------------------------------
On 2025-06-02T10:59:45+00:00 mathias.nyman wrote:

xhci "core" driver support hosts with only usb2 ports, (0 ports on usb3
roothub).

It's just missing some minor pieces for PCI xHC hosts in xhci-pci.c
 
Patform and MediaTek xHC have the support ready, as can be seen by the 
"xhci->allow_single_roothub = 1" setting in xhci-plat.c and xhci-mtk.c

Or does this xHC host have 0 ports on usb2 roothub as well?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097466/comments/4

------------------------------------------------------------------------
On 2025-06-02T11:10:53+00:00 6svcyk03 wrote:

(In reply to Mathias Nyman from comment #2)

> Or does this xHC host have 0 ports on usb2 roothub as well?

I dare say that I'm operating at the boundaries of my lay man's
knowledge as it is. How do you suggest that I ascertain this?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097466/comments/5

------------------------------------------------------------------------
On 2025-06-02T11:54:02+00:00 mathias.nyman wrote:

(In reply to Mr. Beedell, Roke Julian Lockhart (RJLB) from comment #3)
> (In reply to Mathias Nyman from comment #2)
> 
> > Or does this xHC host have 0 ports on usb2 roothub as well?
> 
> I dare say that I'm operating at the boundaries of my lay man's knowledge as
> it is. How do you suggest that I ascertain this?

Probably best to take a closer at the xHC port information of this host

The reg-ext-protocol:00 and reg-ext-protocol:01 files in debugfs should
show all info about the ports the host provides:

Example, this machine has only one xHC at PCI address 0000:00:14.0:

cat /sys/kernel/debug/usb/xhci/0000:00:14.0/reg-ext-protocol*
EXTCAP_REVISION = 0x02000802
EXTCAP_NAME = 0x20425355
EXTCAP_PORTINFO = 0x30010e01
EXTCAP_PORTTYPE = 0x00000000
EXTCAP_MANTISSA1 = 0x000c0021
EXTCAP_MANTISSA2 = 0x05dc0012
EXTCAP_MANTISSA3 = 0x01e00023

EXTCAP_REVISION = 0x03000802
EXTCAP_NAME = 0x20425355
EXTCAP_PORTINFO = 0x10000610
EXTCAP_PORTTYPE = 0x00000000
EXTCAP_MANTISSA1 = 0x00050134


Above shows:
EXTCAP_REVISION tells if ports are USB3 or USB2,
EXTCAP_PORTNINFO = 0x****AA**, where AA tells us how many ports

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097466/comments/6

------------------------------------------------------------------------
On 2025-06-02T12:25:38+00:00 6svcyk03 wrote:

"`sudo ls /sys/kernel/debug/usb/xhci/`" returns "`0000:5a:00.0`":

```
0000:08:00.0  0000:54:00.0  0000:56:00.0  0000:59:00.3  0000:59:00.4  
0000:5a:00.0
```

...so I tried the problematic port (and a random alternative):

```
#!/usr/bin/env sh
sudo cat /sys/kernel/debug/usb/xhci/0000:08:00.0/reg-ext-protocol:00
sudo cat /sys/kernel/debug/usb/xhci/0000:08:00.0/reg-ext-protocol:01
```

For the problematic port, solely the first command returns:

```
EXTCAP_REVISION = 0x02000402
EXTCAP_NAME = 0x20425355
EXTCAP_PORTINFO = 0x00180101
EXTCAP_PORTTYPE = 0x00000000
```

For the second command, the file supposedly doesn't exist:

> cat: '/sys/kernel/debug/usb/xhci/0000:5a:00.0/reg-ext-protocol:01': No
such file or directory

This somewhat perplexes me, considering that the random alternative at
"`sudo cat /sys/kernel/debug/usb/xhci/0000:08:00.0/reg-ext-protocol:01`"
quite happily works:

```
EXTCAP_REVISION = 0x03101402
EXTCAP_NAME = 0x20425355
EXTCAP_PORTINFO = 0x80000203
EXTCAP_PORTTYPE = 0x00000000
EXTCAP_MANTISSA1 = 0x00050134
EXTCAP_MANTISSA2 = 0x000a4135
EXTCAP_MANTISSA3 = 0x04e00126
EXTCAP_MANTISSA4 = 0x09c00127
EXTCAP_MANTISSA5 = 0x13800128
EXTCAP_MANTISSA6 = 0x05b10129
```

At least, this appears to demonstrate that one port exists, although
apologies if I've misunderstood. For reference, I'm using
`kernel-6.14.9-300.fc42.x86_64`.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097466/comments/7

------------------------------------------------------------------------
On 2025-06-02T13:24:00+00:00 mathias.nyman wrote:

This means the xHC controller only has one entry for "supported protocol
capability", which lists just one USB2 port.

There is no entry at all for USB3 ports

The xhci driver needs some minor changes in xhci-pci.c code to make this
work properly.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097466/comments/8

------------------------------------------------------------------------
On 2025-06-04T13:14:52+00:00 niklas.neronin wrote:

Created attachment 308204
Proposed patch to add support for zero USB3 port systems

I don't have a system with zero USB3 ports to fully test this patch.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097466/comments/9

------------------------------------------------------------------------
On 2025-06-14T19:57:16+00:00 gnw3 wrote:

A Fedora user with a system with USB4 ports is seeing  
`fedora kernel: hub 6-0:1.0: config failed, hub doesn't have any ports! (err 
-19)`.
I wonder if the "the zero USB3 ports" issue is at fault.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097466/comments/10

------------------------------------------------------------------------
On 2025-07-02T12:25:29+00:00 nick.kainielsen wrote:

I'm in Tumbleweed - or I would be 
-
-
My error message reads
"[1.361031][T442] hub 6-0:1.3 : config failed hub doesn't have any ports (error 
-19)" - there's a difference of numbering of the hub.   
-
-
My set up : an AMD Ryzen 5 8600G processor mounted on an ASRock A620M Pro RS 
mother board which uses the AMD A620 chipset.
-
-
Willing to help/test bearing in mind my skills are very limited... which is why 
I can't format this text

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097466/comments/11

------------------------------------------------------------------------
On 2025-07-02T13:32:54+00:00 6svcyk03 wrote:

> I can't format this text

It's merely CommonMark. You can read the standard online, at
https://github.com/commonmark/commonmark-
spec/blob/90c06837975098002cc89d3da1be30529919a8a2/spec.txt#L1934-L2356.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097466/comments/12

------------------------------------------------------------------------
On 2025-07-08T09:13:52+00:00 nick.kainielsen wrote:

The patch seems to work.

A member of the openSuse community prepared a KMP (kernel module
package) for me containing @Niklas Neronin 's patch and I no longer get
the error message.

Also, looking at journalctl, the USB ports are enumerated and described
as USB3 or 2 where appropriate.

It's not the end of my worries - boot hangs again afterwards, whether
this is kernel related is yet to ascertain.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097466/comments/13

------------------------------------------------------------------------
On 2025-07-08T09:34:14+00:00 niklas.neronin wrote:

(In reply to Nick Nielsen from comment #11)
> The patch seems to work.
> 
> A member of the openSuse community prepared a KMP (kernel module package)
> for me containing @Niklas Neronin 's patch and I no longer get the error
> message.
> 
> Also, looking at journalctl, the USB ports are enumerated and described as
> USB3 or 2 where appropriate.
> 
> It's not the end of my worries - boot hangs again afterwards, whether this
> is kernel related is yet to ascertain.

Thank you for testing my patch.

If you suspect that the boot hanging issue is related to my patch or the
xhci driver, please send over any logs you have, and I'll try to fix it.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097466/comments/14

------------------------------------------------------------------------
On 2025-08-22T16:19:55+00:00 grm1 wrote:

I found this bug report here through
https://bbs.archlinux.org/viewtopic.php?id=302115&p=2 after lookup my
journald error "archlinux kernel: hub 6-0:1.0: config failed, hub
doesn't have any ports! (err -19)"

I tested the patch 0001-usb-xhci-pci-add-support-for-hosts-with-zero-
usb3-po.patch 2025-06-04 13:14 UTC, Niklas Neronin.

Running archlinux with custom linux 6.16.2-arch1 PKGBUILD to just add
the patch.

The message disappear and i don't notice any crash.

System is "ASRock B650M PG Lightning/B650M PG Lightning, BIOS 3.30
06/16/2025."

Thank you Niklas Neronin.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097466/comments/15

------------------------------------------------------------------------
On 2025-08-24T23:19:50+00:00 danagoyette wrote:

I filed a bug a while ago on the Ubuntu bug tracker with information
about the device from a few utilities on Windows, on an X870E Taichi.

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097466

I should test out the patch sometime this week.  What kernel version is
the patch for?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097466/comments/16


** Changed in: linux
       Status: Unknown => Fix Released

** Changed in: linux
   Importance: Unknown => Low

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2097466

Title:
  Weird AMD "USB 2.0 XHCI" Controller doesn't work

Status in Linux:
  Fix Released
Status in linux package in Ubuntu:
  New

Bug description:
  My machine has an Asrock X870E Taichi motherboard.  When I was trying
  to debug failure to boot properly with the latest BIOS, I noticed a
  red-herring error message:

  ```
      Feb 05 01:03:56 octabrain kernel: usb usb12: We don't know the algorithms 
for LPM for this host, disabling LPM.
      Feb 05 01:03:56 octabrain kernel: usb usb12: New USB device found, 
idVendor=1d6b, idProduct=0003, bcdDevice= 6.11
      Feb 05 01:03:56 octabrain kernel: usb usb12: New USB device strings: 
Mfr=3, Product=2, SerialNumber=1
      Feb 05 01:03:56 octabrain kernel: usb usb12: Product: xHCI Host Controller
      Feb 05 01:03:56 octabrain kernel: usb usb12: Manufacturer: Linux 
6.11.0-14-generic xhci-hcd
      Feb 05 01:03:56 octabrain kernel: usb usb12: SerialNumber: 0000:7d:00.0
      Feb 05 01:03:56 octabrain kernel: hub 12-0:1.0: USB hub found
      Feb 05 01:03:56 octabrain kernel: hub 12-0:1.0: config failed, hub 
doesn't have any ports! (err -19)
  ```

  On my motherboard, this controller seems to be used only for the LED
  controller, so it's not critical, but it would be good to get it
  fixed.  I considered filing it upstream, but the kernel bugzilla says
  to use the distro bug tracker first.

  lspci -nnvvvxx:
  ```
  7c:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device 
[1022:15b8] (prog-if 30 [XHCI])
        Subsystem: ASRock Incorporation Device [1849:15b6]
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 28
        IOMMU group: 37
        Region 0: Memory at df800000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: [48] Vendor Specific Information: Len=08 <?>
        Capabilities: [50] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA 
PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [64] Express (v2) Endpoint, IntMsgNum 0
                DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 
unlimited
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset- 
SlotPowerLimit 0W TEE-IO-
                DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
                        RlxdOrd- ExtTag+ PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- 
TransPend-
                LnkCap: Port #0, Speed 16GT/s, Width x16, ASPM L0s L1, Exit 
Latency L0s <64ns, L1 <1us
                        ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
                LnkCtl: ASPM Disabled; RCB 64 bytes, LnkDisable- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 16GT/s, Width x16
                        TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- 
LTR-
                         10BitTagComp+ 10BitTagReq- OBFF Not Supported, ExtFmt- 
EETLPPrefix-
                         EmergencyPowerReduction Not Supported, 
EmergencyPowerReductionInit-
                         FRS- TPHComp- ExtTPHComp-
                         AtomicOpsCap: 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
                         AtomicOpsCtl: ReqEn-
                         IDOReq- IDOCompl- LTR- EmergencyPowerReductionReq-
                         10BitTagReq- OBFF Disabled, EETLPPrefixBlk-
                LnkCap2: Supported Link Speeds: 2.5-16GT/s, Crosslink- Retimer+ 
2Retimers+ DRS-
                LnkCtl2: Target Link Speed: 16GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, 
EnterModifiedCompliance- ComplianceSOS-
                         Compliance Preset/De-emphasis: -6dB de-emphasis, 0dB 
preshoot
                LnkSta2: Current De-emphasis Level: -3.5dB, 
EqualizationComplete+ EqualizationPhase1+
                         EqualizationPhase2+ EqualizationPhase3+ 
LinkEqualizationRequest-
                         Retimer- 2Retimers- CrosslinkRes: unsupported
        Capabilities: [a0] MSI: Enable- Count=1/8 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [c0] MSI-X: Enable+ Count=8 Masked-
                Vector table: BAR=0 offset=000fe000
                PBA: BAR=0 offset=000ff000
        Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1 
Len=010 <?>
        Capabilities: [270 v1] Secondary PCI Express
                LnkCtl3: LnkEquIntrruptEn- PerformEqu-
                LaneErrStat: 0
        Capabilities: [2a0 v1] Access Control Services
                ACSCap: SrcValid- TransBlk- ReqRedir- CmpltRedir- UpstreamFwd- 
EgressCtrl- DirectTrans-
                ACSCtl: SrcValid- TransBlk- ReqRedir- CmpltRedir- UpstreamFwd- 
EgressCtrl- DirectTrans-
        Capabilities: [410 v1] Physical Layer 16.0 GT/s <?>
        Capabilities: [450 v1] Lane Margining at the Receiver
                PortCap: Uses Driver-
                PortSta: MargReady- MargSoftReady-
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
  00: 22 10 b8 15 07 04 10 00 00 30 03 0c 10 00 00 00
  10: 04 00 80 df 00 00 00 00 00 00 00 00 00 00 00 00
  20: 00 00 00 00 00 00 00 00 00 00 00 00 49 18 b6 15
  30: 00 00 00 00 48 00 00 00 00 00 00 00 ff 01 00 00
  ```

  Info about it from Windows:

  hwinfo64:
  USB controller is: "AMD USB 2.0 eXtensble Host Controller - 1.20"
  PCIe device is: "AMD Raphael - USB2 (USB BIO) secure"

  
  usbtreeview: (see usbtreeview-report.txt)
  ```
        ---------------- Extended USB Hub Descriptor ---------------
  HubType                  : 0x01 (UsbRootHub - a root hub)
  HighestPortNumber        : 0x01 (Port 1 is the highest)

          ----------------- USB Hub Capabilities ----------------
  HubIs2xCapable           : 0 (Is not 2.x capable)
  Data (HexDump)           : 00 00 00 00                                       
....

          --------------- USB Hub Capabilities Ex ---------------
  HighSpeedCapable         : 0 (No)
  HighSpeed                : 1 (Yes)
  MultiTtCapable           : 0 (No)
  HubIsMultiTt             : 0 (No)
  ArmedWakeOnConnect       : 0 (No)
  IsBusPowered             : 0 (No)
  IsRoot                   : 1 (Yes)
  Data (HexDump)           : 12 00 00 00     
  ```

  ProblemType: Bug
  DistroRelease: Ubuntu 24.10
  Package: linux-image-6.11.0-14-generic 6.11.0-14.15
  ProcVersionSignature: Ubuntu 6.11.0-14.15-generic 6.11.0
  Uname: Linux 6.11.0-14-generic x86_64
  ApportVersion: 2.30.0-0ubuntu4
  Architecture: amd64
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/timer', 
'/dev/snd/seq', '/dev/snd/pcmC0D3p', '/dev/snd/pcmC0D7p', '/dev/snd/pcmC0D8p', 
'/dev/snd/pcmC0D9p', '/dev/snd/hwC0D0', '/dev/snd/controlC0', 
'/dev/snd/by-path', '/dev/snd/pcmC1D0p', '/dev/snd/pcmC1D0c', 
'/dev/snd/pcmC1D1p', '/dev/snd/pcmC1D1c', '/dev/snd/pcmC1D2p', 
'/dev/snd/pcmC1D3p', '/dev/snd/controlC1', '/dev/snd/by-id'] failed with exit 
code 1:
  CasperMD5CheckResult: unknown
  Date: Wed Feb  5 09:28:40 2025
  InstallationDate: Installed on 2025-02-04 (2 days ago)
  InstallationMedia: Kubuntu 24.10 "Oracular Oriole" - Release amd64 
(20241007.6)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  MachineType: ASRock X870E Taichi
  ProcFB: 0 amdgpudrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-6.11.0-14-generic 
root=UUID=a85281a7-df31-47ce-87aa-c2c77d6f71b7 ro rootflags=subvol=@ 
amdgpu.sg_display=0 pcie_port_pm=off thunderbolt.dyndbg=+p drm.debug=0x10e
  RelatedPackageVersions:
   linux-restricted-modules-6.11.0-14-generic N/A
   linux-backports-modules-6.11.0-14-generic  N/A
   linux-firmware                             20240913.gita34e7a5f-0ubuntu2.4
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 12/18/2024
  dmi.bios.release: 5.35
  dmi.bios.vendor: American Megatrends International, LLC.
  dmi.bios.version: 3.16
  dmi.board.asset.tag: Default string
  dmi.board.name: X870E Taichi
  dmi.board.vendor: ASRock
  dmi.board.version: Default string
  dmi.chassis.asset.tag: Default string
  dmi.chassis.type: 3
  dmi.chassis.vendor: Default string
  dmi.chassis.version: Default string
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInternational,LLC.:bvr3.16:bd12/18/2024:br5.35:svnASRock:pnX870ETaichi:pvrDefaultstring:rvnASRock:rnX870ETaichi:rvrDefaultstring:cvnDefaultstring:ct3:cvrDefaultstring:skuDefaultstring:
  dmi.product.family: Default string
  dmi.product.name: X870E Taichi
  dmi.product.sku: Default string
  dmi.product.version: Default string
  dmi.sys.vendor: ASRock

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/2097466/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to