Skip to content

soc: apple: mailbox: remove the unused T6050 alias-window GPU profile (-31) - #2436

Merged
RyanTheTide merged 1 commit into
mainfrom
deadweight/t6050-mbox-alias-profile
Nov 26, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
deadweight/t6050-mbox-alias-profile

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Problem

drivers/soc/apple/mailbox.c keeps 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 behind apple,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 and APPLE_T6050_ASCWRAP_BASE_DELTA. Net -31 lines.

The board-named j775d compatible that every T6050 board now uses is a naming/gate question for the gate sweep and is not touched here.

Testing

  • Combined fleet build of all eleven deadweight code branches stacked on 0abc2f3 (DEBUG_INFO off): make Image modules dtbs RC=0, 5,909 modules, modpost reports no undefined symbols, and the only warnings are ones the baseline already had in untouched files.
  • git grep across arch/arm64/boot/dts/apple: every T6050 GPU mailbox node (the J714s, J716c, K114c and K116s GPU dtsi files, 8 nodes) is apple,t6050-j775d-ascwrap-v6. git log -S shows the generic and x1n1 strings were never in a DTS. aura doesn't create them either.
  • W=1 build of drivers/soc/apple/mailbox.o with 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

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>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

No blockers.

On current integration/aurora, every T6050 GPU mailbox node in arch/arm64/boot/dts/apple uses apple,t6050-j775d-ascwrap-v6. A code search across the org finds apple,t6050-ascwrap-v6 and apple,t6050-x1n1-ascwrap-v6 only in mailbox.c and the binding, so no DT or boot loader is left without a driver. After the removal, nothing at the head refers to apple_mbox_t6050_ascwrap_v6_* or APPLE_T6050_ASCWRAP_BASE_DELTA. The binding enum and the match table stay in step. CI is fully green, including dt-checks, kunit and rust-build, and the commit has only a human sign-off. This can leave draft.

For later, not this PR: the remaining profile is selected by a board-named compatible and carries fixed physical wrapper/VBAR addresses (APPLE_J775D_GFX*_WRAPPER_BASE) instead of reading them from the node's reg. That is the next thing to remove here.

HW row: none needed (no DTB matches the removed entries).

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide
RyanTheTide marked this pull request as ready for review November 22, 2026 10:11
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

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 DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-silicon that apple,t6050-ascwrap-v6 and apple,t6050-x1n1-ascwrap-v6 exist only in drivers/soc/apple/mailbox.c and Documentation/devicetree/bindings/mailbox/apple,ascwrap-v6.yaml — zero DTS/DTBs or boot loaders reference them; every T6050 GPU mailbox node uses apple,t6050-j775d-ascwrap-v6.
  • Verified zero remaining references to APPLE_T6050_ASCWRAP_BASE_DELTA, apple_mbox_t6050_ascwrap_v6_roles, or apple_mbox_t6050_ascwrap_v6_hw. APPLE_T8140_GFX*_BASE remains 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 9b3ae0e0514c carries human author/committer and Signed-off-by: Ryan Murray <ryan@aurorasilicon.org> only (zero AI commit trailers); PR body ends with Assisted-by:.
  • §5 Evidence: PASS — pure dead-code deletion with zero matching DTBs; fleet Image modules dtbs, W=1 mailbox.o, and dt_binding_check verified clean.
  • §6 Naming & Live CI: PASS — all 8 live CI checks (dt-checks, host-tests, source, rust-build, kunit, and all three DWC3/ATC matrix jobs) are SUCCESS.

Non-blocking Nit

  • Documentation/devicetree/bindings/mailbox/apple,ascwrap-v6.yaml:18-19 still says "; the other T6050 profiles describe alias windows." after removing those two profiles from properties.compatible.enum (unlike drivers/soc/apple/mailbox.c:43, which trimmed the matching sentence). Clean to drop in a follow-up.

Assisted-by: LLM (Gemini 4 Neon)

@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Merge readiness at 9b3ae0e0: ready to merge

Check Detail
CI at head ok 8 checks passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok comment at 9b3ae0e0
Conflicts ok none
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:platform
Merge: gh pr merge 2436 --merge (Owners and Core through the bypass: add --admin).

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

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.

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed needs-hw-row No hardware row at the PR head (bot) labels Nov 26, 2026
@RyanTheTide
RyanTheTide merged commit 65d5b0b into main Nov 26, 2026
9 checks passed
@RyanTheTide
RyanTheTide deleted the deadweight/t6050-mbox-alias-profile branch November 27, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform Area from CODEOWNERS (bot) needs-template PR body lacks Tested or Risk (bot) ready-to-merge Meets the merge policy: merge it (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants