Skip to content

arm64: dts: apple: t6050-j775d: enable the AOP over its RTKit mailbox alone, so the Mac Studio gets its sound card - #2890

Merged
DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
funkzy:pr/j775d-aop-rtkit-mailbox
Nov 25, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
funkzy:pr/j775d-aop-rtkit-mailbox

Conversation

@funkzy

@funkzy funkzy commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

What: Enable the AOP, its RTKit mailbox, its DART, and the audio DMA controller in t6050-j775d.dts using the RTKit mailbox alone (mbox-names = "mbox"), so the Mac Studio (M5 Ultra, J775D) brings up its AOP audio child and AppleJ775D sound card instead of timing out on the unused setup port.
Tested: J775D (Mac Studio, M5 Ultra) at d96a319663bb on bare main (4abf0f83c290) under published Aura c0aaf3162ede (includes merged aurora-silicon/aura#474) on 27.2 firmware: apple_aop binds with 0 AOP error lines, audio.0.auto (snd_soc_t8152_aop_audio) probes, AppleJ775D registers with 17 controls (Headphone Jack, Headset Mic Jack), speakers stay disabled by macaudio safety check, 0 unexpected kernel errors, 0 failed units added.
Risk: Two-way door · affects J775D (Mac Studio, M5 Ultra) only; no other T6050 board file changes. Requires a boot loader carrying aurora-silicon/aura#474 (merged in c0aaf3162ede) so the AOP's firmware log buffer in RAM is reserved (no-map) before Linux starts the AOP.
Not yet: Physical headphone jack plug/unplug (evtest) and audio playback through the jack (needs hands at the Studio); dtbs_check run on t6050-j775d.dtb.

Details

Why this shape

  • Where the decision lived. Whether a T6050 board's AOP runs is stated by status = "okay" in its board DTS (matching J714s, K114c, and K116s). With soc: apple: aop: take the setup-port boot only with a "setup" mailbox #2556 merged, the AOP driver chooses the setup-port handshake only when the board tree gives the AOP a setup mailbox in mbox-names, and the binding documents this.
  • Why not a timeout or board gate. The J775D AOP firmware never answers on the setup port (96 s watch produced no traffic on either 27.0 or 27.2), so a longer timeout would not help, and a J775D/chip check in the driver would reintroduce the board gate that soc: apple: aop: take the setup-port boot only with a "setup" mailbox #2556 replaced. Because the ADT describes the setup port identically on J775D and on T6050 boards whose firmware uses it, the board DTS is the narrowest place that can state the difference.
  • One source, zero spillover. The setup mailbox node stays disabled in the shared T6050 files; only the J775D AOP node overrides mboxes / mbox-names to <&aop_mbox> / "mbox", so no other T6050 board's DTB changes.
  • Follow-up. If a row from a board whose firmware uses the setup port establishes message ordering without a timeout, the driver can run the setup handshake dynamically and remove the board-tree override. Adding an explicit AOP memory-region property across T6050 boards (matching Aura's reservation) is also a separate follow-up.

Change

Single commit on main (d96a319663bb, both #2556 and aurora-silicon/aura#474 are now merged):

  • arch/arm64/boot/dts/apple/t6050-j775d.dts: enable aop, aop_mbox, aop_dart, and admac_base_ns; override aop mboxes = <&aop_mbox> and mbox-names = "mbox" with an explanatory comment.
  • arch/arm64/boot/dts/apple/t6050-studio-audio.dtsi: update the comment to note that the AOP audio node exists once the board enables the AOP.
Evidence

Testing

Own-base A/B row on J775D (Mac Studio, M5 Ultra): kit j7aop-r3 (window aop2890r3@20261124-1441) is main 4abf0f83c290 plus this commit (d96a319663bb, no other PRs carried), compared against baseline kit j7aop-r3b (window aop2890r3@20261124-1441), bare main 4abf0f83c290 alone. Both arms ran one-shot with a read-only root on the default J775D command line through the 27.2 stub under published Aura c0aaf3162ede (clean origin/main build including merged aurora-silicon/aura#474).

Metric Baseline kit j7aop-r3b PR kit j7aop-r3
AOP status, mbox-names disabled, mbox setup okay, mbox
AOP firmware log reservation (reserved-memory) none (AOP disabled) asc-firmware@1000f4cc000 (apple,asc-mem, no-map, 0x2c000)
AOP boot not probed RTKit: Initializing (protocol version 12), apple_aop bound
Audio child & driver none audio.0.auto (snd_soc_t8152_aop_audio bound)
Sound card none (macaudio deferred on Headphone Jack CPU DAI) AppleJ775D (17 controls: Headphone Jack, Headset Mic Jack, jack mixer controls; 0 deferred devices)
Speaker safety n/a snd-soc-macaudio sound: driver can't assure safety on this model, disabling speakers (no speaker controls exposed)
AOP error lines 0 0
Failed systemd units 2 (iwd, systemd-networkd-persistent-storage) 2 (exact same 2)
err-level kernel lines 7 8 (+1 expected macaudio speaker-safety line)
WARNING / BUG / Oops / panic 0 / 0 / 0 / 0 0 / 0 / 0 / 0
  • The 7 baseline err-level lines are identical on both boots (3 apple-dcp lines, 3 expected aurora unsupported 27.2 GPU firmware lines on bare main, 1 USB HID no listeners). The only new err-level line on j7aop-r3 is macaudio's expected speaker-safety notice.
  • The 2 failed units on both boots are iwd.service (defconfig crypto) and systemd-networkd-persistent-storage.service (read-only test root).
  • ALARM has no SELinux, so there is no AVC count.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Review at 212fa1f (non-author, draft). No blocker in the J775D commit; it stays behind #2556 (carried here) and aura#474, as the description says.

What I checked:

  • Driver side (from soc: apple: aop: take the setup-port boot only with a "setup" mailbox #2556): the setup-port boot now needs both the SoC config's setup_port and a setup entry in the AOP's mbox-names. Every T6050 board whose tree keeps the two-mailbox AOP node from the SoC file is unchanged. Only a board that overrides mboxes/mbox-names to the RTKit mailbox alone gets the plain RTKit boot. All three cfg.setup_port uses in probe (queue creation, setup_open, start order) switch to the local value, so no path opens the setup queue without the mailbox.
  • The binding text matches: minItems: 1 was already there, and the new description says what leaving out setup selects.
  • t6050-j775d.dts enables the AOP, its RTKit mailbox, its DART and admac_base_ns. It does not touch the setup mailbox node, which stays disabled in the shared files, so no other T6050 board's tree changes.
  • Speaker: t6050-studio-audio.dtsi still describes the SN012776 with no sense slot, and macaudio admits a speaker only through a protection owner, so enabling the AOP makes the headphone card register without making the speaker playable. A row line would show it: with this applied, the speaker controls are absent or locked on the J775D card.
  • Merges cleanly on the current integration/aurora tip. The commits carry only their authors' Signed-off-by.

Small points, not blocking:

  • In the description, the aura link reads aurora-silicon/aurora-silicon/aura#474.
  • You already name the longer-term shape: run the setup handshake only when the firmware opens the port, and then no board needs to state it. If a J714s/K116s row ever shows the order of the first messages, that removes the board-tree property.
  • The 15 s probe timeout stays for boards that do describe setup. That is fine, since it is the existing behaviour.

Assisted-by: LLM (Claude:Opus 5.5)

… alone, so the Mac Studio gets its sound card

The T6050 tree describes the AOP, its mailboxes, its DART and the audio
DMA controller disabled, and the J775D board file did not enable them,
so the Mac Studio's (J775D) AOP never probed and no sound card
registered. Its AOP firmware also does not service the setup port.
Started through both mailboxes, its boot timed out after 15 s ("setup
port: boot incomplete (AP power on: false, endpoints: 0/0)", probe -110)
on the 27.0 and the 27.2 firmware. Read after the timeout, the setup
mailbox still held the AP's message, its receive side had raised no
interrupt and nothing was queued towards the AP, while the RTKit mailbox
had carried the boot up to AP power on.

Enable the AOP, its RTKit mailbox, its DART and the audio DMA controller,
as the J714s, K114c and K116s board files do, and give the AOP only its
RTKit mailbox. The driver takes the setup-port boot only when the AOP is
given a mailbox named "setup", so it boots the AOP over RTKit: the
firmware announces its audio service, the audio child device binds and
the headphone jack's card registers. The setup mailbox node stays
described, disabled. The ADT describes the setup port the same way on
boards whose firmware uses it, so the board's tree is where this is
stated.

The Mac Studio audio file said the AOP audio node exists only after a
boot loader handoff; it now says it exists once the board enables the
AOP.

Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
@funkzy
funkzy force-pushed the pr/j775d-aop-rtkit-mailbox branch from 212fa1f to d96a319 Compare November 24, 2026 23:25
@funkzy
funkzy marked this pull request as ready for review November 24, 2026 23:27
@funkzy
funkzy requested review from a team as code owners November 24, 2026 23:27
@funkzy
funkzy requested review from LiamRay11 and maralcbr November 24, 2026 23:27
@funkzy

funkzy commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Rebased cleanly onto main (4abf0f83c290) as a single J775D DT commit (d96a319663bb) now that both #2556 and aurora-silicon/aura#474 are merged.

Re-tested on J775D (own-base A/B row: kit j7aop-r3 vs baseline kit j7aop-r3b, window aop2890r3@20261124-1441, 27.2 stub, published Aura c0aaf3162ede including merged aurora-silicon/aura#474):

  • reserved-memory reserves the AOP firmware log (asc-firmware@1000f4cc000, apple,asc-mem, no-map, 0x2c000).
  • apple_aop binds (RTKit: Initializing (protocol version 12)), audio.0.auto (snd_soc_t8152_aop_audio) probes, AppleJ775D registers with 17 controls (Headphone Jack, Headset Mic Jack, jack mixer controls; 0 deferred devices; 0 AOP errors).
  • Speaker safety verified: snd-soc-macaudio sound: driver can't assure safety on this model, disabling speakers (no speaker controls exposed).
  • Fixed the aurora-silicon/aura#474 link typo in the PR body, updated to the What / Tested / Risk / Not yet structure with no AI attribution, and noted aurora-silicon/aura#474 as the minimum boot loader in Risk.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Merge readiness at d96a3196: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
Review no approved by satchlj, but GitHub does not count it yet (code owner from Core or Omarchy Mac needed, or approval went stale)
Requested changes ok none
Hardware row at head ok in the PR body at d96a3196
Conflicts ok none
PR text ok Risk: two-way · affects J775D (Mac Studio, M5 Ultra) only; no other T6050 board file changes. Requires a boot loader carrying aurora-silicon/aura#474 (merged in c0aaf3162ede) so the AOP's firmware log buffer in RAM is reserved (no-map) before Linux starts the AOP.

Areas: area:bringup

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

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Gemini 4 Neon on @satchlj's behalf

Verdict at d96a319663bb

Approve. Enabling J775D AOP audio over its primary RTKit mailbox ("mbox" without "setup") matches t6050-die0.dtsi, the apple,t8152-aop.yaml binding, and drivers/soc/apple/aop.rs, and passes dt-checks and exact-head J775D A/B bringup.

Blockers

None.

Checked

  • Diff audit (2 files, +25/-1):
    • arch/arm64/boot/dts/apple/t6050-j775d.dts: verified &aop_mbox, &aop_dart, &admac_base_ns, and &aop match t6050-die0.dtsi, and overriding mboxes = <&aop_mbox>; mbox-names = "mbox"; conforms to Documentation/devicetree/bindings/soc/apple/apple,t8152-aop.yaml (minItems: 1, omitting "setup" to select primary-RTKit-only boot) while leaving &aop_setup_mbox disabled.
    • arch/arm64/boot/dts/apple/t6050-studio-audio.dtsi: updated comment accurately reflects J775D enabling its own AOP path.
  • CI at d96a319663bb: dt-checks=SUCCESS, host-tests=SUCCESS, readiness=SUCCESS, pr-text=SUCCESS.
  • Posted hardware evidence: J775D (M5 Ultra) exact-head d96a319663bb own-base A/B PASS (AppleJ775D sound card with 17 controls, speakers safely disabled by macaudio safety check, 0 AOP errors, 0 unexpected errors).
  • Untested scope: Static DT/driver + CI + posted-evidence review only (no kernel install/boot run by this reviewer); physical jack plug/playback remains explicitly noted as untested.
Evidence
  • Verified files: arch/arm64/boot/dts/apple/t6050-j775d.dts, arch/arm64/boot/dts/apple/t6050-studio-audio.dtsi (cross-checked against t6050-die0.dtsi, apple,t8152-aop.yaml, and drivers/soc/apple/aop.rs).
  • CI: dt-checks SUCCESS, host-tests SUCCESS, readiness / readiness SUCCESS, pr-text / pr-text SUCCESS at d96a319663bb.

@DjDeveloperr
DjDeveloperr merged commit 88b412c into aurora-silicon:main Nov 25, 2026
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants