← Back to Pull requests

nfd: gpu: add back the loadedmodule matching #2392

Merged
tkatila merged 1 files (18 lines) on Oct 20, 2026 07:56 UTC
View on GitHub
tkatila tkatila commented on Oct 19, 2026 07:15 UTC
Author

NFD fails to detect modules with 'enabledmodule' in OSs where modules.builtin is missing in /lib/modules/<uname -r>/. Thus also match with 'loadedmodule'.

Fixes: #2386

Diff: 18 lines (+18 / -0) across 1 files Reviewer: mythi Review duration: 1480m
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.21) × (1 − Review Confidence (0.86)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.21 · 18 lines diff across 1 files
0.21
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.82 · 2 substantive comment(s)
0.82
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
86%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.176
Real PR Conversation Timeline
4 items
mythi mythi commented on code on Oct 19, 2026 09:23 UTC
Code Review
deployments/nfd/overlays/node-feature-rules/node-feature-rules.yaml:1
@@ -20,8 +20,17 @@ spec:
     - name: "intel.gpu"
       labels:
         "intel.feature.node.kubernetes.io/gpu": "true"
+      # Both loadedmodule and enabledmodule are checked: enabledmodule is
+      # missing on OSs without modules.builtin in /lib/modules (e.g. NixOS).

AFAUI, this change is same is just doing s/enabledmodule/loadedmodule/

tkatila tkatila commented on code on Oct 20, 2026 06:52 UTC
Code Review
deployments/nfd/overlays/node-feature-rules/node-feature-rules.yaml:1
@@ -20,8 +20,17 @@ spec:
     - name: "intel.gpu"
       labels:
         "intel.feature.node.kubernetes.io/gpu": "true"
+      # Both loadedmodule and enabledmodule are checked: enabledmodule is
+      # missing on OSs without modules.builtin in /lib/modules (e.g. NixOS).

Claude notes that using loadedmodule would only list module drivers and leave out built-in drivers. afaik, xe and i915 are typically built as modules, but I have seen some occurrences where drivers have been built-in.

NFD's documentation says that loadedmodule uses /proc/modules as its source, and kernel's doc says that it includes a list of loaded modules (https://man7.org/linux/man-pages/man5/proc_modules.5.html).

mythi mythi approved these changes on Oct 20, 2026 07:55 UTC
Approved Reviewer

Approved these changes.

Reviewers
Assignees
tkatila tkatila
Labels
risk: low confidence: 86.1% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 20.6% (LOW) · Higher = larger blast radius
20.6%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 86.1% · Lower = rushed or shallow review
86.1%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 2.9% · Safe to merge
2.9%