Skip to contentSkip to conversation

: mlx5_core does not autoload in Linux 6.18

REGRESSION Demi Marie Obenour 2 participants 3 messages Dec 4, 2025 – Dec 5, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

In Linux 6.18, mlx5_core does not load automatically. This causes my server to not be accessible from the network. Manually loading the module in the initramfs fixes the problem. Everything worked with Linux 6.17.x.

I'm using the linuxPackages_latest package from Nixpkgs. The server is a RISE-7 OVH dedicated server with an AMD Epyc 7402 CPU.

Signature · 2 lines
Sincerely,
Demi Marie Obenour (she/her/hers)
#1 lore raw

Lo! Thx for the report.

Let me CC the maintainers of said driver, maybe they have an idea or even head about the problem already. If not, you might need to bisect this.

Quoted 6 lines · Demi Marie Obenour

In Linux 6.18, mlx5_core does not load automatically. This causes my server to not be accessible from the network. Manually loading the module in the initramfs fixes the problem. Everything worked with Linux 6.17.x.

I'm using the linuxPackages_latest package from Nixpkgs.

Mentioning it like that might scare kernel developers, as they have no idea what this is and thus might suspect that it's a vendor kernel with lots of patches applied. Is that the case? Or is that vanilla or at least close to vanilla?

Quoted 1 line

The server is a RISE-7 OVH dedicated server with an AMD Epyc 7402 CPU.

Ciao, Thorsten

#regzbot ^introduced: v6.17..v6.18
#regzbot title: net: mlx5_core: module does not autoload anymore Linux 6.18

#2 lore raw
Quoted 4 lines · Thorsten Leemhuis

Lo! Thx for the report.

Let me CC the maintainers of said driver, maybe they have an idea or even head about the problem already. If not, you might need to bisect this.

Interestingly, the problem does not reproduce after a reboot and a further Nixpkgs upgrade. This either means that NixOS failed to regenerate the initramfs, or that the problem is not reproducible reliably.

Quoted 6 lines · Demi Marie Obenour
Quoted 5 lines

In Linux 6.18, mlx5_core does not load automatically. This causes my server to not be accessible from the network. Manually loading the module in the initramfs fixes the problem. Everything worked with Linux 6.17.x.

Quoted 6 lines
Quoted 1 line

I'm using the linuxPackages_latest package from Nixpkgs.

Mentioning it like that might scare kernel developers, as they have no idea what this is and thus might suspect that it's a vendor kernel with lots of patches applied. Is that the case? Or is that vanilla or at least close to vanilla?

https://github.com/NixOS/nixpkgs/tree/7905606cfa51a1815787377b9cb04291e87ebcb4/pkgs/os-specific/linux/kernel
shows that there are very few patches. The only ones I see are:

- Change the RANDSTRUCT seed to one provided by NixOS.
- Replace hard-coded paths with ones that are present in NixOS.
- Make Kconfig print ### after every question.
- Change two EXPORT_SYMBOL_GPL to EXPORT_SYMBOL
so that ZFS works with PREEMPT_RT.

Of those, the first one is needed for reproducible builds with RANDSTRUCT. The second is needed because of NixOS's filesystem structure, which isn't FHS-conforming. The third is used by NixOS-specific automation, and the last one is clearly not upstreamable but also will not break anything.

Quoted 6 lines
Quoted 1 line

The server is a RISE-7 OVH dedicated server with an AMD Epyc 7402 CPU.

Ciao, Thorsten

#regzbot ^introduced: v6.17..v6.18
#regzbot title: net: mlx5_core: module does not autoload anymore Linux 6.18

I wonder if this is even a kernel bug. It could be that NixOS generated a broken userspace that couldn't load the module. The problem going away after nixos-rebuild supports this.

Signature · 2 lines
Sincerely,
Demi Marie Obenour (she/her/hers)