platform: report the generation of direct NVSwitches #58
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 219 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.323
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #58"
general
weight: 0.35
zvonkok
The library says that an NVSwitch has no distinguishing PCI device ID. It says that only BAR0 gives its generation. NVIDIA's driver selects its LR10 or LS10 HAL from the device ID (
_nvswitch_setup_halin open-gpu-kernel-modulessrc/common/nvswitch/kernel/nvswitch.c). gpu-admin-tools keeps a device ID table for switches beside its BOOT0 table. A consumer that needs the generation before a driver is loaded has to read<bdf>/devicefrom sysfs itself. It also has to keep its own ID table. NVIDIA/nvrc#250 needs the generation to choose a Fabric Manager configuration for HGX A100.A switch with an unlisted device ID stays in
Topology::switchesand infabric(). Dropping it would remove a switch from the fabric. On a node whose switches all have unlisted IDs,fabric_interface()would report no fabric.is_nvswitchkeeps the conditionmainhas. The condition is vendor NVIDIA and class 0x0680 with any programming interface. nvidia.ko matches class 0x068000 exactly.nvswitch_probereturns-EINVALfor a device ID in neither of its lists. Neither restriction is copied. Fabric membership does not change.API changes:
Topology::switchesisVec<SwitchFunction>instead ofVec<String>.discover_topologyfails when thedeviceattribute of a switch is missing or is not a 16-bit hex value.cc::Switchhas a new field,generation.NVIDIA/nvrc
main, kata-device-provisioner c15a2ac and krab preflight c5df786 build against this branch without source changes. Their tests pass.pci.ids names only 0x1af1 (A100) and 0x22a3 (H100). The other IDs come from the driver lists. The driver source names 0x22a8 to 0x22af as bridge functions of the LS10. The driver selects the LS10 HAL for them. The library reports LS10 for them.