docs: add Fedora 43 to FLM NPU Linux setup guide#2642
docs: add Fedora 43 to FLM NPU Linux setup guide#2642bong-water-water-bong wants to merge 5 commits into
Conversation
- Adds Fedora 43 as a distro option in the FLM NPU Linux setup docs - Uses portable FLM (no RPM package, no beta flag required) - Removes misleading RPM install step that doesn't exist yet
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Good by me, please let @abn sign off on this though. |
| <span class="flm-instruction-label">For Fedora 43</span> | ||
| </div> | ||
| <ol> | ||
| <li>Enable the AMD NPU COPR repository: |
There was a problem hiding this comment.
| <li>Enable the AMD NPU COPR repository: | |
| <li>Enable the AMD NPU Copr repository: |
| <ol> | ||
| <li>Enable the AMD NPU COPR repository: | ||
| <div class="flm-code-block"><code>sudo dnf copr enable abn/amd-npu</code></div> | ||
| <span class="flm-inline-note">This COPR provides pre-built XRT and NPU driver packages. See <a href="https://copr.fedorainfracloud.org/coprs/abn/amd-npu/" target="_blank" rel="noopener">abn/amd-npu</a> for details.</span> |
There was a problem hiding this comment.
| <span class="flm-inline-note">This COPR provides pre-built XRT and NPU driver packages. See <a href="https://copr.fedorainfracloud.org/coprs/abn/amd-npu/" target="_blank" rel="noopener">abn/amd-npu</a> for details.</span> | |
| <span class="flm-inline-note">This Copr repository provides pre-built XRT and NPU user-space driver packages. See <a href="https://copr.fedorainfracloud.org/coprs/abn/amd-npu/" target="_blank" rel="noopener">abn/amd-npu</a> for details.</span> |
| <span class="flm-inline-note">This COPR provides pre-built XRT and NPU driver packages. See <a href="https://copr.fedorainfracloud.org/coprs/abn/amd-npu/" target="_blank" rel="noopener">abn/amd-npu</a> for details.</span> | ||
| </li> | ||
| <li>Install the NPU runtime and driver: | ||
| <div class="flm-code-block"><code>sudo dnf install xrt amdxdna-dkms</code></div> |
There was a problem hiding this comment.
| <div class="flm-code-block"><code>sudo dnf install xrt amdxdna-dkms</code></div> | |
| <div class="flm-code-block"><code>sudo dnf install fastflowlm xrt-plugin-amdxdna</code></div> |
Note this repo does not provide the amdxdna-dkms. Note this is already available on Fedora kernels and hence not required.
| <li>Reboot: | ||
| <div class="flm-code-block"><code>sudo reboot</code></div> | ||
| </li> |
There was a problem hiding this comment.
| <li>Reboot: | |
| <div class="flm-code-block"><code>sudo reboot</code></div> | |
| </li> |
| </li> | ||
| <li>Verify the NPU stack: | ||
| <div class="flm-code-block"><code>flm validate</code></div> | ||
| A successful validation will show your kernel version, NPU device, firmware version, and unlimited memlock. |
There was a problem hiding this comment.
Nit: you can add an example perhaps?
[Linux] Kernel: 7.1.3-200.fc44.x86_64
[Linux] NPU: /dev/accel/accel0 with 8 columns
[Linux] NPU FW Version: 1.1.2.65
[Linux] amdxdna version: 0.8
[Linux] Memlock Limit: infinity
There was a problem hiding this comment.
Well we won't have have flm in PATH with portable, I don't think we should have that.
- Fix COPR → Copr naming - Clarify Copr provides xrt-plugin-amdxdna; amdxdna is in-kernel on F43 - Replace xrt amdxdna-dkms with fastflowlm xrt-plugin-amdxdna - Add portable FLM auto-install note - Remove reboot step (no DKMS needed) - Replace flm validate (not in PATH with portable) with /dev/accel check - Add example NPU detection output Fixes: COPR capitalization, install target, verification approach Refs: abn code review, superm1 code review
|
Thanks for the reviews @abn and @superm1! I've pushed updates addressing the feedback: Changes applied:
Re: the broader question — whether Fedora 43 needs its own section vs the portable FLM handling it. I've kept it as a lightweight section similar to Ubuntu 26.04's pattern: the Copr is still needed for Let me know if anything else needs adjustment! |
|
I don't believe you need a copr to install anything for flm. Everything except kernel driver is in portable. |
|
Addressed superm1's feedback — removed the COPR enable and dnf install steps since everything (FLM runtime + NPU plugin) is handled by the portable distribution on Fedora 43. The amdxdna kernel driver is already in Fedora 43's kernel. The section now just has the NPU verification step. |
| <div class="flm-instruction-header"> | ||
| <span class="flm-instruction-label">For Fedora 43</span> | ||
| </div> | ||
| <p>Fedora 43 ships with the <code>amdxdna</code> kernel driver in-tree — no extra driver or COPR repository needed.</p> |
There was a problem hiding this comment.
Another nit; just use Fedora. This applies to all supported versions atm. And the latest is 44 anyway.
| <ol> | ||
| <li>Verify the NPU stack is detected: | ||
| <div class="flm-code-block"><code>ls /dev/accel/accel0 && cat /sys/kernel/debug/amd-xdna/pci*/version</code></div> | ||
| <span class="flm-inline-note">A successful NPU detection shows the device node and firmware version, for example:<br> |
There was a problem hiding this comment.
This requires a manual run of the flm cli. But that requires lemonade to first download it, user to find and use the path.
I'd suggest as @superm1 mentioned, maybe just not include anything here.
| <p>Lemonade will auto-install the portable FLM binary (including the NPU plugin) on first use.</p> | ||
| <ol> | ||
| <li>Verify the NPU stack is detected: | ||
| <div class="flm-code-block"><code>ls /dev/accel/accel0 && cat /sys/kernel/debug/amd-xdna/pci*/version</code></div> |
There was a problem hiding this comment.
| <div class="flm-code-block"><code>ls /dev/accel/accel0 && cat /sys/kernel/debug/amd-xdna/pci*/version</code></div> | |
| <div class="flm-code-block"><code>ls -l /dev/accel/accel0 && modinfo amdxdna</code></div> |
Maybe this is a little cleaner?
There was a problem hiding this comment.
Given we have a new enough kernel in both fedora 43 and 44 I don't see why a user would do this.
- Changed label from 'Fedora 43' to 'Fedora (43+)' (covers all supported versions) - Removed manual kernel debugfs verification step (not needed on modern Fedora kernels per @superm1) - Simplified to note that Lemonade handles FLM setup automatically
|
Addressed the feedback:
|
- Change label from 'Fedora 43' to 'Fedora' (applies to all supported versions) - Remove version-specific language - Keep message concise: driver in-tree, FLM auto-installed
|
Thanks @abn and @superm1 for the reviews. I've pushed an update:
The PR description has also been updated to remove the COPR mention. Ready for re-review. |
Adds Fedora 43 as a distro option in the FLM NPU Linux setup docs.
Changes:
Refs: fedora-43-docs branch