Bug 1212629 - All USB ports and attached devices are abruptly disconnected, and data is lost.
Summary: All USB ports and attached devices are abruptly disconnected, and data is lost.
Status: NEW
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Leap 15.5
Hardware: 64bit openSUSE Leap 15.5
: P5 - None : Critical (vote)
Target Milestone: ---
Assignee: Oliver Neukum
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-22 15:40 UTC by Rainer Hurtado Navarro
Modified: 2023-09-26 14:40 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
dsmeg kde-live 15.5 (84.45 KB, text/plain)
2023-06-27 22:03 UTC, Rainer Hurtado Navarro
Details
dsmeg installed system 15.5 (85.85 KB, text/plain)
2023-06-27 22:05 UTC, Rainer Hurtado Navarro
Details
hwinfo kde-live 15.5 (505.99 KB, text/plain)
2023-06-27 22:05 UTC, Rainer Hurtado Navarro
Details
hwinfo installed system 15.5 (1.05 MB, text/plain)
2023-06-27 22:06 UTC, Rainer Hurtado Navarro
Details
cat dsmeg installed system 15.5 (larger ouput, after rmmod/modprobe xhci_pci, xhci_hcd). (193.91 KB, text/plain)
2023-07-04 14:12 UTC, Rainer Hurtado Navarro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Hurtado Navarro 2023-06-22 15:40:14 UTC
Issue https://bugzilla.opensuse.org/show_bug.cgi?id=1200781 endures in installed openSuSE Leap 15.5.
It takes little time to USB stops.

The bug affects all USB ports and attached devices (hard disks, ethernet adapter, keyboard, mouse, &c.), so all devices are abruptly disconnected, and data is lost.

Same hardware as referred in the bug 1200781.

uname -a

Linux $HOSTNAME 5.14.21-150500.53-default #1 SMP PREEMPT_DYNAMIC Wed May 10 07:56:26 UTC 2023 (b630043) x86_64 x86_64 x86_64 GNU/Linux

The bug does not happen while using Live KDE media or during installation (installer works fine).
Comment 1 Rainer Hurtado Navarro 2023-06-22 15:44:10 UTC
Do the kernel in Live KDE media or installation DVD has any difference or or different parameters passed, than the installed kernel? Which are they?
Comment 2 Takashi Iwai 2023-06-26 12:51:22 UTC
Some packages might tune the parameters for power-saving, and it might change the behavior, too.  For example, tlp is notorious about too aggressive setups.

Please give the hwinfo output from both working (Live image) and non-working (installed Leap 15.5) systems.  Take the dmesg outputs on both, and attach all outputs to Bugzilla.
Comment 3 Rainer Hurtado Navarro 2023-06-27 22:03:02 UTC
Created attachment 867847 [details]
dsmeg kde-live 15.5
Comment 4 Rainer Hurtado Navarro 2023-06-27 22:05:01 UTC
Created attachment 867848 [details]
dsmeg installed system 15.5
Comment 5 Rainer Hurtado Navarro 2023-06-27 22:05:31 UTC
Created attachment 867849 [details]
hwinfo kde-live 15.5
Comment 6 Rainer Hurtado Navarro 2023-06-27 22:06:08 UTC
Created attachment 867850 [details]
hwinfo installed system 15.5
Comment 7 Takashi Iwai 2023-07-03 13:06:57 UTC
The log contains:

[  790.313485] xhci_hcd 0000:02:00.3: xHCI host not responding to stop endpoint command
[  790.313514] xhci_hcd 0000:02:00.3: xHCI host controller not responding, assume dead
[  790.313556] xhci_hcd 0000:02:00.3: HC died; cleaning up

So it looks like a USB host issue.

Is it a built-in USB or a docking station?

In anyway, tossed to Oliver, as this seems to be a USB driver problem.
Comment 8 Rainer Hurtado Navarro 2023-07-04 14:04:14 UTC
(In reply to Takashi Iwai from comment #7)
> The log contains:
> 
> [  790.313485] xhci_hcd 0000:02:00.3: xHCI host not responding to stop
> endpoint command
> [  790.313514] xhci_hcd 0000:02:00.3: xHCI host controller not responding,
> assume dead
> [  790.313556] xhci_hcd 0000:02:00.3: HC died; cleaning up
> 
> So it looks like a USB host issue.
> 
> Is it a built-in USB or a docking station?
> 
> In anyway, tossed to Oliver, as this seems to be a USB driver problem.

Hello.
It is a built-in USB.
Comment 9 Rainer Hurtado Navarro 2023-07-04 14:12:32 UTC
Created attachment 867980 [details]
cat dsmeg installed system 15.5 (larger ouput, after rmmod/modprobe xhci_pci, xhci_hcd).

rmmod/modprobe xhci_pci, xhci_hcd are not always successful, and their effect last 60 seconds, 80 seconds, when the issue occurs.

Then, all devices are disconnected (external hdd, keyboard, mouse, &c.).

I tlp is disabled.

Issue endures.
Comment 10 Rainer Hurtado Navarro 2023-07-04 14:17:42 UTC
(In reply to Takashi Iwai from comment #2)
> Some packages might tune the parameters for power-saving, and it might
> change the behavior, too.  For example, tlp is notorious about too
> aggressive setups.
> 
> Please give the hwinfo output from both working (Live image) and non-working
> (installed Leap 15.5) systems.  Take the dmesg outputs on both, and attach
> all outputs to Bugzilla.

But I do think that it is power management related, because the issue is more likely to occur when the laptop is un-plugged to AC/DC (it is powered by battery).
Comment 11 Rainer Hurtado Navarro 2023-07-26 16:13:12 UTC
Issue endures after kernel update:
Linux $HOSTNAME 5.14.21-150500.55.7-default #1 SMP PREEMPT_DYNAMIC Mon Jul 10 18:53:13 UTC 2023 (4204a3a) x86_64 x86_64 x86_64 GNU/Linux

Issue is more likely to occur when laptop is powered by battery, although battery was 100% charged. It has no threshold of battery drainage to begin to occur.

TLP is not running.
Comment 12 Rainer Hurtado Navarro 2023-08-08 00:21:54 UTC
Issue endures after kernel update. New kernel:
Linux $HOSTNAME 5.14.21-150500.55.12-default #1 SMP PREEMPT_DYNAMIC Fri Jul 28 08:40:19 UTC 2023 (52c1db3) x86_64 x86_64 x86_64 GNU/Linux
Comment 13 Rainer Hurtado Navarro 2023-09-26 14:40:30 UTC
(40 days ago,) I deleted tlp, tlp-rdw, and installed power-profiles-daemon and the issue is not reproduced in a way noticeable to the user, any longer.

Kernel command line usbcore.autosuspend=-1 was not enough to solve or mitigate the issue, although I keep it:

BOOT_IMAGE=/boot/vmlinuz-5.14.21-150500.55.19-default root=UUID=xxxx splash=silent resume=/dev/xxx preempt=full quiet security=apparmor usbcore.autosuspend=-1 mitigations=auto