Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #263447 > unrolled thread

USB2 not working after upgrading to bookworm

Started byRafa <rafa@rptv.info>
First post2023-11-12 20:40 +0100
Last post2023-11-13 15:10 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  USB2 not working after upgrading to bookworm Rafa <rafa@rptv.info> - 2023-11-12 20:40 +0100
    Re: USB2 not working after upgrading to bookworm Michael Kjörling <2695bd53d63c@ewoof.net> - 2023-11-12 22:10 +0100
    Re: USB2 not working after upgrading to bookworm Rafa <rafa@rptv.info> - 2023-11-13 15:10 +0100

#263447 — USB2 not working after upgrading to bookworm

FromRafa <rafa@rptv.info>
Date2023-11-12 20:40 +0100
SubjectUSB2 not working after upgrading to bookworm
Message-ID<Hzotj-4X4o-7@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi,

I have an issue regarding USB2 after upgrading a desktop machine from
Debian 11 (bullseye) to Debian 12 (bookworm).

USB3 ports work fine, but USB2 ports do not.

I still have bullseye installed in the machine and when I boot bullseye
I can use both USB2 and USB3. But when I boot bookworm I can only use
USB3.

I have compared the output from the "lspci" and "lsusb" commands
obtained with bullseye and with bookworm, but they seem quite similar to
me.

In bookworm, command "dmesg -w" writes out several error messages like
the following when I plug a USB device in a USB2 port:

  usb 4-1: device descriptor read/64, error -32

  usb 4-1: device not accepting address 4, error -32

----

$ lspci -nnk
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD/ATI] RD9x0/RX980 Host Bridge [1002:5a14] (rev 02)
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] RD9x0/RX980 Host Bridge [1002:5a14]
00:02.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GFX port 0) [1002:5a16]
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GFX port 0) [1002:5a14]
        Kernel driver in use: pcieport
00:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 0) [1002:5a18]
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 0) [1002:5a14]
        Kernel driver in use: pcieport
00:09.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 4) [1002:5a1c]
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 4) [1002:5a14]
        Kernel driver in use: pcieport
00:11.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode] [1002:4390] (rev 40)
        Subsystem: Gigabyte Technology Co., Ltd GA-MA770-DS3rev2.0 Motherboard [1458:b002]
        Kernel driver in use: ahci
        Kernel modules: ahci
00:12.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
        Subsystem: Gigabyte Technology Co., Ltd GA-78/880-series motherboard [1458:5004]
        Kernel driver in use: ohci-pci
        Kernel modules: ohci_pci
00:12.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
        Subsystem: Gigabyte Technology Co., Ltd GA-78/880-series motherboard [1458:5004]
        Kernel driver in use: ehci-pci
        Kernel modules: ehci_pci
00:13.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
        Subsystem: Gigabyte Technology Co., Ltd GA-78/880-series motherboard [1458:5004]
        Kernel driver in use: ohci-pci
        Kernel modules: ohci_pci
00:13.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
        Subsystem: Gigabyte Technology Co., Ltd GA-78/880-series motherboard [1458:5004]
        Kernel driver in use: ehci-pci
        Kernel modules: ehci_pci
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller [1002:4385] (rev 42)
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller [1002:4385]
        Kernel driver in use: piix4_smbus
        Kernel modules: i2c_piix4, sp5100_tco
00:14.1 IDE interface [0101]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller [1002:439c] (rev 40)
        Subsystem: Gigabyte Technology Co., Ltd GA-MA78GM-S2H motherboard [1458:5002]
        Kernel driver in use: pata_atiixp
        Kernel modules: pata_atiixp, ata_generic
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) [1002:4383] (rev 40)
        Subsystem: Gigabyte Technology Co., Ltd SBx00 Azalia (Intel HDA) [1458:a002]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller [1002:439d] (rev 40)
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller [1002:439d]
00:14.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge [1002:4384] (rev 40)
00:14.5 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller [1002:4399]
        Subsystem: Gigabyte Technology Co., Ltd GA-78/880-series motherboard [1458:5004]
        Kernel driver in use: ohci-pci
        Kernel modules: ohci_pci
00:16.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
        Subsystem: Gigabyte Technology Co., Ltd GA-78/880-series motherboard [1458:5004]
        Kernel driver in use: ohci-pci
        Kernel modules: ohci_pci
00:16.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
        Subsystem: Gigabyte Technology Co., Ltd GA-78/880-series motherboard [1458:5004]
        Kernel driver in use: ehci-pci
        Kernel modules: ehci_pci
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 0 [1022:1600]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 1 [1022:1601]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 2 [1022:1602]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 3 [1022:1603]
        Kernel driver in use: k10temp
        Kernel modules: k10temp
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 4 [1022:1604]
        Kernel driver in use: fam15h_power
        Kernel modules: fam15h_power
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 5 [1022:1605]
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti PRO [Radeon HD 7950/8950 OEM / R9 280] [1002:679a]
        Subsystem: Gigabyte Technology Co., Ltd Tahiti PRO [Radeon HD 7950/8950 OEM / R9 280] [1458:229a]
        Kernel driver in use: radeon
        Kernel modules: radeon, amdgpu
01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti HDMI Audio [Radeon HD 7870 XT / 7950/7970] [1002:aaa0]
        Subsystem: Gigabyte Technology Co., Ltd Tahiti HDMI Audio [Radeon HD 7870 XT / 7950/7970] [1458:aaa0]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
02:00.0 USB controller [0c03]: VIA Technologies, Inc. VL805/806 xHCI USB 3.0 Controller [1106:3483] (rev 01)
        Subsystem: Gigabyte Technology Co., Ltd VL805/806 xHCI USB 3.0 Controller [1458:5007]
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)
        Subsystem: Gigabyte Technology Co., Ltd Onboard Ethernet [1458:e000]
        Kernel driver in use: r8169
        Kernel modules: r8169
04:07.0 FireWire (IEEE 1394) [0c00]: VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller [1106:3044] (rev 46)
        Subsystem: VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller [1106:3044]
        Kernel driver in use: firewire_ohci
        Kernel modules: firewire_ohci

----

$ lsusb
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 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 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 046d:c077 Logitech, Inc. Mouse
Bus 001 Device 003: ID 0461:0010 Primax Electronics, Ltd HP PR1101U / Primax PMX-KPR1101U Keyboard
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

----

# dmesg -w

(plug a USB device in a USB2 port)

[ 1347.852367] usb 4-1: new high-speed USB device number 2 using ehci-pci
[ 1347.980381] usb 4-1: device descriptor read/64, error -32
[ 1348.216388] usb 4-1: device descriptor read/64, error -32
[ 1348.452396] usb 4-1: new high-speed USB device number 3 using ehci-pci
[ 1348.580405] usb 4-1: device descriptor read/64, error -32
[ 1348.816415] usb 4-1: device descriptor read/64, error -32
[ 1348.924446] usb usb4-port1: attempt power cycle
[ 1349.128430] usb 4-1: new high-speed USB device number 4 using ehci-pci
[ 1349.548448] usb 4-1: device not accepting address 4, error -32
[ 1349.676454] usb 4-1: new high-speed USB device number 5 using ehci-pci
[ 1350.092474] usb 4-1: device not accepting address 5, error -32
[ 1350.092518] usb usb4-port1: unable to enumerate USB device
[ 1350.448491] usb 7-1: new full-speed USB device number 2 using ohci-pci
[ 1350.608495] usb 7-1: device descriptor read/64, error -32
[ 1350.876513] usb 7-1: device descriptor read/64, error -32
[ 1351.140527] usb 7-1: new full-speed USB device number 3 using ohci-pci
[ 1351.300533] usb 7-1: device descriptor read/64, error -32
[ 1351.568546] usb 7-1: device descriptor read/64, error -32
[ 1351.676598] usb usb7-port1: attempt power cycle
[ 1351.912562] usb 4-1: new high-speed USB device number 6 using ehci-pci
[ 1352.048557] usb 4-1: device descriptor read/64, error -32
[ 1352.284580] usb 4-1: device descriptor read/64, error -32
[ 1352.520587] usb 4-1: new high-speed USB device number 7 using ehci-pci
[ 1352.648595] usb 4-1: device descriptor read/64, error -32
[ 1352.884607] usb 4-1: device descriptor read/64, error -32
[ 1352.992647] usb usb4-port1: attempt power cycle
[ 1353.196618] usb 4-1: new high-speed USB device number 8 using ehci-pci
[ 1353.616632] usb 4-1: device not accepting address 8, error -32
[ 1353.744652] usb 4-1: new high-speed USB device number 9 using ehci-pci
[ 1354.160667] usb 4-1: device not accepting address 9, error -32
[ 1354.160713] usb usb4-port1: unable to enumerate USB device
[ 1354.520681] usb 7-1: new full-speed USB device number 5 using ohci-pci
[ 1354.680630] usb 7-1: device descriptor read/64, error -32
[ 1354.948700] usb 7-1: device descriptor read/64, error -32
[ 1355.212696] usb 7-1: new full-speed USB device number 6 using ohci-pci
[ 1355.372726] usb 7-1: device descriptor read/64, error -32
[ 1355.640738] usb 7-1: device descriptor read/64, error -32
[ 1355.748784] usb usb7-port1: attempt power cycle

(and so on)

----

Any hints would be appreciated.

Thanks.

Rafa.

[toc] | [next] | [standalone]


#263450

FromMichael Kjörling <2695bd53d63c@ewoof.net>
Date2023-11-12 22:10 +0100
Message-ID<HzpSp-4Y1N-5@gated-at.bofh.it>
In reply to#263447
On 12 Nov 2023 19:25 +0000, from rafa@rptv.info (Rafa):
> I have an issue regarding USB2 after upgrading a desktop machine from
> Debian 11 (bullseye) to Debian 12 (bookworm).
> 
> USB3 ports work fine, but USB2 ports do not.
> 
> I still have bullseye installed in the machine and when I boot bullseye
> I can use both USB2 and USB3. But when I boot bookworm I can only use
> USB3.

What kernel, systemd and udev versions are installed and running in
the Bookworm install?

Just how _did_ you "upgrade" the system while retaining the ability to
boot the older install? I take it that this would mean that you didn't
do the normal in-place upgrade but rather something else, and exactly
what that something else is might provide clues. Alternatively, please
specify more exactly what you mean by "boot bullseye" and "boot
bookworm".

Do you see any difference if you hook up a USB 2 device to a port
which is physically USB 2 or USB 3?

-- 
Michael Kjörling                     🔗 https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”

[toc] | [prev] | [next] | [standalone]


#263479

FromRafa <rafa@rptv.info>
Date2023-11-13 15:10 +0100
Message-ID<HzFNv-5aMs-5@gated-at.bofh.it>
In reply to#263447

[Multipart message — attachments visible in raw view] — view raw

Hi,

Thank you for your quick reply, Michael.

On Sun, Nov 12, 2023 at 09:05:19PM +0000, Michael Kjörling wrote:
>
> What kernel, systemd and udev versions are installed and running in
> the Bookworm install?

kernel version 6.1 and systemd and udev version 252:

$ uname -a
Linux xxxxxxxx 6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux

$ LANG=C dpkg-query --list systemd
[...]
||/ Name           Version          Architecture Description
+++-==============-================-============-=================================
ii  systemd        252.17-1~deb12u1 amd64        system and service manager

$ LANG=C dpkg-query --list udev
[...]
||/ Name           Version          Architecture Description
+++-==============-================-============-===================================
ii  udev           252.17-1~deb12u1 amd64        /dev/ and hotplug management daemon

> Just how _did_ you "upgrade" the system while retaining the ability to
> boot the older install? [...]

I followed chapter 4 "Upgrades from Debian 11 (bullseye)" from the "Release
Notes for Debian 12 (bookworm), 64-bit PC" manual.

With regard to the ability to boot the older install, I keep two systems
installed on the machine, on different file system partitions (I will
call one of them the "TEST" system and the other one the "PROD" system).
Normally, both of them are Debian stable systems.

The grub menu contains entries to boot either system.

When I am ready to upgrade to a new version, first I upgrade the "TEST"
system and I verify that everything is working fine. If it is not, I try
to solve any problem I have before upgrading the "PROD" system.

Currently I have upgraded the "TEST" system to bookworm, while the
"PROD" system is still at bullseye.

This is how I am able to boot to either system.

> [...] please
> specify more exactly what you mean by "boot bullseye" and "boot
> bookworm".

In the current configuration, "boot bullseye" means boot the "PROD"
system and "boot bookworm" means boot the "TEST" system.

> Do you see any difference if you hook up a USB 2 device to a port
> which is physically USB 2 or USB 3?

When using a USB2 port I get error messages in dmesg, and cannot use the
device. When using a USB3 port, instead, messages in dmesg seem to be ok
and I can mount the device and work with it normally.

------

# dmesg -w

(plug a USB2 device into a USB2 port)

[  918.226025] usb 7-1: new full-speed USB device number 53 using ohci-pci
[  918.386029] usb 7-1: device descriptor read/64, error -32
[  918.654039] usb 7-1: device descriptor read/64, error -32
[  918.946053] usb 7-1: new full-speed USB device number 54 using ohci-pci
[  919.106056] usb 7-1: device descriptor read/64, error -32
[  919.374063] usb 7-1: device descriptor read/64, error -32
[  919.482114] usb usb7-port1: attempt power cycle
[  919.718072] usb 2-1: new high-speed USB device number 80 using ehci-pci
[  919.846076] usb 2-1: device descriptor read/64, error -32
[  920.086086] usb 2-1: device descriptor read/64, error -32
[  920.322096] usb 2-1: new high-speed USB device number 81 using ehci-pci
[  920.450099] usb 2-1: device descriptor read/64, error -32
[  920.686105] usb 2-1: device descriptor read/64, error -32
[  920.794138] usb usb2-port1: attempt power cycle
[  920.998137] usb 2-1: new high-speed USB device number 82 using ehci-pci
[  921.414135] usb 2-1: device not accepting address 82, error -32
[  921.542137] usb 2-1: new high-speed USB device number 83 using ehci-pci
[  921.958185] usb 2-1: device not accepting address 83, error -32
[  921.958233] usb usb2-port1: unable to enumerate USB device
[  922.342175] usb 7-1: new full-speed USB device number 56 using ohci-pci
[  922.502170] usb 7-1: device descriptor read/64, error -32
[  922.770180] usb 7-1: device descriptor read/64, error -32
[  923.062191] usb 7-1: new full-speed USB device number 57 using ohci-pci
[  923.222194] usb 7-1: device descriptor read/64, error -32
[  923.490206] usb 7-1: device descriptor read/64, error -32
[  923.598258] usb usb7-port1: attempt power cycle
[  923.834214] usb 2-1: new high-speed USB device number 84 using ehci-pci
[  923.962255] usb 2-1: device descriptor read/64, error -32
[  924.198226] usb 2-1: device descriptor read/64, error -32
[  924.434235] usb 2-1: new high-speed USB device number 85 using ehci-pci
[  924.562241] usb 2-1: device descriptor read/64, error -32
[  924.798250] usb 2-1: device descriptor read/64, error -32
[  924.906283] usb usb2-port1: attempt power cycle
[  925.110259] usb 2-1: new high-speed USB device number 86 using ehci-pci
[  925.526270] usb 2-1: device not accepting address 86, error -32
[  925.654276] usb 2-1: new high-speed USB device number 87 using ehci-pci
[  926.070290] usb 2-1: device not accepting address 87, error -32
[  926.070335] usb usb2-port1: unable to enumerate USB device
[  926.426303] usb 7-1: new full-speed USB device number 59 using ohci-pci
[  926.586306] usb 7-1: device descriptor read/64, error -32
[  926.854316] usb 7-1: device descriptor read/64, error -32
[  927.118326] usb 7-1: new full-speed USB device number 60 using ohci-pci
[  927.278334] usb 7-1: device descriptor read/64, error -32
[  927.546345] usb 7-1: device descriptor read/64, error -32
[  927.654393] usb usb7-port1: attempt power cycle

(...)

------

# dmesg -w

(plug the same USB2 device into a USB3 port)

[ 1017.196371] usb 3-1.3: new high-speed USB device number 8 using xhci_hcd
[ 1017.308213] usb 3-1.3: New USB device found, idVendor=13fe, idProduct=4200, bcdDevice= 1.10
[ 1017.308224] usb 3-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1017.308230] usb 3-1.3: Product: USB DISK 2.0
[ 1017.308234] usb 3-1.3: Manufacturer:         
[ 1017.308238] usb 3-1.3: SerialNumber: 070A5A62E0831395
[ 1017.309497] usb-storage 3-1.3:1.0: USB Mass Storage device detected
[ 1017.309806] scsi host6: usb-storage 3-1.3:1.0
[ 1018.339384] scsi 6:0:0:0: Direct-Access              USB DISK 2.0     PMAP PQ: 0 ANSI: 6
[ 1018.339945] sd 6:0:0:0: Attached scsi generic sg3 type 0
[ 1018.340293] sd 6:0:0:0: [sdc] 60530688 512-byte logical blocks: (31.0 GB/28.9 GiB)
[ 1018.340585] sd 6:0:0:0: [sdc] Write Protect is off
[ 1018.340592] sd 6:0:0:0: [sdc] Mode Sense: 45 00 00 00
[ 1018.340873] sd 6:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 1018.478114]  sdc: sdc1
[ 1018.478578] sd 6:0:0:0: [sdc] Attached SCSI removable disk

------

Thanks.

Rafa.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web