Skip to content

dmaengine: apple-sio: select firmware behavior from compatible data - #603

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
conv/apple-sio-compatible
Oct 30, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
conv/apple-sio-compatible

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

This carries e3653e6 from aurora-wip onto integration/aurora, as part of converging the two kernel lines.

The T6030 SIO backend had its own build option, APPLE_SIO_T6030, and #if blocks through the driver. Now the apple,t6030-sio compatible selects the boot-table check, the 0x600 FIFO threshold and whole-descriptor publishing through match data. The generic apple,sio profile keeps the M1/M2 behaviour (0x800, no table check). The protocol-10 validation still runs before any DMA or hardware setup. This removes the option and its asahi.config line, as the rule against platform knobs asks. The binding text and the KUnit probe overlay cover the specific match, missing or older tables and an unknown compatible.

The only conflict was the asahi.config line, which is dropped.

Testing

  • The build of the convergence stack (this and the other four convergence PRs on 695d974, shipping recipe: Fedora Asahi base + asahi.config + olddefconfig) is queued on the buildbox. I will add the result here as a comment. The SIO KUnit cases need APPLE_SIO=y, which the shipping recipe does not set (it builds SIO as a module), so they still need a separate KUnit run.
  • Not yet booted. Before it merges here it needs a boot on the M1 Pro or the M2 to check that the generic SIO still probes and the DP audio DMA channels come up (enumeration only, no playback). T6030 needs an M3 Pro, which is outside the fleet. The T6041 SIO (apple,t6041-sio) stays unbound, as it is today.

🤖 Generated with Claude Code

The T6030 backend is already enabled in the shared kernel fragment, but it has a separate build option and repeated conditional code. Compile it with the common SIO driver and select its boot-table validator, FIFO threshold and descriptor handling through the existing apple,t6030-sio compatible. The generic apple,sio profile retains the M1/M2 behavior.

Keep the protocol-10 validation and refuse incompatible tables before DMA or hardware setup. Remove APPLE_SIO_T6030 and its shared fragment request. Update the binding description, synthetic DT overlay and KUnit probe cases to cover the specific match, missing/older tables and an unknown compatible.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
(cherry picked from commit e3653e6)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

The convergence stack build is still waiting for a buildbox slot, because every slot is busy with other builds. It is buildbox /srv/aurora/fast/o/conv-20261030/conv-build-stack.sh on branch conv/stack (all five convergence commits on 695d974). The result goes to stack-run.log in that directory, ending with BUILD-RC <n>. Do not merge this before that shows 0 and the boot test in the description has passed.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

The stack build passed: BUILD-RC 0. It built branch conv/stack at 1ab07a86a030, which is all five convergence commits (#600 to #604) on integration/aurora 695d974. The config is the shipping recipe (Fedora Asahi base + asahi.config + olddefconfig) plus CONFIG_DRM_ASAHI_G15=y, so the G15 adapter in #602 was compiled too. It built Image, modules and dtbs as 7.3.0-aurora-conv, with clang/LLVM and the corrected bindgen 0.73.2. None of the touched files (apple-sio, hci_bcm4377, drm/asahi workqueue/g15) gave a warning. The only warning in the whole build is the existing unused MM static in drivers/gpu/drm/asahi/memacct.rs, which none of these commits touch. The SIO KUnit cases were not run, because they need APPLE_SIO=y and the shipping recipe builds SIO as a module. What is still needed before merging is the boot test in the description.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Boot-tested in fleet10 (7.3.0-aurora-fleet10): integration/aurora 1173b79 plus 587, 588, 589, 590, 596, 599, 600, 601, 603, 604, 605, 607 and 608, built with the shipping recipe (Fedora Asahi base + asahi.config, 0 mismatches, all distro gates). apple-dcp host selftests 80/80, and the other host tests match integration/aurora exactly (62 pass, the same 26 pre-existing failures). One-shot boots on the Neo (J700), the M2 and the M1 Pro, compared with each machine's fleet9 boot; fleet10 is now the default on all three. Full dmesg and journals are in aurora-ctl reports/fleet10-20261030.

Result for this PR: pass.

  • M2: apple-sio 236400000.sio probes (RTKit protocol 12, SIO protocol v9), 168 DMA channels as on fleet9.
  • M1 Pro: 39bc00000.sio bound to apple-sio, 160 DMA channels as on fleet9.
  • Enumeration only, no playback (machines stay muted).

@RyanTheTide
RyanTheTide merged commit 766d24a into integration/aurora Oct 30, 2026
@RyanTheTide
RyanTheTide deleted the conv/apple-sio-compatible branch October 30, 2026 05:50
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.

1 participant