← Back to Pull requests

[rocjitsu][consan] Observe gfx950 direct-to-LDS buffer loads #17338

Open
unknown opened this pull request with 149 lines diff across 1 files
View on GitHub
unknown unknown commented on Dec 02, 2026 15:36 UTC
Author

A gfx950 buffer load can write LDS without producing a VGPR result. ConSan preparation rejects the load, so the saved capture cannot compare the transferred bytes with a peer wave's LDS read.

Admit zero-offset B32 and B128 direct-to-LDS loads when a guest constant M0 definition and its scalar NOP spacing lead to the issue within one block. At preparation time, mask M0 to the CDNA4 LDS base and check that the fixed allocation covers the entire wave. The probe combines that base with the physical lane and element width, then applies guest EXEC and the existing recording selectors. Preserve the original transfer and save its completion wait so the prepared image can be checked against the guest program.

Require an original VM drain before later memory or synchronization. Two disjoint transfers can share that drain. The existing workgroup barrier witnesses determine publication to peer waves.

For example, with M0 at byte 256, a B128 transfer writes [848, 864) for lane 37. A peer read of the last dword overlaps. A read starting at 864 is adjacent when lane 38 is inactive. The VM drain and workgroup barrier let replay distinguish a published write from an unordered peer access.

Diff: 149 lines (+111 / -38) across 1 files Reviewer: hanhanW Review duration: 4059m
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.33) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 149 lines diff across 1 files
0.33
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.300
Real PR Conversation Timeline
1 comments
"Review active on #17338"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% 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: 33.0% (LOW) · Higher = larger blast radius
33.0%
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: 46.7% · Lower = rushed or shallow review
46.7%
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: 17.6% · Safe to merge
17.6%