2022-09-08 19:57:42

by Hans de Goede

[permalink] [raw]
Subject: DMI modalias based module autoloading broken (6.0.0-rc? - systemd 251.4) ?

Hi All,

I'm sending this to both systemd-devel and lkml since I'm not sure
what is causing this.

For some reason the msi-laptop module is not autoloading on a
MSI S270 (yes that is a very old laptop).

Here is some debugging info:

$ cat /sys/class/dmi/id/modalias
dmi:bvnAmericanMegatrendsInc.:bvrA1013AMSV4.30:bd01/09/2006:svnMICRO-STARINT'LCO.,LTD:pnMS-1013:pvr0131:cvnMICRO-STARINT'LCO.,LTD:ct10:cvrN/A:
$ cat /sys/class/dmi/id/uevent
MODALIAS=dmi:bvnAmericanMegatrendsInc.:bvrA1013AMSV4.30:bd01/09/2006:svnMICRO-STARINT'LCO.,LTD:pnMS-1013:pvr0131:cvnMICRO-STARINT'LCO.,LTD:ct10:cvrN/A:
$ modinfo msi-laptop | grep MS-1013
alias: dmi*:svn*MICRO-STARINT'LCO.,LTD*:pn*MS-1013*:pvr*0131*:cvn*MICRO-STARINT'LCO.,LTD*:

And this does work to load the module:
$ sudo modprobe `cat /sys/class/dmi/id/modalias`

Things already tried:
- checked for relevant selinux denial messages, none found
- checked for modprobe[.d] conf files blacklisting msi-laptop,
none found which is unsurprising since this is a clean
Fedora 37 install

I am more then happy to test any patches or do more debugging
to help solve this.

Regards,

Hans