Proxmox Kernel USB issue: device disconnect (frame counter not updating; disabled)

mcflym

Renowned Member
Jul 10, 2013
195
9
83
Hi there,

since my upgrade to debian stretch i get the following issue with a usb smartcard reader:

Nov 13 21:13:32 proxmox kernel: ohci-pci 0000:00:13.0: frame counter not updating; disabled
Nov 13 21:13:32 proxmox kernel: ohci-pci 0000:00:13.0: HC died; cleaning up
Nov 13 21:13:32 proxmox kernel: usb 5-1: USB disconnect, device number 2

It works for a unknown time and then disconnects...

A physical reconnect of the usb device will show the device again and will work until it dies again

it seems to be a known issue:
https://lists.debian.org/debian-kernel/2017/05/msg00100.html

is there a fix available?

my config:
root@proxmox:/sys/bus/pci/drivers/ohci-pci# pveversion -v
proxmox-ve: 5.1-26 (running kernel: 4.13.4-1-pve)
pve-manager: 5.1-36 (running version: 5.1-36/131401db)
pve-kernel-4.4.40-1-pve: 4.4.40-82
pve-kernel-4.4.83-1-pve: 4.4.83-96
pve-kernel-4.13.4-1-pve: 4.13.4-26
pve-kernel-4.4.76-1-pve: 4.4.76-94
pve-kernel-4.4.62-1-pve: 4.4.62-88
pve-kernel-4.4.49-1-pve: 4.4.49-86
pve-kernel-4.4.44-1-pve: 4.4.44-84
pve-kernel-4.4.67-1-pve: 4.4.67-92
libpve-http-server-perl: 2.0-6
lvm2: 2.02.168-pve6
corosync: 2.4.2-pve3
libqb0: 1.0.1-1
pve-cluster: 5.0-15
qemu-server: 5.0-17
pve-firmware: 2.0-3
libpve-common-perl: 5.0-20
libpve-guest-common-perl: 2.0-13
libpve-access-control: 5.0-7
libpve-storage-perl: 5.0-16
pve-libspice-server1: 0.12.8-3
vncterm: 1.5-2
pve-docs: 5.1-12
pve-qemu-kvm: 2.9.1-2
pve-container: 2.0-17
pve-firewall: 3.0-3
pve-ha-manager: 2.0-3
ksm-control-daemon: 1.2-2
glusterfs-client: 3.8.8-1
lxc-pve: 2.1.0-2
lxcfs: 2.0.7-pve4
criu: 2.11.1-1~bpo90
novnc-pve: 0.6-4
smartmontools: 6.5+svn4324-1

It worked for years with wheezy, jessie etc...

is it helpful to disable autosuspend?

currently its:
cat /sys/module/usbcore/parameters/autosuspend
2

thanks
 
Last edited:
I need a proxmox staff member who tells me about this issue in the proxmox kernel.

Come on :)
 
Well... :/

It is just this question: Is this fix implemented into the proxmox kernel?
 
This is weird now...

Tried Kernel 4.4.83-1 but the issue still exists?!

Does this mean it's not a kernel thing but a module thing (or something...)?
 
So, the problem is the USB watchdog like mentioned in this thread:

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

The problem is not caused by any changes in the Linux OHCI or USB code (and obviously the VirtualBox USB emulation did not change either). It's almost certainly triggered by the timer wheel rework which went into the 4.8 kernel.

There is a watchdog routine in the OHCI driver which is meant to be run every 250 milliseconds and check whether the frame counter is updating (which happens at most every millisecond). In Linux 4.8, the watchdog routine can be run again after 4 milliseconds or possibly even less. If it sees the same frame counter value twice, it declares the HC dead and unloads the driver. That is the problem.

Is there any chance to fix this issue?
 
Suffering from the same (using a usb serial adapter to readout some smartmeter) I created a workaround:

Either Logwatch for the above and then perform a reset/reload of the USB.
Google for billauer.co.il usb-reset-ehci-uhci-linux
Or cron it every 5 minutes...

Works for me...
 
  • Like
Reactions: mcflym
Is there any update on this ?
I have similar issue. I'm passing through a PCI USB to the VM.

When running nested qemu throuogh android studio emulator my mouse starts randomly freezing until both mouse and keyboard dies.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!