Repository navigation
drm/asahi: g17: take T6041 render pool identity at context creation - #2863
RyanTheTide merged 1 commit into
Conversation
|
Review at cfdc7e6 (non-author, draft). No blocker in the code; it waits on the J616C context-churn row.
Point to consider: as with #2862, this is host-side accounting with no firmware dependency, so once proven on the M4 Max a T6040 row would let the per-build flag go rather than extend the per-chip list. The doc comment in Assisted-by: LLM (Claude:Opus 5.5) |
|
J616C (Apple MacBook Pro 16", M4 Max, 32-core T6041, Context / Queue Creation Churn & Saturation (
|
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 review at live head cfdc7e6c07d6dd44e96a374dfaffab66c4350bde: 0 blockers — approving.
Checked & clean
- §1–§3 Code, safety & scope (
drivers/gpu/drm/asahi/hw/t6041.rs,g17/fw/variant.rs):- Enabling
render_id_at_create: trueon T6041BUILD_25G83andBUILD_26B123(covering both 32-core and 40-core configs) is pure host-side freelist accounting ing17/runtime.rs:799-839andg17/context.rswith no firmware ABI dependency. - Verified refusal and retry hygiene in
g17/runtime.rs:799-839:RenderId::new(&firmware.render_ids)?runs under the device mutex after the logical-queue admission check and beforereserve_queue(), so a refused creator holds nothing, and theENOSPCexecution-context wait path explicitly callsdrop(render_id)before releasing the mutex and sleeping. objects_after_releasestaysfalse, keeping the34b438de3df9control_fence()barrier intact. Default cmdline, zero hacks.
- Enabling
- §4 Attribution: Single commit
cfdc7e6c07d6carries human author/committer (AxxzyWasTaken <[email protected]>) and humanSigned-off-by:only (zero AI trailers); PR body includesAssisted-by:. - §5 Evidence & live CI:
- Live CI
host-tests: green (SUCCESS). - Exact-head J616C (
32-core T6041,25G83,7.3.0-j616c-pr2863, default cmdline) hardware row covers 256× same-VM and 150× fresh-fd/VMQUEUE_CREATE/QUEUE_DESTROYchurn past both 63-slot and 127-slot pools, concurrent saturation (EBUSYcleanly at 34 with full post-release recovery),dEQP-VK624-case subset (258 Passed / 0 Failed / 0 Warnings), Vulkan (vtxalu/tvb_stress) andglmark2-es2-drmsmoke, plus full §5 health (0faults/errors/warnings/recoveries indmesg,0failed systemd units,0SELinux AVC denials). Untested scope (26B123, 40-coreJ614C/J575C) is clearly disclosed.
- Live CI
- §6 Naming: Clean.
Non-blocking notes
- The PR body still says "compile-tested only / Open as Draft" from before the J616C row was posted; fine as-is, just noting for cleanliness.
- As noted,
#2863and#2864share the insertion point int6041.rsBUILD_25G83, so whichever merges second will need a trivial 1-line rebase.
Assisted-by: LLM (Gemini 4 Neon)
|
@AxxzyWasTaken this was next in the merge train at cfdc7e6. Since #2864 landed (ad9558d), it no longer merges cleanly into Assisted-by: LLM (Claude:Opus 5.5) |
|
@RyanTheTide Rebased onto 1: cfdc7e6c07d6 ! 1: b58cf7148f1b drm/asahi: g17: take T6041 render pool identity at context creation
@@ drivers/gpu/drm/asahi/hw/t6041.rs
},
config: None,
@@
- // Four clusters: the tiler segment values of 25F84 on this machine.
- variant: &fw::variant::Variant {
+ // unmeasured on the M4 Pro, which keeps false.
+ render_stage_prefixes: true,
ta_mode_1: true,
+ render_id_at_create: true,
+ telemetry_protocol: crate::g17::telemetry::Protocol::PSTATE_8MS,
..fw::variant::V25G83
},
- config: None,
Assisted-by: LLM (Google:Gemini 4 Neon) |
cfdc7e6 to
b58cf71
Compare
Taking a context's render pool identity (one of 127 in firmware.render_ids) at context creation rather than lazily on the first render is pure host-side accounting in g17/runtime.rs and g17/context.rs with no firmware ABI dependency. If render graphs retained until firmware stop exhaust the remaining identities, queue creation fails cleanly with ENOSPC instead of succeeding and failing the context's first render with a lost device. Enable render_id_at_create on T6041's 25G83 and 26B123 variants (covering both 32-core and 40-core configurations). Keep objects_after_release disabled on 25G83/26B123: relaxing the strict control_fence() from commit 34b438d ("drm/asahi: g17: fence recycled firmware identities and storage"), which fixed an M4 Pro crash on a recycled work state, requires dedicated create/destroy queue churn stress testing on M4 hardware first. Test scope: compile-tested here; runtime verification on J616C (32-core T6041, 25G83) is pending, and 40-core configurations (J614C/J575C) and 26B123 have not been hardware-tested. Signed-off-by: AxxzyWasTaken <[email protected]>
|
Rebased cleanly onto Assisted-by: LLM (Google:Gemini 4 Neon) |
b58cf71 to
e45c2b9
Compare
DjDeveloperr
left a comment
There was a problem hiding this comment.
Re-reviewed rebased head e45c2b916daf (§1–§6 pre-PR checklist).
- Rebase check: Clean rebase onto
integration/auroraafter#2864landed (+2/-2invariant.rs,+2/-0int6041.rs; zero semantic drift from previously approvedcfdc7e6c07d6). - §4 Attribution: Clean human author/committer +
Signed-off-by:only; zero AI trailers in commit. - §6 CI:
host-testsis green (SUCCESS, run45145466045). - Verdict: Approved for
MERGETRAIN-LINUX4.
Assisted-by: LLM (Gemini 4 Neon)
|
Merge-train re-check at e45c2b9: no blockers. The rebase onto the tip only resolves the conflict with #2864. The single commit beyond Assisted-by: LLM (Claude:Opus 5.5) |
48470aa
into
aurora-silicon:integration/aurora
Problem
On T6041 (
25G83and26B123),render_id_at_createis inherited asfalsefromV25G83/V26B123, so a context takes its render pool identity (one of 127 infirmware.render_ids) lazily on its first render instead of at context creation. If render graphs retained until firmware stop exhaust the remaining identities, queue/context creation still succeeds and the context then fails its first render with a lost device instead of failing creation cleanly withENOSPC.Change
Enable
render_id_at_create: trueon T6041'sBUILD_25G83andBUILD_26B123variants indrivers/gpu/drm/asahi/hw/t6041.rsand update the field doc comment indrivers/gpu/drm/asahi/g17/fw/variant.rs.Taking the identity at context creation is pure host-side accounting in
g17/runtime.rsandg17/context.rswith no firmware ABI dependency. Note that every context, compute-only included, now holds a render pool identity from creation.objects_after_releaseis intentionally keptfalseon T6041 (25G83and26B123): relaxing the strictcontrol_fence()from commit34b438de3df9("drm/asahi: g17: fence recycled firmware identities and storage"), which fixed an M4 Pro crash on a recycled work state, needs dedicated create/destroy queue churn stress testing on M4 hardware first.Scope boundaries:
BUILD_25G83andBUILD_26B123.25F84keeprender_id_at_create: falseunchanged.#2864(feat/t6041-pstate-telemetry) add a field immediately afterta_mode_1: true,inBUILD_25G83indrivers/gpu/drm/asahi/hw/t6041.rs, so whichever lands second gets a trivial 1-line rebase.Testing
scripts/checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks (24 lines checked).make ARCH=arm64 LLVM=1 drivers/gpu/drm/asahi/aurora.oandaurora.ko: compiles and links cleanly with 0 warnings in touched files (drivers/gpu/drm/asahi/hw/t6041.rs,drivers/gpu/drm/asahi/g17/fw/variant.rs; clang 22.1.8, rustc 1.99.1).host-tests): green.25G83) hardware verification at exact headcfdc7e6c07d6(7.3.0-j616c-pr2863, see#issuecomment-7093961814):256×same-VM and150×fresh-fdVM_CREATE+QUEUE_CREATE/QUEUE_DESTROYchurn:100%pass (recycles past 63-slot context and 127-slotfirmware.render_idspools).QUEUE_CREATEsaturation (80same-VM /70multi-fd): cleanly admitted34queues and refused excess withEBUSY(Site::LogicalQueues), immediate recovery on release.dEQP-VK624-case subset258/366/0, offscreen Vulkan (vtxalu/tvb_stress) and GLES (glmark2) clean,0GPU faults/errors/warnings,0failed systemd units,0SELinux AVC denials.Uncovered Hardware
J614C/J575C) and26B123firmware builds.Reviewer detail
integration/auroraf5fae3cbb047.drivers/gpu/drm/asahi/hw/t6041.rs(+2 lines) anddrivers/gpu/drm/asahi/g17/fw/variant.rs(+2/-2 doc comment lines).objects_after_releaseremainsfalseon all M4 variants (T6040andT6041), keeping the34b438de3df9control_fence()barrier intact.Assisted-by: LLM (Anthropic:Claude Opus 5.5, Google:Gemini 4 Neon)