Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load kernel driver with 6.14-rc7 #421

Open
iamkroot opened this issue Mar 18, 2025 · 5 comments
Open

Unable to load kernel driver with 6.14-rc7 #421

iamkroot opened this issue Mar 18, 2025 · 5 comments

Comments

@iamkroot
Copy link

I have compiled the latest rc from https://aur.archlinux.org/packages/linux-mainline (and enabled the CONFIG_DRM_ACCEL_AMDXDNA config)

However, on startup, the driver load fails.

This is the log output:

~ ❯ journalctl -b | grep amdxdna
Mar 18 13:11:52 altair kernel: amdxdna 0000:64:00.1: Direct firmware load for amdnpu/17f0_10/npu.sbin failed with error -2
Mar 18 13:11:52 altair kernel: amdxdna 0000:64:00.1: [drm] *ERROR* aie2_init: failed to request_firmware amdnpu/17f0_10/npu.sbin, ret -2
Mar 18 13:11:52 altair kernel: amdxdna 0000:64:00.1: [drm] *ERROR* amdxdna_probe: Hardware init failed, ret -2
Mar 18 13:11:52 altair kernel: amdxdna 0000:64:00.1: probe with driver amdxdna failed with error -2
~ ❯ l /lib/firmware/amdnpu/17f0_10
.rw-r--r-- 377k root 18 Mar 13:10 npu.sbin
.rw-r--r-- 377k root 18 Mar 13:10 npu.sbin.1.0.0.63
.rw-r--r--  73k root 18 Mar 08:45 npu.sbin.1.0.0.63.zst
.rw-r--r--  73k root 18 Mar 08:45 npu.sbin.1.0.0.63.zst.zst
lrwxrwxrwx    - root 18 Mar 08:45 npu.sbin.zst -> npu.sbin.1.0.0.63.zst
~ ❯ diff /lib/firmware/amdnpu/17f0_10/npu.sbin /lib/firmware/amdnpu/17f0_10/npu.sbin.1.0.0.63 
~ ❯ uname -r                                        
6.14.0-rc7-1-mainline
@iamkroot
Copy link
Author

More info about the files:

  1. I have also built linux-firmware-git package this morning
  2. The npu.sbin.1.0.0.63.zst file was already present. The zstd configs (CONFIG_FW_LOADER_COMPRESS_ZSTD and CONFIG_ZSTD_DECOMPRESS) are on by default.
  3. Just in case, I manually unpacked the archive to npu.sbin.1.0.0.63 and initially created a symlink npu.sbin pointing to this file. Same error.
  4. Taking note from Trying amdxdna from 6.14-rc3 branch - Got noisy errors instead #389 I downloaded the npu.sbin file directly from the kernel.org, but turns out it is the same as the one inside the zst. So no difference there either.

Not sure why request_firmware isn't able to find the file

@maxzhen
Copy link
Collaborator

maxzhen commented Mar 18, 2025

This is on Ubuntu or Fedora?

@iamkroot
Copy link
Author

Ah, I should have clarified. This is on Arch Linux. I assumed now that the driver is in mainline, it would load fine with any distro.

@maxzhen
Copy link
Collaborator

maxzhen commented Mar 18, 2025

Could you double check if both firmware and driver are inside initram? I suspect that only driver is in it, which is why it can't find the firmware.

@tomchiverton
Copy link

tomchiverton commented Apr 8, 2025

I think I have this same issue with a Framework 13" AMD under the Ubuntu 25.04 beta. How would I check " if both firmware and driver are inside initram "?

falken@frame:~$ ls -laht /usr/lib/firmware/amdnpu/1502_00/
total 80K
drwxr-xr-x 2 root root 4.0K Apr  6 10:40 .
drwxr-xr-x 5 root root 4.0K Apr  6 10:40 ..
-rw-r--r-- 1 root root  72K Mar 17 12:59 npu.sbin.1.5.2.380.zst
lrwxrwxrwx 1 root root   22 Mar 17 12:59 npu.sbin.zst -> npu.sbin.1.5.2.380.zst
falken@frame:~$ journalctl |grep amdn|tail
Apr 05 12:55:45 frame kernel: amdxdna 0000:c2:00.1: Direct firmware load for amdnpu/1502_00/npu.sbin failed with error -2
falken@frame:~$ dpkg -l|grep linux-firm
ii  linux-firmware                                      20250317.git1d4c88ee-0ubuntu1              amd64        Firmware for Linux kernel drivers
falken@frame:~$ uname -a
Linux frame 6.14.0-13-generic #13-Ubuntu SMP PREEMPT_DYNAMIC Wed Mar 26 22:00:40 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
falken@frame:~$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants