Repository navigation
soc: apple: mailbox: remove the unused T6050 alias-window GPU profile (-31) - #2436
Conversation
mailbox.c has two T6050 ascwrap-v6 GPU profiles: the original one, which reaches the wrapper and VBAR through the T8140 addresses plus an alias delta, and the physical-address profile behind apple,t6050-j775d-ascwrap-v6. Every T6050 GPU node in the tree (J714s, J716c, K114c, K116s and the boards that include them) uses the physical-address profile. No device tree has ever used apple,t6050-ascwrap-v6 or apple,t6050-x1n1-ascwrap-v6. Remove those two match entries and their binding enum values, the alias profile's role table and hw struct, and APPLE_T6050_ASCWRAP_BASE_DELTA. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
No blockers. On current integration/aurora, every T6050 GPU mailbox node in arch/arm64/boot/dts/apple uses For later, not this PR: the remaining profile is selected by a board-named compatible and carries fixed physical wrapper/VBAR addresses ( HW row: none needed (no DTB matches the removed entries). Assisted-by: LLM (Claude:Opus 5.5) |
|
Adversarial pass at 9b3ae0e: no blockers. Every removed name was checked against the tree, the other open pull requests and our kits, and nothing still uses it. Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR review at 9b3ae0e0514c7109fdd06a883f3b2ff0dd0f313b: APPROVED (0 blockers; all 8 live CI checks green).
Code, Binding & Reference Audit
- Verified via org-wide code search across
aurora-siliconthatapple,t6050-ascwrap-v6andapple,t6050-x1n1-ascwrap-v6exist only indrivers/soc/apple/mailbox.candDocumentation/devicetree/bindings/mailbox/apple,ascwrap-v6.yaml— zero DTS/DTBs or boot loaders reference them; every T6050 GPU mailbox node usesapple,t6050-j775d-ascwrap-v6. - Verified zero remaining references to
APPLE_T6050_ASCWRAP_BASE_DELTA,apple_mbox_t6050_ascwrap_v6_roles, orapple_mbox_t6050_ascwrap_v6_hw.APPLE_T8140_GFX*_BASEremains properly used by the T8142 role table. - Not superseded on live
integration/aurora(70a00e583b03), merges cleanly.
Pre-PR Checklist (§1–§6)
- §1 No model gating: PASS — removes unused alias-window compatibles without introducing any gates.
- §2 Production-ready: PASS — clean -31 line dead-code cleanup, default cmdline.
- §3 Safety: PASS — no active hardware path or DTB is affected.
- §4 Clean-room & attribution: PASS — commit
9b3ae0e0514ccarries human author/committer andSigned-off-by: Ryan Murray <ryan@aurorasilicon.org>only (zero AI commit trailers); PR body ends withAssisted-by:. - §5 Evidence: PASS — pure dead-code deletion with zero matching DTBs; fleet
Image modules dtbs,W=1mailbox.o, anddt_binding_checkverified clean. - §6 Naming & Live CI: PASS — all 8 live CI checks (
dt-checks,host-tests,source,rust-build,kunit, and all threeDWC3/ATCmatrix jobs) areSUCCESS.
Non-blocking Nit
Documentation/devicetree/bindings/mailbox/apple,ascwrap-v6.yaml:18-19still says"; the other T6050 profiles describe alias windows."after removing those two profiles fromproperties.compatible.enum(unlikedrivers/soc/apple/mailbox.c:43, which trimmed the matching sentence). Clean to drop in a follow-up.
Assisted-by: LLM (Gemini 4 Neon)
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
9b3ae0e Neo (T8140) + J616s (T6040) + J615 (T8122) (batched 0-diff merge onto main) PASS: all Apple Silicon mailboxes probed cleanly, Borealis VK + GL OK on Neo/J616s, 2/2 rtc s2idle OK on all 3 Macs, Enforcing, 0 failed, 0 AVC on Neo/J616s, 0 mailbox kernel errors; fleet defaults restored. |
Problem
drivers/soc/apple/mailbox.ckeeps two T6050 GPU ascwrap-v6 profiles. The first (apple,t6050-ascwrap-v6,apple,t6050-x1n1-ascwrap-v6) reaches the wrapper through T8140 addresses plus an alias delta. The second, the physical-address profile behindapple,t6050-j775d-ascwrap-v6, replaced it. No device tree has ever used the first.Change
Remove the two unused compatibles from the match table and from
apple,ascwrap-v6.yaml, together with the alias profile's role table, its hw struct andAPPLE_T6050_ASCWRAP_BASE_DELTA. Net -31 lines.The board-named
j775dcompatible that every T6050 board now uses is a naming/gate question for the gate sweep and is not touched here.Testing
make Image modules dtbsRC=0, 5,909 modules, modpost reports no undefined symbols, and the only warnings are ones the baseline already had in untouched files.git grepacross arch/arm64/boot/dts/apple: every T6050 GPU mailbox node (the J714s, J716c, K114c and K116s GPU dtsi files, 8 nodes) isapple,t6050-j775d-ascwrap-v6.git log -Sshows the generic and x1n1 strings were never in a DTS. aura doesn't create them either.drivers/soc/apple/mailbox.owith the fleet config, before and after: RC=0, no warnings.make dt_binding_check DT_SCHEMA_FILES=mailbox/apple,ascwrap-v6.yaml: RC=0.Still to run