From 1be968b6b5cffcc4c2a1cbf77fce0af4ffc000d1 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Tue, 20 Oct 2026 20:37:11 +0400 Subject: [PATCH] boot: switch to the latest kernel for the NPU The in-tree amdxdna driver on LTS 6.18 is too old for FastFlowLM: flm validate reports kernel_ok=false and the driver loads NPU firmware 1.0.0.63, while FLM needs 1.1.0.0 or newer. The 7.x driver loads npu_7.sbin (1.1.2.64), and /dev/accel/accel0 is present on 7.2.11. Assisted-by: Claude:opus-5-5 --- modules/boot.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/modules/boot.nix b/modules/boot.nix index ff454fd..f21bb62 100644 --- a/modules/boot.nix +++ b/modules/boot.nix @@ -2,13 +2,11 @@ { config, pkgs, lib, ... }: { - # LTS kernel (currently 6.18.x). - # CAVEAT: this breaks FastFlowLM NPU acceleration — the in-tree amdxdna driver - # on 6.18 is too old (flm validate: kernel_ok=false, and it loads NPU firmware - # 1.0.0.63 while FLM needs >=1.1.0.0; the 7.x driver loads npu_7.sbin = - # 1.1.2.64 instead). Switch back to pkgs.linuxPackages_latest if the NPU is - # needed again, until 1.1.x amdxdna lands in an LTS series. - boot.kernelPackages = pkgs.linuxPackages; + # Latest mainline-stable kernel, not LTS: the in-tree amdxdna driver on LTS + # 6.18 is too old for FastFlowLM NPU acceleration (flm validate: kernel_ok= + # false; it loads NPU firmware 1.0.0.63 while FLM needs >=1.1.0.0, which the + # 7.x driver provides via npu_7.sbin = 1.1.2.64). + boot.kernelPackages = pkgs.linuxPackages_latest; # amdgpu GTT (dynamically shared system RAM the iGPU can address) raised to # 56 GiB. On kernel 6.18 `amdgpu.gttsize` is deprecated; TTM controls it in