Skip to content

arm64: dts: apple: t8103: give every M1 board the sio alias - #3191

Merged
DjDeveloperr merged 1 commit into
mainfrom
fix/t8103-sio-alias
Nov 26, 2026
Merged

DjDeveloperr merged 1 commit into
mainfrom
fix/t8103-sio-alias

Conversation

@erikwb

@erikwb erikwb commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What: M1 laptops and iMacs (J293, J313, J456, J457) never registered a DisplayPort audio card: dcp-dp-audio 238334000.audio-controller: No DMA device. The boot loader finds the SIO (the DMA engine behind dpaudio) by its sio alias, and only the Mac mini (J274) had it. So the SIO firmware was never set up and the node stayed disabled. This moves the alias into t8103-jxxx.dtsi, next to the dpaudio1 it serves, as t8112-jxxx.dtsi already does. The SIO node stays disabled in the DTS; the boot loader turns it on once its firmware data is in place.
Tested: J313 M1 Air (firmware 27.2.1) at cc81bde, with a CalDigit TS5 dock and a 4K120 DSC monitor on DP-2 (default kernel 7.3.0-j313usb4s2r, default cmdline; the DTB the M1 already boots plus this commit's one alias property, trial boot.bin via a one-shot aura-try): pass.

  • ELD: stereo LPCM, 32/44.1/48 kHz, 16/20/24-bit. Jack reads on. A PipeWire sink "HDMI / DisplayPort Output [Apple USB-C DisplayPort]" shows up (s24-32le, 2ch, 48 kHz).
  • A quiet 440 Hz tone (−30 dBFS) through that sink plays: RUNNING, hw_ptr +48k/s, pw-play rc 0, 0 xruns.
  • After 1 real deep S2R (rtcwake -d /dev/rtc1 -m mem -s 12), DP-2, jack, ELD and sink come back and the tone plays again.
  • 0 new kernel warnings against a default-DTB boot with the same dock and S2R.
  • Earlier, without a sink: zero samples stream before and after 1 deep S2R.
    Risk: two-way door · M1 (T8103): J274 DT content unchanged; J293/J313/J456/J457 gain the SIO and a DP audio card, and only where the boot loader sets up the SIO.
    Not yet: listening at the monitor's jack (the row is transport-level); rows on J293/J456/J457 (no such hardware here).
Details
  • The boot loader (dt_setup_sio()) looks up the node by the sio alias. It then reserves the SIO firmware, copies the SIO firmware data and parameters from the ADT (asio-ascwrap-tunables, map-range, dmashim, device-type) into sio-firmware-data reserved regions and apple,sio-firmware-params, and only then writes status = "okay". Without the alias it skips the SIO entirely, so of_find_device_by_node() in dcpaud_probe() finds no device and the card is never created.
  • J313 27.2.1 ADT: /arm-io/sio carries all four properties, with keys MISC / SSPI SUAR SAUD / dSPI dUAR dDPA, all known to the boot loader.
  • Built-DTB diff against main (dtc -I dtb): J293, J313, J456 and J457 gain only sio = "/soc/sio@236400000" in /aliases; for J274 only the property's position changes. t8103-j274.dts keeps its static &sio { status = "okay"; }.
  • The DCPAVAudioInterface (chan:3) ... retcode 0xe00002d7 warning on resume is unrelated and already shows on default boots. It is the firmware refusing the superseded instance, and the successor on channel 7 connects (as on J473 in drm/apple: external DP/HDMI audio on firmware-27 classic-layout DCPs (Mac mini M2) #3050).
  • Row method: the J313 boots the thunderbolt, phy, drm/apple: support T8103 USB4 dock and DCPEXT deep sleep #3178 stack, whose kernel needs that branch's DT. The trial DTB is that DTB with this commit's one alias property added (fdtput), so its change matches this PR's DTB change against main.
Evidence

Before (default DTB, same kernel):

dcp-dp-audio 238334000.audio-controller: No DMA device
/proc/device-tree/soc/sio@236400000/status = disabled   (no memory-region, no sio-firmware-params)
aplay -l: internal card and USB audio only

Trial (DTB + sio alias), TS5 + monitor on DP-2:

OF: reserved mem: ... sio-firmware-data@... (128 KiB), sio-firmware-data@... (16 KiB)
apple-sio 236400000.sio: SIO protocol v10
card 8: USBC [Apple USB-C DisplayPort], device 0: Apple USB-C DisplayPort
HDMI/DP Jack: on
ELD: 10 00 05 00 00 10 00 01 | ... | SAD 09 07 07
     ver 2, 1 SAD, speakers FL/FR; LPCM 2ch, 32/44.1/48 kHz, 16/20/24-bit
PipeWire: alsa_output.platform-238334000.audio-controller.HiFi__HDMI1__sink  s24-32le 2ch 48000Hz, port HDMI1 available
pw-play --target <sink> tone440.wav (-30 dBFS): sink RUNNING, S24_LE 2ch 48 kHz, period 512 / buffer 8192,
     hw_ptr 94720 -> 190976 over ~2 s, rc 0
PM: suspend entry (deep) 06:59:39 / PM: suspend exit 06:59:53; apple-sio RTKit re-initialised;
     av_service_connect: starting audio service, plugged:1; new DCPAVAudioInterface on channel 7
after wake: jack on, ELD identical, tone hw_ptr 95232 -> 191488 over ~2 s, rc 0
user journal xrun/underrun count: 0
kernel warnings (prio <= warning, SEP and GPU spam excluded) not present on default boot -2 (dock + 2 S2R): none

Earlier run without a sink (dock unplugged): aplay -D hw:8,0 /dev/zero hw_ptr 72038 -> 120172 per ~1 s, rc 0, before and after 1 deep S2R.

After each run the Mac went back to its committed boot.bin (md5 unchanged), with no aura-try and GRUB default and grubenv unchanged.

checkpatch --strict: 0 errors, 0 warnings. make W=1 for the five T8103 DTBs adds no new warnings. CI at cc81bde: dt-checks, host-tests, readiness, pr-text all pass.

The boot loader finds the SIO by its "sio" alias: it reserves the SIO
firmware, hands over the firmware data and parameters from the ADT, and
only then sets the node to "okay". Only the Mac mini (J274) had the
alias, so on the MacBook Air (J313), MacBook Pro (J293) and iMacs
(J456/J457) the SIO stayed disabled. Their dpaudio1 is enabled in
t8103-jxxx.dtsi, but without the SIO it has no DMA device ("No DMA
device"), so DisplayPort audio over USB-C never registered a card.

Move the alias into t8103-jxxx.dtsi next to the dpaudio1 it serves, as
t8112-jxxx.dtsi does. The SIO node itself stays disabled in the DTS; the
boot loader enables it once its firmware is set up.

Signed-off-by: Erik Bourget <erik@ebourget.net>
@erikwb
erikwb marked this pull request as ready for review November 26, 2026 07:04
@erikwb
erikwb requested review from a team as code owners November 26, 2026 07:04
@erikwb
erikwb requested review from Acelogic and maralcbr November 26, 2026 07:04
@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) blast:m1 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 26, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at cc81bde6: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at cc81bde6
Conflicts ok none
PR text ok Risk: two-way · M1 (T8103): J274 DT content unchanged; J293/J313/J456/J457 gain the SIO and a DP audio card, and only where the boot loader sets up the SIO.

Areas: area:platform

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

@DjDeveloperr
DjDeveloperr merged commit 9a98622 into main Nov 26, 2026
8 of 9 checks passed
@RyanTheTide
RyanTheTide deleted the fix/t8103-sio-alias 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) blast:m1 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.

2 participants