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

Draft
funkzy wants to merge 3 commits into
aurora-silicon:integration/aurorafrom
funkzy:pr/j775d-aop-rtkit-mailbox
Draft

funkzy wants to merge 3 commits into
aurora-silicon:integration/aurorafrom
funkzy:pr/j775d-aop-rtkit-mailbox

Conversation

@funkzy

@funkzy funkzy commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #2556. This branch carries #2556's two commits; the J775D change is the last commit (212fa1f).

The AOP's firmware log lies in RAM that Linux would otherwise use on this machine and must be reserved before Linux
starts the AOP; the current boot loader leaves it unreserved. We raised it on aurora-silicon/aura#427
(aurora-silicon/aura#427 (comment)), whose review kept it out of that PR's
scope, so aurora-silicon/aura#474 reserves it on the AOP's own path. This PR should land after that one, and
stays a draft until it does.

Problem

On the Mac Studio (J775D, M5 Ultra), integration's T6050 tree leaves the AOP, its mailboxes, its DART and the audio
DMA controller disabled, and the J775D board file doesn't enable them, so the AOP never probes and the headphone
jack's sound card never registers.

Enabling them as the T6050 tree stands also gives the AOP the setup mailbox as well as its RTKit one, so the driver
takes the setup-port boot. This board's AOP firmware never answers on the setup port: the boot times 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.

Why this shape

  • Whether a T6050 board's AOP runs is its board file's status = "okay", as the J714s, K114c and K116s files state
    it. The J775D file now does the same, for the same four nodes the AOP's audio path uses.
  • Until soc: apple: aop: take the setup-port boot only with a "setup" mailbox #2556 the SoC's configuration alone picked the setup-port boot. With soc: apple: aop: take the setup-port boot only with a "setup" mailbox #2556 the board's tree picks it, by
    whether it gives the AOP a mailbox named setup, and the binding says so.
  • The ADT describes the setup port the same way on the J775D as on T6050 boards whose firmware uses it: the same
    register block, interrupts and DART stream. No property the machine reports tells the two apart, so the board tree
    is the narrowest place that can state it. The open J775c PR, arm64: dts: apple: support M5 Max Mac Studio (J775c) #2102, describes the J775c's AOP the same way, with
    its RTKit mailbox alone (still disabled there).
  • A longer timeout would not help: on this board the AP watched the setup mailbox's receive side for 96 s, and
    nothing arrived. A J775D or chip check in the driver would be the board gate that the tree property replaces.
  • The setup mailbox node stays described, disabled, in the shared T6050 files. Only the AOP's reference to it goes,
    so no other T6050 board changes.
  • The driver could later run the setup handshake only when the firmware opens the port, and then no board would need
    the property. Whether that can be decided without a timeout depends on the order in which a board whose firmware
    uses the port sends its first messages, and that needs a row from such a board.

Change

  • t6050-j775d.dts: status = "okay" on the AOP, its RTKit mailbox, its DART and the audio DMA controller, and the
    AOP gets mboxes = <&aop_mbox> and mbox-names = "mbox", with a comment saying why.
  • t6050-studio-audio.dtsi: its comment said the AOP audio node exists only after a boot loader handoff; it now
    says it exists once the board enables the AOP.

Testing

J775D, on the PR's base: integration/aurora f5f023b + #2556 (23f33fc) + this commit (kit j7aop-p3),
against the same kernel without this commit (kit j7aop-b). Nothing else is in either kernel. One read-only
one-shot boot each through the 27.2 firmware, on the default J775D command line plus the test boot's watchdog
dead-man, both under Aura main 90f11310 with nothing added, through the shared row runner (window
j7aura8@20261122-1423, aura aura-aopho-bc).

without this commit (kit j7aop-b) with this commit (kit j7aop-p3)
AOP status, mbox-names disabled, mbox setup okay, mbox
AOP boot not probed RTKit: Initializing (protocol version 12), driver bound
audio child and its driver none audio.0.auto on the AOP's audio node, snd_soc_t8152_aop_audio bound
sound card none (macaudio deferred on its CPU DAI) AppleJ775D, 17 controls, Headphone Jack and Headset Mic Jack
AOP error lines 0 0
failed units 2 2, the same two
err-level kernel lines 4 5
WARNING / BUG / Oops 0 / 0 / 0 0 / 0 / 0
  • The err-level lines: four are on both boots and come from neither change (three display-processor lines and a USB
    HID device with no listeners). With this commit, macaudio adds driver can't assure safety on this model, disabling speakers, which the J775 entry prints by design (ASoC/arm64: M5 Mac Studio audio: headphone jack, speaker off #2535) once the card probes.
  • The failed units: iwd (integration's defconfig lacks the kernel crypto options it needs) and
    systemd-networkd-persistent-storage (the test boots mount the root read-only). The Hyprland session doesn't start
    on either boot, because integration has no J775D GPU node yet.
  • Extra evidence in the same window, not this PR's own row (kit j7aop-p3, base integration/aurora f5f023b):
    • With aura#427 at 78337e00 (window j7aura8@20261122-1423, aura aura-pr427c): the same AOP and card results.
      Its pass names no log here (0 named no-map, 0 already reserved, 14 left as they were): the AOP's log lies
      outside the firmware segment extent it reads, so it stays unreserved.

ALARM has no SELinux, so there is no AVC count.

The setup-port timeout this commit avoids (kits j7aop-p and j7aop-b, extra evidence)

Extra evidence, not this PR's own row: an earlier revision of this change (cf46c516e23f) gave the AOP its RTKit
mailbox alone and left enabling it to an earlier boot loader handoff. Kit j7aop-p (integration/aurora
f5f023b + #2556 + cf46c516e23f) ran against kit j7aop-b (the same base without it) under Aura main dc2313f8

  • aura#333 + that handoff, which enabled the AOP with whatever mailboxes the tree gave it.
the T6050 tree's mailboxes RTKit mailbox alone
AOP mbox-names mbox setup mbox
AOP boot setup port: boot incomplete (AP power on: false, endpoints: 0/0): ETIMEDOUT, probe -110 RTKit: Initializing (protocol version 12), driver bound
sound card none (macaudio deferred on its CPU DAI) AppleJ775D, 17 controls, Headphone Jack and Headset Mic Jack
AOP error lines 3 0
err-level kernel lines 5 4
Builds and checks
  • Both J775D kernels build. The three compiler warnings in the build are in files that neither change touches.
  • The J775D DTB, compared property by property with phandles matched by node: the four nodes' status, the AOP's
    mboxes and mbox-names, and the setup mailbox node's phandle, which nothing references any more. Nothing else
    changes.
  • checkpatch --strict on the commit: 0 errors, 0 warnings, 0 checks.

Still to run

  • Headphone plug detection: jack insert and remove events (evtest), and playback through the jack. Both need hands
    at the Studio.

Assisted-by: LLM (Claude:Opus 5.5)

satchlj and others added 3 commits November 20, 2026 09:41
The T8142 and T6050 configurations boot the AOP through a second
mailbox, named "setup", as well as the RTKit one. Take that boot only
when the device tree gives the AOP a mailbox of that name. A device tree
that lists only "mbox" gets the boot without the setup port, which is
the one the AOP takes where no setup mailbox is described.

Signed-off-by: Satya Benson <satya@benson.earth>
Describe when the setup mailbox must be listed and what its omission
means for the firmware boot protocol.

Signed-off-by: Satya Benson <satya@benson.earth>
… 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>
@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants