Skip to content

drm/asahi: keep G15 compatible with the shared G16 interfaces - #602

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
conv/asahi-g15-shared
Oct 30, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
conv/asahi-g15-shared

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

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

With CONFIG_DRM_ASAHI_G15=y the G15 adapter no longer builds against the shared G16 interfaces. This fixes the stale initialisers (the G16 platform owner, the RTKit protocol version and shmem_setup_ep), resolves timestamp handles through Buffer::firmware_mapping(), and passes no reserved-region map to with_root_entries(), as G16 does.

asahi.config leaves G15 off, so the image the fleet ships is unchanged by this. Whether to turn G15 on in asahi.config is a separate decision for whoever owns that file.

Testing

  • Picks cleanly onto 695d974. 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. That build adds CONFIG_DRM_ASAHI_G15=y so that this code gets compiled.
  • No fleet machine has a G15 GPU. A runtime test needs an M3 (J514s/J516c), which is outside the fleet. On the fleet the code is not compiled, so there is nothing to boot-test.

🤖 Generated with Claude Code

Building G15 and G16 together exposes stale initializers and calls in the
G15 adapter. Initialise the inactive G16 platform owner and preserve the
RTKit default protocol negotiation and legacy shmem callback.

Resolve timestamp handles through Buffer::firmware_mapping(), retaining
the firmware mapping and rejecting CPU-only destinations. Pass no reserved
region map when walking G15 host-allocated RAM page tables, matching the
same shared API contract already used by G16.

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

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.

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