Fedora 33 doesn't see USB

Maybe TLP isn’t enabled. Reboot to be sure. powertop will show you current status of power management features, look into Tunables tab, and search for USB autosuspend and USB controller PM status, Bad means that a feature is disabled.

You’ll have to remove RUNTIME_PM_BLACKLIST="05:00.3" from /etc/tlp.d/01-usb.conf and see whether the issue persists after a reboot.
+++
Maybe some kernel parameters interfere, post here output of cat /proc/cmdline.

1 Like

I restarted the computer, but it still doesn’t work.
This is powertop with computer on battery in and with one USB stick (4GB):

Bad VM writeback timeout
Bad Runtime PM for I2C Adapter i2c-0 (AMDGPU DM i2c hw bus 0)
Bad Runtime PM for I2C Adapter i2c-1 (AMDGPU DM i2c hw bus 1)
Bad Runtime PM for I2C Adapter i2c-2 (AMDGPU DM i2c hw bus 2)
Bad Runtime PM for I2C Adapter i2c-3 (AMDGPU DM i2c hw bus 3)
Bad Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD/ATI] Picasso
Bad Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
Bad Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6

This is cat /proc/cmdline:

BOOT_IMAGE=(hd0,gpt2)/vmlinuz-5.9.8-200.fc33.x86_64 root=UUID=5750e88e-3f9b-4572-bb47-0cb800dd26a2 ro rootflags=subvol=root rhgb quiet

Post here all entries from Tunables.

>    Bad           VM writeback timeout
>    Bad           Runtime PM for I2C Adapter i2c-0 (AMDGPU DM i2c hw bus 0)
>    Bad           Runtime PM for I2C Adapter i2c-1 (AMDGPU DM i2c hw bus 1)
>    Bad           Runtime PM for I2C Adapter i2c-2 (AMDGPU DM i2c hw bus 2)
>    Bad           Runtime PM for I2C Adapter i2c-3 (AMDGPU DM i2c hw bus 3)
>    Bad           Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD/ATI] Picasso
>    Bad           Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
>    Bad           Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
>    Good          NMI watchdog should be turned off
>    Good          Bluetooth device interface status
>    Good          Enable Audio codec power management
>    Good          Autosuspend for USB device EHCI Host Controller [usb1]
>    Good          Autosuspend for USB device xHCI Host Controller [usb2]
>    Good          Autosuspend for unknown USB device 4-1 (8087:0025)
>    Good          Autosuspend for USB device xHCI Host Controller [usb4]
>    Good          Autosuspend for USB device EMV Smartcard Reader [Generic]
>    Good          Runtime PM for I2C Adapter i2c-8 (SMBus PIIX4 adapter port 2 at 0b00)
>    Good          Autosuspend for USB device Integrated Camera [8SSC20F27068L1GZ99N76AZ]
>    Good          Autosuspend for unknown USB device 4-2.4 (06cb:00bd)
>    Good          Autosuspend for USB device xHCI Host Controller [usb3]
>    Good          Autosuspend for USB device USB2.0 Hub [4-2]
>    Good          Autosuspend for USB device xHCI Host Controller [usb5]
>    Good          Runtime PM for I2C Adapter i2c-9 (SMBus PIIX4 adapter port 1 at 0b20)
>    Good          Runtime PM for I2C Adapter i2c-7 (SMBus PIIX4 adapter port 0 at 0b00)
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge
>    Good          Runtime PM for PCI Device Intel Corporation Wireless-AC 9260
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
>    Good          Runtime PM for PCI Device Realtek Semiconductor Co., Ltd. Device 816c
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6
>    Good          Runtime PM for PCI Device Realtek Semiconductor Co., Ltd. Device 816a
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4
>    Good          Runtime PM for PCI Device Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
>    Good          Runtime PM for PCI Device Sandisk Corp Device 5006
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller
>    Good          Runtime PM for PCI Device Realtek Semiconductor Co., Ltd. Device 816b
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7
>    Good          Runtime PM for PCI Device Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader
>    Good          Runtime PM for PCI Device Realtek Semiconductor Co., Ltd. Device 816d
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
>    Good          Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2

There’s at least one related device with still active power management, use space to disable it and see if it worked.
To blacklist multiple devices with TLP, do it in single entry (PCI addresses separated by space) Runtime Power Management and ASPM — TLP 1.6 documentation or following template config (remember that # comments-out a line):

# 00-template.conf - Template for TLP drop-in customizations
# See full explanation: https://linrunner.de/tlp/settings
#
# PARAMETER="value"
# PARAMETER+="add value"

I did the first part, but without success.
I’m a bit lost with the second one.
I executed this in terminal:

echo 'RUNTIME_PM_BLACKLIST="05:00.3" "05:00.4"' | sudo tee /etc/tlp.d/01-usb.conf

I restarted the machine, but it’s still not working.

BTW, thanks for helping me.

That can’t work, look at TLP documentation I linked.

This will overwrite the config and blacklist PM for both devices:
echo 'RUNTIME_PM_BLACKLIST="05:00.3 05:00.4"' | sudo tee /etc/tlp.d/01-usb.conf

1 Like

I will dig deeper into TLP tomorrow and report what happens.

I tried something fast and it works. I removed TLP and now it works again. Probably my computer will not last on battery as it could, but at the same time USB on battery works and at the moment, this is my priority. I will try TLP with next kernel release.
Thanks

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.