Repository navigation
Conversation
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>
|
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:
Small points, not blocking:
Assisted-by: LLM (Claude:Opus 5.5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
status = "okay", as the J714s, K114c and K116s files stateit. The J775D file now does the same, for the same four nodes the AOP's audio path uses.
whether it gives the AOP a mailbox named
setup, and the binding says so.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).
nothing arrived. A J775D or chip check in the driver would be the board gate that the tree property replaces.
so no other T6050 board changes.
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 theAOP gets
mboxes = <&aop_mbox>andmbox-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 nowsays 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-onlyone-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).
j7aop-b)j7aop-p3)status,mbox-namesdisabled,mbox setupokay,mboxRTKit: Initializing (protocol version 12), driver boundaudio.0.autoon the AOP'saudionode,snd_soc_t8152_aop_audioboundHeadphone JackandHeadset Mic JackHID 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.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.
j7aop-p3, base integration/aurora f5f023b):Its pass names no log here (
0 named no-map, 0 already reserved, 14 left as they were): the AOP's log liesoutside 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/auroraf5f023b + #2556 + cf46c516e23f) ran against kit
j7aop-b(the same base without it) under Aura main dc2313f8mbox-namesmbox setupmboxsetup port: boot incomplete (AP power on: false, endpoints: 0/0): ETIMEDOUT, probe -110RTKit: Initializing (protocol version 12), driver boundHeadphone JackandHeadset Mic JackBuilds and checks
status, the AOP'smboxesandmbox-names, and the setup mailbox node's phandle, which nothing references any more. Nothing elsechanges.
--stricton the commit: 0 errors, 0 warnings, 0 checks.Still to run
evtest), and playback through the jack. Both need handsat the Studio.
Assisted-by: LLM (Claude:Opus 5.5)