Repository navigation
drm/asahi: present the GPU driver as Aurora - #683
Merged
Merged
Conversation
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]>
This was referenced Oct 31, 2026
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 |
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.
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:
aurora, descAurora 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.aurora.kowithalias: ["asahi"], somodprobe asahiandmodinfo asahistill resolve. The platform drivers areaurora,aurora-g15andaurora-g16.aurora-g15,aurora-g16andaurora-g17.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.configand 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.hand 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.asahi/t6031-j516c-board.binfirmware path and theasahi,*device tree properties. These are contracts with the firmware layout and the boot chain.Things that change for userspace and tooling:
asahi.<param>=on the kernel command line andoptions asahiin modprobe.d no longer apply. They becomeaurora.<param>andoptions aurora. None of the four fleet machines uses either./sys/module/asahiand/sys/kernel/debug/asahi-g1xmove 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.GL.defaultruntime and containers. Ouraurora-flatpak-gland FEX guest Mesa are built from the same pin as the system Mesa, so they are covered.Testing (buildbox):
asahi.config, LLVM, Rust. Image and modules build with no new warnings in the driver.aurora.komodinfo showsname: auroraandalias: asahi.modules.aliashasalias asahi aurora, andmodprobe -n asahiresolves toaurora.ko.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.run.py: 80 ok, 0 not ok.🤖 Generated with Claude Code