From 0d9c3935a8cc5a50689f75bd5961797913fdee89 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Thu, 17 Sep 2026 14:51:47 -0500 Subject: [PATCH] Drop kernel check in `flm validate` Some distros backport the kernel driver to much older kernels than 6.17. This check isn't needed anymore as we instead check F/W version which implicitly checks for a newer set of hardware. --- src/src/main.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/src/main.cpp b/src/src/main.cpp index 446b907bd..e9ce525f3 100644 --- a/src/src/main.cpp +++ b/src/src/main.cpp @@ -234,21 +234,7 @@ static bool sanity_check_npu_stack(bool quiet, bool json_output = false) { } return false; } - int major, minor; - sscanf(u_name.release, "%d.%d", &major, &minor); - bool kernel_ok = (major > 6) || (major == 6 && minor >= 17); validation_json["kernel"] = u_name.release; - validation_json["kernel_ok"] = kernel_ok; - if (!kernel_ok) { - if (print_human) { - header_print_r("ERROR", "Kernel version incompatible with this version of FLM. Please update your kernel!"); - } - validation_json["ready"] = false; - if (json_output) { - std::cout << validation_json.dump(4) << std::endl; - } - return false; - } if (print_human) { header_print("Linux", "Kernel: " << u_name.release); } @@ -258,6 +244,7 @@ static bool sanity_check_npu_stack(bool quiet, bool json_output = false) { bool enough_cols = true; bool amd_device_found = false; bool drm_version_ok = true; + bool kernel_ok = true; for (int i = 0; i < 16; ++i) { std::string dev_name = "/dev/accel/accel" + std::to_string(i);