Closed happyalu closed 1 month ago
I could be misremembering, but I vaguely recall some directory change back in 6.9 or something and I got similar errors.
Root of my problem was my boot.kernelPackages was using one repo and some other kernel line or module or something was using a more up to date repo (was working around some other out dated package or something).
I ended up switching the entry that was using my "non-standard" package repo back to NixOS and was back in business.
The default kernel was not updated to 6.10, this must be caused by your config. If AMDGPU is broken, there's not much we can do about that but wait for the kernel devs to fix it.
Thanks.
I had this in the config which was causing trouble.
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/non-free-firmware-not-loaded-after-update/52183/1
This applies to more than just amdgpu. This also occurred on my laptop with Intel. Specifically the wifi module also could not locate the non-free firmware.
EG: the i915
module also reports the same "non-Free firmware loading is disabled"
Indeed. Looks like even if enableAllFirmware
and enableRedistributaleFirmware
are true the 6.10 kernel does not load any non-free firmware.
Not an amdgpu specific bug then
Cool! Using the default linux kernel, 6.6.51, worked as expected.
That tells me this is specific to 6.10 and not some general breakage with nixpkgs.
I did look through the 6.9 and 6.10 changelogs and didn't see anything about firmware loading changes. But I didn't read through 6.8 and 6.7.
Kernel 6.8.12 has been working without a problem before 6.8 EOL. The 6.10 kernel was the first with -gnu suffix
Linux zellat2nix 6.10.10-gnu #1-NixOS SMP PREEMPT_DYNAMIC Tue Jan 1 00:00:00 UTC 1980 x86_64 GNU/Linux
Could it be a new patchset which is used in 6.10 kernel?
@coreyoconnor is that on 24.05 or unstable?
I had this on 24.05 with boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
@coreyoconnor is that on 24.05 or unstable?
This is on 24.05. I can test on unstable if that is useful.
I think it could be a problem with
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
For me it seems like this option picks the pkgs.linuxPackages-libre
kernel package.
If I select
boot.kernelPackages = pkgs.linuxPackages_6_10;
it's working normally as expected.
~ % uname -a
Linux zellat2nix 6.10.10 #1-NixOS SMP PREEMPT_DYNAMIC Thu Sep 12 09:13:13 UTC 2024 x86_64 GNU/Linux
~ % lsmod| grep iwlwifi
iwlwifi 561152 1 iwlmvm
cfg80211 1347584 3 iwlmvm,iwlwifi,mac80211
firmware_class 57344 19 btrtl,snd_soc_avs,snd_hda_intel,intel_ipu6,xhci_pci_renesas,btmtk,snd_sof,drm_display_helper,intel_ipu6_isys,btintel,snd_soc_hdac_hda,btbcm,iwlwifi,btusb,mei_vsc_hw,xe,i915,cfg80211,intel_ishtp
Oh interesting! I'll try the same. I did attempt to look through that selection code but got lost XD
On Mon, Sep 16, 2024, 11:22 jeff84 @.***> wrote:
I think it could be a problem with boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; For me it seems like this option picks the pkgs.linuxPackages-libre kernel package.
If I select boot.kernelPackages = pkgs.linuxPackages_6_10; it's working normally as expected.
~ % uname -a Linux zellat2nix 6.10.10 #1-NixOS SMP PREEMPT_DYNAMIC Thu Sep 12 09:13:13 UTC 2024 x86_64 GNU/Linux ~ % lsmod| grep iwlwifi iwlwifi 561152 1 iwlmvm cfg80211 1347584 3 iwlmvm,iwlwifi,mac80211 firmware_class 57344 19 btrtl,snd_soc_avs,snd_hda_intel,intel_ipu6,xhci_pci_renesas,btmtk,snd_sof,drm_display_helper,intel_ipu6_isys,btintel,snd_soc_hdac_hda,btbcm,iwlwifi,btusb,mei_vsc_hw,xe,i915,cfg80211,intel_ishtp
— Reply to this email directly, view it on GitHub https://github.com/NixOS/nixpkgs/issues/341867#issuecomment-2353605065, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAIMDPCPSPOC5AWJP26I5DZW4OV3AVCNFSM6AAAAABOG6TT4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJTGYYDKMBWGU . You are receiving this because you were mentioned.Message ID: @.***>
Also happened to me with with https://releases.nixos.org/nixos/24.05/nixos-24.05.4974.8f7492cce289/nixexprs.tar.xz
and with the boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
jeff84s comment of manually selecting the package version appears to be a temporary fix: https://github.com/NixOS/nixpkgs/issues/341867#issuecomment-2353605065
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/non-free-firmware-not-loaded-after-update/52183/3
As suggested in https://github.com/NixOS/nixpkgs/issues/341867#issuecomment-2353605065, it seems that the new logic for zfs' latestCompatibleLinuxKernel (introduced in https://github.com/NixOS/nixpkgs/commit/27b52adcb4c933be136b802af32765ca0dc4b75d) chooses a libre Kernel:
Working commit (f4c846a)
nix-repl> pkgs.zfs_2_2.passthru.latestCompatibleLinuxPackages.kernel.isLibre
false
nix-repl> pkgs.zfs_2_2.passthru.latestCompatibleLinuxPackages.kernel.name
"linux-6.6.50"
Non-working commit (8f7492c):
nix-repl> pkgs.zfs_2_2.passthru.latestCompatibleLinuxPackages.kernel.isLibre
true
nix-repl> pkgs.zfs_2_2.passthru.latestCompatibleLinuxPackages.kernel.name
"linux-6.10.10"
It seems https://github.com/NixOS/nixpkgs/commit/34e1748391b028788b14a30740309e1739293c77 might be the culprit.
The fix should be coming to a 24.05 channel near you in the coming days.
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
Describe the bug
I'm using flakes to configure my nixos (24.05) hosts. Updating from commit f1bad50880bae73ff2d82fafc22010b4fc097a9c to e65aa8301ba4f0ab8cb98f944c14aa9da07394f8 caused me to boot with bad display.
It seems to be related to kernel change 6.6 -> 6.10: I see this in the boot log.
I have reverted this back, but I'm not sure if I need to change anything in my host config to fix this, or just wait for a kernel update.