Repository navigation
J616s (M4 Pro): DisplayPort/HDMI audio: T6041 SIO backend, desktop DCP audio fixes, DPA1 chain - #1256
Merged
Merged
Conversation
The M4 Pro/Max (T6041) SIO carries the DisplayPort/HDMI audio streams of the external display processors. Its firmware reports protocol 10, as T6030's does, but its boot contract differs, so the compatible selects it and protocol 10 alone does not: - the boot loader's control tables go to the firmware in a fixed order (panic buffer, map ranges, wrapper tunables, the optional register tables, a power-gating scalar 0x2a = 0, DMA shims, device types, performance buffer), each as its address and then its exact size; - the driver owns the segment array (0xaaa entries of 12 bytes) and the response array (0x1cc0 entries of 16 bytes, one per endpoint and tag) and publishes both as entry counts; DMA is registered only after the response count is acknowledged; - a channel configuration is six words: shape, timeout, FIFO size, refill threshold 0x600, the host default timeout 5 and a zero word; - recycled period descriptors are cleared before reuse. The probe refuses tables that are not exactly that contract (a missing, repeated, unknown or wrongly sized table, the DMA arrays or the scalar from the loader, or a table outside the windows the loader mapped) before it starts the coprocessor, and refuses firmware that reports another protocol. The firmware itself is preloaded by iBoot; nothing is loaded. KUnit: apple-sio-t6041 covers admission, order, optional tables, every ACK failure, the array counts and the six-word configuration; the existing protocol 9 and T6030 suites are unchanged and pass. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
The desktop 26.x audio binding (endpoint 0x2b) could not start on any
Mac: avep_init(), its admission and the native-link check all required
dcp->external, which is set only for apple,t6030-dcpext. The M4 Pro/Max
external processors are apple,t6041-dcpext, so appledrm.hdmi_audio=1 on
the J616s logged "endpoint 0x2b (AUDIO) not started: audio init failed
(-95)" for both. Record the desktop external role in its own flag and use
it on those paths.
The audio interface those processors publish is dcpav-audio-interface-epic,
unit 0, not the provisional dcpav-audio-epic. With its role in front
("dispext0:") the compact announcement is longer than the 32-byte field
and arrives cut to 31 characters, without its unit. Let an ops entry name
its full "<name>:<unit>" (compact_full) and match a cut of it of at least
20 characters, only when the announcement filled its field; the admission
takes such a cut as unit 0 and nothing else.
The binding stays behind appledrm.hdmi_audio (off by default).
Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
Enable what the first DisplayPort/HDMI audio stream needs: the SIO CPU power domain, the SIO DART and mailbox, the DPA power domains and the DPA1 client of DCPEXT0 (SIO channel 0x66). The SIO node itself stays disabled: the boot loader enables it once it has reserved the firmware iBoot preloaded and published the T6041 boot tables, and finds it through the new "sio" alias. Without such a loader DPA1 waits for its channel. DPA2 (DCPEXT1, channel 0x68) stays disabled until it is qualified. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
…hain Name the published desktop audio service, describe how its cut compact announcement is admitted, and say which part of the J616s DPA chain the device tree enables and what the boot loader enables. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
Endpoint 0x2b of the M4 Pro/Max external processors also publishes their CEC interface, which arrives cut to "dispext0:dcpav-cec-interface-ep". Unmatched, every boot with appledrm.hdmi_audio=1 logged "unable to match compact service". The host makes no use of CEC: take it with the same no-op service the T6030 HDMI port uses and drop its reports. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
Contributor
Author
|
Hardware proof on the J616s (M4 Pro). Silent, headless, nothing plugged in, with the auto-revert guards armed (bootguard + aura-try trial-guard). Default (no
Afterwards the Mac was put back on fleet41 with Stage 2 b6133b33, and the test kernels were removed. Still needed: an audible check on a real monitor (SIO CONFIGURE/ISSUE, ELD, the DCPEXT0 link source byte). Until then this stays opt-in behind 🤖 Generated with Claude Code |
RyanTheTide
marked this pull request as ready for review
November 8, 2026 21:03
This was referenced Nov 20, 2026
Closed
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.
DisplayPort/HDMI audio on the M4 Pro (J616s: the built-in HDMI port and USB-C DP alt mode, through DCPEXT0). It stays behind
appledrm.hdmi_audio(off by default) until it has been checked on a real monitor.Commits
dmaengine: apple-sio: add the T6041 SIO. Adds strictapple,t6041-siomatch data, kept separate from T6030 even though both report protocol 10:0x2a = 0;{shape, 0, 0x800, 0x600, 5, 0}, and recycled descriptors are cleared before reuse;The firmware is preloaded by iBoot. Nothing is loaded or shipped.
drm/apple: start desktop external audio on the T6041 DCPEXTs. The drm/apple: draft desktop 26.x external audio and J616s DPA graphs #729 path could never start on hardware:avep_init()requireddcp->external, which is set only forapple,t6030-dcpext(hdmi_audio=1logged "endpoint 0x2b (AUDIO) not started: audio init failed (-95)" on both DCPEXTs). This commit:desktop_externalflag;dcpav-audio-interface-epic(unit 0);drm/apple: take the T6041 DCPEXT CEC interface on endpoint 0x2b. Adds a no-op CEC service (as on T6030), so the cutdcpav-cec-interface-epno longer logs "unable to match".arm64: dts: apple: t6040-j616s: enable the DPA1 audio chain. Adds thesioalias and enables the SIO CPU domain, DART, mailbox, DPA power domains and DPA1. The SIO node stays disabled: the loader enables it after the handoff (sio: hand the T6041 SIO its boot tables aura#120). DPA2/DCPEXT1 stays disabled.Tests
apple-sio*: 22/22, including the newapple-sio-t6041suite (admission, order, optional tables, every ACK failure, array counts, six-word config).apple-av-native-audio: 30/30, including the new admission and cut cases.apple-av-audio-lifetimecrashes in qemu with my kunitconfig. It crashes the same way on the untouched base 8a8adee, so this branch did not cause it.7.3.0-aurora-dpaj6a= 8a8adee + this branch minus the CEC commit, with an aura-try Stage 2 trial of aura#120 on the live head and this DTB,hdmi_audio=1):SIO protocol v10, the probe bound, every setup ACK succeeded, and DMA was registered (128 channels);dcp-dp-audiobound DPA1 and holds SIO channel 0x66;HDMI/DP Jackis off with nothing plugged in, and the channel maps are listed;hw_paramsat 48 kHz / 2 ch succeeded andhw_freesucceeded (no sink, so no DMA configuration);🤖 Generated with Claude Code