Repository navigation
agx: enable AGX_CAP_COMPUTE_SMART_WAITS on G13G - #1297
Conversation
Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins. |
There was a problem hiding this comment.
Verdict: MERGE at 88a3579d
Blockers: none (ready for lab regression overlay and merge).
Checked:
src/asahi/lib/agx_chip_caps.h,test-chip-caps.c,test-insert-waits.cpp: cleanly enablesAGX_CAP_COMPUTE_SMART_WAITS(1u << 28) onG13Gwhile intentionally leavingAGX_CAP_COMPUTE_HOIST_LOAD_ADDRS(1u << 29) off after 5-pair ABBA screening showed hoisting regressesG13Gdecode.- Tests & hardware rows on
G13G:asahi-agx-chip-capsPASS,agx_tests1,775/1,775 PASS,mesa:asahi214/215 (lonehk_sync_stampsfailure pre-existing on base), liveG13GVulkan CTS (synchronization*+memory_model, 16,421 cases: 5,175 pass, 0 fail, 0 regressions), and 5-pair ABBA 100% bit-exact greedy decode wins (+2.42%/+2.19%). - Checked for Apple material, tool attribution, private serials, and Borealis naming: clean;
MERGEABLEonaurora-wip; humanSigned-off-bypresent.
Evidence
- Head:
88a3579d2bb4(base: aurora-wip,mergeable: MERGEABLE,+20/-9across 3 files).
|
@DjDeveloperr, code-owner heads-up: App approval at |
|
Merge-train landing at
Revert: |
What
Follow-up to #1224, rebased onto
aurora-wip(e0990ec5397c) at head88a3579d2bb4: enable the existingAGX_CAP_COMPUTE_SMART_WAITS(1u << 28) capability onG13Ginsrc/asahi/lib/agx_chip_caps.h, and updatesrc/asahi/lib/tests/test-chip-caps.candsrc/asahi/compiler/test/test-insert-waits.cpp.Only
AGX_CAP_COMPUTE_SMART_WAITSis enabled onG13G.AGX_CAP_COMPUTE_HOIST_LOAD_ADDRS(1u << 29) stays off onG13Gbecause adding load-address hoisting atop#1219 + smart_waitsregressedG13G2B decode relative to#1219 + smart_waitsalone (see details below).Tested
88a3579d2bb4(parentaurora-wipe0990ec5397c,-Db_ndebug=false):asahi-agx-chip-caps: PASS (covers everyAGX_CHIPSrow, verifyingAGX_CAP_COMPUTE_SMART_WAITSonG13GandG14Xonly, andAGX_CAP_COMPUTE_HOIST_LOAD_ADDRSonG14Xonly).agx_tests: PASS (1,775 passed, 1 pre-existing skipNativeFMA.ExactDyadicOracle, 0 failed), including updatedInsertWaits.SmartWaitsAvoidsMidBurstOverflowOnG14XverifyingG13Gcompute matchesG14Xcompute whileG13X,G14G, and fragment shaders keep stock behavior.mesa:asahisuite merged ontoaurora-wip(7617c835cd8b): 214 passed, 1 failed; the lone failure (hk_sync_stamps, 8/896 cases) reproduces identically on untouchedaurora-wip7617c835cd8b.G13GVulkan CTS (dEQP-VK.synchronization.*,dEQP-VK.synchronization2.*,dEQP-VK.memory_model.*, 16,421 cases): 5,175 passed, 0 failed, 11,246 not supported (0 regressions vs baseline).Hardware A/B (MacBook Pro 13-inch M1, G13G)
Same-machine interleaved 5-pair ABBA (3 inner trials per leg, isolated shader cache per arm, deferral disabled, greedy decode 64 tokens, 100% bit-exact token IDs across every pair; baseline
aurora-wipb200715b4841):Target lever:
AGX_CAP_COMPUTE_SMART_WAITS(standalone)Stacked with
#1219(AGX_CAP_CDM_DEFER_FLUSH, already merged onaurora-wip)Rejected / not-enabled G13G variants (same screening pass)
Every other
G13Gcompiler lever measured in the same 5-pair ABBA screening pass is recorded here and intentionally left disabled onG13G:hoist_loads_addr(AGX_CAP_COMPUTE_HOIST_LOAD_ADDRS) conflicts withsmart_waitsonG13G(stacking it atop#1219 + smart_waitsdrops decode from +2.42% to +1.48% at ctx512 and from +2.19% to +1.85% at ctx2048, and turns ctx2048 prefill to -0.21% 0/5).AGX_CAP_MOD3_REG_BANK_RAandwide_flatregressedG13G2B decode and remain off.Risk
Only
G13Gcompute shader wait insertion (agx_insert_waits) changes; all non-compute stages onG13Gand every other chip row keep stock behavior. Back-out is a single-commit revert droppingAGX_CAP_COMPUTE_SMART_WAITSfrom theG13Grow insrc/asahi/lib/agx_chip_caps.h.