Skip to content

drm/asahi: present the GPU driver as Aurora - #683

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
aurora/kernel-identity
Oct 31, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
aurora/kernel-identity

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

The GPU driver now presents itself as Aurora everywhere userspace can see it.

Merge order: after aurora-silicon/mesa#126 has reached the distro Mesa pins and the fleet. With an "aurora" kernel and a Mesa that only knows "asahi", the desktop falls back to llvmpipe and Borealis finds no device.

What changes:

  • DRM name aurora, desc Aurora GPU for Apple AGX, version 1.0.0 instead of 0.0.0. The major version is the UAPI generation and only changes if that ABI ever breaks. The minor goes up with each new ioctl, flag or feature bit. The patch level marks fixes userspace may need to detect.
  • The module is aurora.ko with alias: ["asahi"], so modprobe asahi and modinfo asahi still resolve. The platform drivers are aurora, aurora-g15 and aurora-g16.
  • debugfs moves to aurora-g15, aurora-g16 and aurora-g17.
  • dma-fence driver and timeline names, scheduler, workqueue, shrinker and cooling-device names use aurora.
  • Log lines take their prefix from the module name, so the two memacct messages drop their own "asahi:" copy.
  • Kconfig prompts and help text, doc comments and the G17 capacity doc say aurora.
  • The G15 probe-init test models the new platform driver names. The G16 hardware tests (asahi-m4/) and the capacity watch script accept the new names, and the G16 tests still accept the old ones.

What stays, on purpose:

  • CONFIG_DRM_ASAHI*. All three distro configs, asahi.config and the fleet build gate name these symbols, and a renamed symbol would silently drop the GPU driver from those builds.
  • include/uapi/drm/asahi_drm.h and its ioctl, struct and enum names. The numbers and layouts are ABI. The names are API for Mesa's copy of the header, the selftests and the distros' test_updatelib.py, and none of them shows up at runtime.
  • The asahi/t6031-j516c-board.bin firmware path and the asahi,* device tree properties. These are contracts with the firmware layout and the boot chain.
  • The source directory and internal symbol names. They can follow later without any userspace effect.
  • Copyright, SPDX and author lines are untouched.

Things that change for userspace and tooling:

  • asahi.<param>= on the kernel command line and options asahi in modprobe.d no longer apply. They become aurora.<param> and options aurora. None of the four fleet machines uses either.
  • /sys/module/asahi and /sys/kernel/debug/asahi-g1x move to the aurora names. aurora-diag and gpubench have PRs that accept both: Read the GPU driver's debugfs under its Aurora name aurora-diag#2 and Recognise the GPU kernel module under its Aurora name gpubench#8.
  • virglrenderer (the host side of muvm native context) opens the GPU by the name "asahi". Machines that run Steam through muvm need the virglrenderer patch first. None of the four fleet machines does.
  • Stock upstream Mesa only knows "asahi". That covers the Flatpak GL.default runtime and containers. Our aurora-flatpak-gl and FEX guest Mesa are built from the same pin as the system Mesa, so they are covered.

Testing (buildbox):

  • Full arm64 build: Fedora 7.0.13 base config plus asahi.config, LLVM, Rust. Image and modules build with no new warnings in the driver.
  • aurora.ko modinfo shows name: aurora and alias: asahi. modules.alias has alias asahi aurora, and modprobe -n asahi resolves to aurora.ko.
  • The module's strings carry "aurora", "aurora-g16", "aurora-g17" and "Aurora GPU for Apple AGX", and no bare "asahi" name.
  • tools/asahi/run-host-tests.py: 152 ok, 0 FAIL. That includes apple-dcp, asahi-g15, asahi-m4 and the G15 probe-init tests with mutations. It is the same test set as aurora-wip.
  • apple-dcp run.py: 80 ok, 0 not ok.
  • Not booted yet. The validation plan covers old kernel + new Mesa, then new kernel + new Mesa, on all four machines, and is with the fleet rollout.

🤖 Generated with Claude Code

The GPU driver now identifies itself as Aurora everywhere userspace can
see it. Our G13 to G17 code has moved well past where it started, and
M3 and newer never had anything to do with the old name.

What changes:

- DRM name "aurora", desc "Aurora GPU for Apple AGX", version 1.0.0.
  The major version names the UAPI generation, the minor goes up with
  each new ioctl, flag or feature bit, and the patch level marks fixes
  userspace may need to detect. The old 0.0.0 said nothing.
- The module is aurora.ko and keeps "asahi" as a module alias, so
  "modprobe asahi" and modinfo still work. The main platform driver is
  "aurora" and the G15 and G16 ones are "aurora-g15" and "aurora-g16".
- debugfs moves to aurora-g15, aurora-g16 and aurora-g17.
- dma-fence driver and timeline names, scheduler, workqueue, shrinker
  and cooling device names use aurora. Log lines get their prefix from
  the module name, so the two memacct messages drop their own copy.
- Kconfig prompts and help say Aurora.

What stays, on purpose:

- CONFIG_DRM_ASAHI and the other Kconfig symbols. Every distro config
  and build gate names them, and a renamed symbol would silently drop
  the GPU driver from those builds.
- include/uapi/drm/asahi_drm.h and its ioctl, struct and enum names.
  That header is ABI and API for Mesa and other userspace, and the ioctl
  numbers and layouts are unchanged.
- Firmware paths and the asahi,* device tree properties the loaders
  pass in. Those are contracts with the boot chain and the firmware
  layout, not branding.
- The source directory and internal Rust and C symbol names, which can
  follow later without any userspace effect.
- Copyright, SPDX and author credit, unchanged.

Userspace that matches the DRM name needs to know "aurora": aurora-silicon
Mesa accepts both names from the companion Mesa change, and that has to
ship before this kernel. The in-tree selftests and the G16 hardware
tests accept both names.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Tested in fleet12d (aurora-wip cd217c2 + #661 #633 #689 #683) on the J616s, the M1 Pro and the Neo, with no regression: kernel -p3 0 and aurora-diag check --expect 0 fail on each.

🤖 Generated with Claude Code

@RyanTheTide
RyanTheTide merged commit fbc4e79 into aurora-wip Oct 31, 2026
@RyanTheTide
RyanTheTide deleted the aurora/kernel-identity branch October 31, 2026 09:30
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