You are not logged in.

#1 2022-02-15 19:53:33

unfa
Member
From: Warsaw/Poland
Registered: 2016-11-07
Posts: 18
Website

Mouse stuttering with RT kernel when PCIe USB controller present

I have been experiencing a very strange behavior in Arch Linux lately whenever a PCIe USB controller is present. I have first assumed this is caused by a hardware fault, but after returning 2 devices and now testing a 3rd from a different manufacturer I still have the same issues, so I am starting to suspect this is software-related.

I am experiencing strange mouse cursor stuttering and keyboard strokes being lost when system experiences high load.

Now - this only happens when I'm running `linux-rt` or `linux-lqx` kernels. Using the generic `linux` kernel that Arch Linux provides makes these problems go away.

It also didn't happen until I've added a PCIe USB 3.0 4-port USB controller to my system (SonnetTech)
The first unit died a few months after purchase, I've replaced it with a new unit. That unit didn't work in one of the PCIe slots and had to be used in another, so I sent it back immediately as it presented the same issues as before.
Now I got a 3rd card from a different vendor (StarTech) - this one made my mouse skip but doesn't seem to cause other issues.

I have noticed that mouse stuttering seems to correspond with these messages appreaing in `dmesg`:

[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Ignore frame ID field, use SIA bit instead
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Frame ID 1413 (reg 11288, index 2) beyond range (1414, 258)
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Ignore frame ID field, use SIA bit instead
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Frame ID 1413 (reg 11288, index 3) beyond range (1414, 258)
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Ignore frame ID field, use SIA bit instead
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Frame ID 1413 (reg 11304, index 4) beyond range (1416, 260)
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Ignore frame ID field, use SIA bit instead
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Frame ID 1413 (reg 11307, index 5) beyond range (1416, 260)
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Ignore frame ID field, use SIA bit instead
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Frame ID 1413 (reg 11307, index 6) beyond range (1416, 260)
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Ignore frame ID field, use SIA bit instead
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Frame ID 1421 (reg 11358, index 3) beyond range (1422, 266)
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Ignore frame ID field, use SIA bit instead
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Frame ID 1421 (reg 11358, index 4) beyond range (1422, 266)
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Ignore frame ID field, use SIA bit instead
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Frame ID 1421 (reg 11358, index 5) beyond range (1422, 266)
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Ignore frame ID field, use SIA bit instead
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Frame ID 1421 (reg 11358, index 6) beyond range (1422, 266)
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Ignore frame ID field, use SIA bit instead
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Frame ID 1421 (reg 11358, index 7) beyond range (1422, 266)
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Ignore frame ID field, use SIA bit instead
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Frame ID 1435 (reg 11471, index 7) beyond range (1436, 280)
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Ignore frame ID field, use SIA bit instead

Also:

[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Ignore frame ID field, use SIA bit instead
[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: WARN Event TRB for slot 9 ep 4 with no TDs queued?

I find it hard to believe that all 3 devices I got are broken out of the box and disturb the USB subsystem when plugged in.
With the first 2 cards mouse stutters were only present if anything was plugged into the card. If all USB ports were free, the stutters didn't happen.
With the 3rd card though the stutters were there even if the card was not actively utilized. Also connecting my peripherals to it doesn't seem to make a difference. Stutters are there no matter if the mouse is plugged into the PCIe extension card, or motherboard's built-in USB ports.

Unrelated, as the USB extension card was not used at the time (I was waiting for the 3rd one to arrive):

I also have had issues with audio playback - I've heard lots of clicks in playback that were thankfully not transmitted to YouTube when I streamed live at 6th of February.
This is super strange, as it indicates the audio issues were happening at the audio interface's level, but only on output - my voice captured by it was clean. I did not use the USB extension though.
I thought my system's DSP processing was having issues and that the audio data I hear and that viewers got will have the same clicks, but it was not the case.
I was using `linux-lqx` kernel at the time, hoping to improve my realtime audio performance.`

My system details:

❯ inxi -F
System:    Host: unfa-desktop Kernel: 5.15.3.21.realtime1-1-rt x86_64 bits: 64 Desktop: KDE Plasma 5.24.0 Distro: Arch Linux
Machine:   Type: Desktop Mobo: Gigabyte model: B550 AORUS ELITE V2 v: x.x serial: <superuser required>
           UEFI: American Megatrends LLC. v: F13 date: 07/08/2021
CPU:       Info: 12-Core model: AMD Ryzen 9 3900X bits: 64 type: MT MCP cache: L2: 6 MiB
           Speed: 2227 MHz min/max: 2200/3800 MHz Core speeds (MHz): 1: 2227 2: 2198 3: 2195 4: 2196 5: 2193 6: 2195 7: 2193
           8: 2196 9: 2196 10: 2189 11: 2195 12: 2195 13: 2196 14: 2195 15: 2196 16: 2195 17: 2195 18: 2195 19: 2196 20: 2195
           21: 2195 22: 2199 23: 2194 24: 2196
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] driver: amdgpu
           v: kernel
           Device-2: Logitech HD Pro Webcam C920 type: USB driver: snd-usb-audio,uvcvideo
           Device-3: MacroSilicon USB Video type: USB driver: hid-generic,snd-usb-audio,usbhid,uvcvideo
           Display: x11 server: X.Org 1.21.1.3 driver: loaded: amdgpu unloaded: modesetting,vesa resolution: 1: 1920x1080~60Hz
           2: 1920x1080~60Hz
           OpenGL: renderer: AMD Radeon RX 580 Series (POLARIS10 DRM 3.42.0 5.15.3.21.realtime1-1-rt LLVM 13.0.1)
           v: 4.6 Mesa 21.3.6
Audio:     Device-1: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] driver: snd_hda_intel
           Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio driver: snd_hda_intel
           Device-3: PreSonus Audio Studio 24c type: USB driver: snd-usb-audio
           Device-4: Logitech HD Pro Webcam C920 type: USB driver: snd-usb-audio,uvcvideo
           Device-5: MacroSilicon USB Video type: USB driver: hid-generic,snd-usb-audio,usbhid,uvcvideo
           Device-6: M-Audio Oxygen 49 type: USB driver: snd-usb-audio
           Sound Server-1: ALSA v: k5.15.3.21.realtime1-1-rt running: yes
           Sound Server-2: PipeWire v: 0.3.45 running: yes
Network:   Device-1: Realtek RTL8125 2.5GbE driver: r8169
           IF: eno1 state: up speed: 1000 Mbps duplex: full mac: 18:c0:4d:ae:35:7d
           IF-ID-1: enp1s0f0u4 state: unknown speed: -1 duplex: half mac: 6a:5c:da:a0:0c:ae
           IF-ID-2: zt7nnmwu6v state: unknown speed: 10 Mbps duplex: full mac: 4e:06:00:9d:8c:52
Bluetooth: Device-1: OnePlus (Shenzhen) OnePlus type: USB driver: rndis_host
           Report: This feature requires one of these tools: hciconfig/bt-adapter
Drives:    Local Storage: total: 5.69 TiB used: 3.64 TiB (64.0%)
           ID-1: /dev/sda vendor: Western Digital model: WD20EZRZ-00Z5HB0 size: 1.82 TiB
           ID-2: /dev/sdb vendor: Western Digital model: WD40EZRZ-22GXCB0 size: 3.64 TiB
           ID-3: /dev/sdc vendor: Transcend model: TS256GMTS400 size: 238.47 GiB
Partition: ID-1: / size: 1.82 TiB used: 522.88 GiB (28.1%) fs: btrfs dev: /dev/bcache0
           ID-2: /boot size: 475.9 MiB used: 242 MiB (50.8%) fs: ext4 dev: /dev/sdc4
           ID-3: /boot/efi size: 10 MiB used: 140 KiB (1.4%) fs: vfat dev: /dev/sdc1
           ID-4: /home size: 1.82 TiB used: 522.88 GiB (28.1%) fs: btrfs dev: /dev/bcache0
Swap:      ID-1: swap-1 type: partition size: 64 GiB used: 0 KiB (0.0%) dev: /dev/sdc2
Sensors:   System Temperatures: cpu: 33.0 C mobo: 30.0 C gpu: amdgpu temp: 44.0 C
           Fan Speeds (RPM): N/A gpu: amdgpu fan: 757
Info:      Processes: 754 Uptime: 47m Memory: 31.35 GiB used: 5.66 GiB (18.1%) Shell: fish inxi: 3.3.08

Have anybody experienced something like this?
What could be causing this? Is this a kernel bug?


I make videos about audio production using Linux & FOSS: YouTube · Odysee · PeerTube

Offline

#2 2022-02-19 02:37:44

squeaks
Member
Registered: 2022-02-01
Posts: 21

Re: Mouse stuttering with RT kernel when PCIe USB controller present

I have a similar setup and also experienced very rare sporadic audio clicks or interruptions of short duration (<100ms?). It happened so infrequently though and nothing was in the journal so I've ignored it.

I am using pipewire and the latest stable kernel (not RT). I'm using kwin_wayland. The interruptions occurred while using the USB connection to my DAC. I may try spdif to see if the problem goes away.

My logitech c920 produces the following spam ~10/second:

Feb 18 21:22:08 antec-arch kernel: usb 5-2.3: Failed to query (SET_CUR) UVC control 6 on unit 1: -32 (exp. 2).
Feb 18 21:22:08 antec-arch kernel: usb 5-2.3: Failed to query (SET_CUR) UVC control 6 on unit 1: -32 (exp. 2).

On your system which device corresponds to 01:00.0, provide the output of lspci -k :

[wto lut 15 20:15:53 2022] xhci_hcd 0000:01:00.0: Ignore frame ID field, use SIA bit instead

Antec 1200, XSPC Rasa 750 RX360 (v1), Swiftech MCP655TM 12 VDC Laing D5, Monsoon Series Two D5 Dual Bay Res

Offline

#3 2022-02-23 15:05:43

unfa
Member
From: Warsaw/Poland
Registered: 2016-11-07
Posts: 18
Website

Re: Mouse stuttering with RT kernel when PCIe USB controller present

Ah, I see these `Failed to query UVC control` messages as well. I also have a Logitech C920 as a secondary camera.
But it's something different. I've switched back to the generic kernel, since when using it I at least don't have my mouse lagging around, and I don't need super low latency, just a stable performant system.


I make videos about audio production using Linux & FOSS: YouTube · Odysee · PeerTube

Offline

#4 2022-03-25 23:56:30

unfa
Member
From: Warsaw/Poland
Registered: 2016-11-07
Posts: 18
Website

Re: Mouse stuttering with RT kernel when PCIe USB controller present

The problem has struck again, this time on stock Arch Linux kernel 5.16.16-arch1-1.
I've first noticed it today after doing a full system upgrade yesterday.
I suspect a kernel upgrade has brought a bug over that previously was in the RT and LQX kernels.

Last edited by unfa (2022-03-26 00:36:58)


I make videos about audio production using Linux & FOSS: YouTube · Odysee · PeerTube

Offline

#5 2022-06-09 12:35:19

sebastian-65
Member
Registered: 2021-11-08
Posts: 35

Re: Mouse stuttering with RT kernel when PCIe USB controller present

@unfa I'm experiencing the same thing for some time now. Also this thread seems to be about the same problem.

- Kernel: zfs-kernel 5.17.9-arch1-1
- GPU: Intel TigerLake-LP GT2 [Iris Xe Graphics]

> mouse cursor stuttering and keyboard strokes being lost when system experiences high load.

This. Yes, I have the same feeling it happens especially when something more demanding is going on.

Last edited by sebastian-65 (2022-06-09 12:42:22)


I'm not the sharpest tool in the shed. Say it to me like I'm 5, please!

Arch | ZFS | systemd | XFCE | ASUS S435 | CPU: Intel 11th gen | GPU: Intel Iris Xe Graphics

Offline

Board footer

Powered by FluxBB