Bug 2293600

Summary: kernel-6.9.4-200.fc40.x86_64- USB devices not detected/won't connect
Product: [Fedora] Fedora Reporter: knipp30
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 40CC: acaringi, adscvr, airlied, alciregi, bskeggs, email, hdegoede, hpa, jforbes, josef, kernel-maint, linville, masami256, mchehab, ptalbert, steved, suraj.ghimire7, wcohen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-15 21:49:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
6.8.11 kernel dmesg logs
none
6.9.4 dmesg logs none

Description knipp30 2024-06-21 06:04:23 UTC
Created attachment 2037898 [details]
6.8.11 kernel dmesg logs

Created attachment 2037898 [details]
6.8.11 kernel dmesg logs

1. Please describe the problem:
After update to kernel-6.9.4-200.fc40.x86_64, USB xinput devices are not detected. it seems that the xpad kernel module is not loaded in the 6.9 kernels.

Example- XBOX-like USB controller. Controllers that use x-input.

2. What is the Version-Release number of the kernel:
kernel-6.9.4-200.fc40.x86_64


3. Did it work previously in Fedora? If so, what kernel version did the issue
   *first* appear?  Old kernels are available for download at
   https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :

First found on kernel-6.9.4-200.fc40.x86_64, devices detected and work just fine on 
kernel-6.8.11-300.fc40.x86_64

4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:
a. boot into kernel 6.9.4-200
b. Try and use above USB devices (even in different ports)
c. USB XBOX controller receives power, but is never connected as a controller
d. Depending on the boot, the mouse will/wont work as well.

5. Does this problem occur with the latest Rawhide kernel? To install the
   Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by
   ``sudo dnf update --enablerepo=rawhide kernel``:

Have not tested, will do so if absolutely necessary.

6. Are you running any modules that not shipped with directly Fedora's kernel?:

No

7. Please attach the kernel logs. You can get the complete kernel log
   for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the
   issue occurred on a previous boot, use the journalctl ``-b`` flag.

Will upload both working and non-working logs to the BZ.

Comment 1 knipp30 2024-06-21 06:11:31 UTC
Created attachment 2037899 [details]
6.9.4 dmesg logs

Comment 2 knipp30 2024-06-24 05:55:58 UTC
Issue still present on kernel:
6.9.5-200.fc40.x86_64

Thanks!

Comment 3 knipp30 2024-06-27 19:58:09 UTC
One more update, after some digging I was able to find the following:
https://lore.kernel.org/all/CABRw72orHLEqpAS%3DcW1ThGkVUW0juqc7Y_-N2%3Do-k0rSqgpLxA@mail.gmail.com/

Looks to be a regression from 6.8 > 6.9. 

Please let me know if I can assist.

Comment 4 knipp30 2024-07-03 06:26:53 UTC
Still present in kernel -6.9.7-200.fc40.x86_64

Comment 5 knipp30 2024-07-12 15:23:07 UTC
Still present in kernel 6.9.8-200.fc40.x86_64

Comment 6 knipp30 2024-07-15 18:31:20 UTC
Hi, 

I seem to have found the issue. It seems that the xpad kernel module, which was in the 6.8 and below kernels, is not present in the 6.9.4+ kernels. 

Can this be added back to the kernel?

Comment 7 Justin M. Forbes 2024-07-15 20:40:05 UTC
That module is in the kernel-modules-extra package:

rpm -ql kernel-modules-extra-6.9.7-200.fc40.x86_64 | grep xpad
/lib/modules/6.9.7-200.fc40.x86_64/extra/drivers/input/joystick/psxpad-spi.ko.xz
/lib/modules/6.9.7-200.fc40.x86_64/extra/drivers/input/joystick/xpad.ko.xz

Comment 8 knipp30 2024-07-15 21:29:29 UTC
Hi Justin,

Do you know if there is a reason that this changed between 6.8 and 6.9?

Looking at my installed kernel packages for 6.8.11 and 6.9.7:
~~~
$ rpm -qa |grep 6.8.11
kernel-modules-core-6.8.11-300.fc40.x86_64
kernel-core-6.8.11-300.fc40.x86_64
kernel-modules-6.8.11-300.fc40.x86_64
kernel-6.8.11-300.fc40.x86_64
kernel-devel-6.8.11-300.fc40.x86_64

$ rpm -qa |grep 6.9.7
kernel-modules-core-6.9.7-200.fc40.x86_64
kernel-core-6.9.7-200.fc40.x86_64
kernel-modules-6.9.7-200.fc40.x86_64
kernel-6.9.7-200.fc40.x86_64
kernel-devel-6.9.7-200.fc40.x86_64
~~~

I'll test in a moment and let you know if this resolves the issue.

Thanks!

Comment 9 knipp30 2024-07-15 21:49:32 UTC
Justin, 

Thanks for the update on this! Installing the kernel-modules-extra package fixed this issue and now the xinput devices work as expected. 

There are a handful of users in the Fedora subreddit that had this issue, as well as the mailing list update I shared earlier. Ill do what I can to update any that I see experiencing this issue. 

Ill go ahead and close this BZ, thanks!