feat(gpu): report AMD GPU ECC errors #60843
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 337 lines diff across 4 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.348
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #60843"
general
weight: 0.35
gjulianm
What does this PR do?
The
amd_gpucheck now reports the ECC error counts that the amdgpu driver keeps in/sys/class/drm/card/device/ras/:| Metric | New / existing | Source (
ras/attribute) | Value ||---|---|---|---|
|
gpu.errors.ecc.uncorrected.total| Existing for NVIDIA |ueof<block>_err_count(oraca_<block>) | sum over the blocks amd-smi counts andfeaturesenables (umc, sdma, gfx, mmhub, pcie_bif, hdp, xgmi_wafl); equalsamd-smi metric --eccTOTAL_UNCORRECTABLE_COUNT ||
gpu.errors.ecc.corrected.total| Existing for NVIDIA |ceof the same | same, TOTAL_CORRECTABLE_COUNT ||
gpu.errors.ecc.deferred.total| new, AMD only |deof the same | same, TOTAL_DEFERRED_COUNT; in practice UMC only, and 0 where the driver doesn't count deferred errors (e.g. MI200) |.total, and the ECC totals have nomemory_locationtag, as they sum blocks.ras/aca_<block>instead of<block>_err_count; the check falls back to it, like amd-smi.Motivation
AMD customer trial: alert on uncorrected and deferred ECC errors, like
gpu.errors.ecc.uncorrected.totalon NVIDIA.Describe how you validated your changes
err_count,aca_andfeaturesfixtures (non-zero counts, ACA fallback, disabled blocks, reset and EINVAL, malformed and unreadable attributes) and a check-level spec test.dda inv test(pkg/gpu/amd, corechecks/gpu/...) anddda inv linter.gopass.gpu.device.unhealthy):amd_gpuOK; 21 → 25 samples per run; ECC totals are 0, equal toamd-smi metric --ecc; series arriving in dddev. RAS attribute reads: p50 ~10 µs, 5.2 ms when the guest fetches fresh counts from the host.The ACA path and non-zero values are unit-tested only (the VF uses the legacy files and has no errors; RAS error injection can reset the GPU).