Skip to content

Rename Asahi to Aurora and m1n1 to aura across the tree - #2335

Draft
RyanTheTide wants to merge 5 commits into
mainfrom
purge/asahi-to-aurora
Draft

RyanTheTide wants to merge 5 commits into
mainfrom
purge/asahi-to-aurora

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Our own drivers, paths, packages and boot properties still carry the Asahi and m1n1 names. This repository is renamed to Aurora and aura together with the other repositories in the set below.

Change

Moves the GPU driver to drivers/gpu/drm/aurora with CONFIG_DRM_AURORA*, renames the uapi header to aurora_drm.h with identical ioctl numbers and struct layouts, reads aurora,* /chosen properties, and adds one boot-time alias that copies older loaders' asahi,* properties to the new names (marked LEGACY-ASAHI(2027-02-28)). The J514s and J516s device trees also keep the old asahi,t6030-dispext switch name until 2027-02-28, so an aura built before the rename still sees it.

Testing

uapi dump (sizes, offsets, constants, ioctl numbers) identical on arm64 and x86_64. Host tests 427 suites pass after the rename fixes. The same rename on the fleet74 base builds and packages (5903 modules, 137 DTBs).

Still to run

One-shot boot on an M1 Pro together with the renamed aura and Mesa. A full build on this PR's own base.

Full details

Draft. Part of a cross-repo set that renames Asahi to Aurora and m1n1 to aura. Do not merge on its own: the aura, mesa, u-boot, installer and distribution PRs of the same set (branch purge/asahi-to-aurora in each repo) are meant to land together.

What changes

  • drivers/gpu/drm/asahi is now drivers/gpu/drm/aurora (files such as asahi_core.rs renamed to match). The module was already aurora.ko and the DRM driver name was already aurora; both stay.
  • CONFIG_DRM_ASAHI* is now CONFIG_DRM_AURORA*, and arch/arm64/configs/asahi.config is now aurora.config. Any out-of-tree config fragment that sets the old symbols has to move to the new ones with this change.
  • include/uapi/drm/asahi_drm.h is now aurora_drm.h. Every drm_asahi_*, DRM_ASAHI_* and DRM_IOCTL_ASAHI_* name becomes drm_aurora_*, DRM_AURORA_* and DRM_IOCTL_AURORA_*. Nothing else in the header changed.
  • tools/asahi, tools/asahi-m3 and the asahi-* GPU selftests are now tools/aurora, tools/aurora-m3 and aurora-*. The docs under Documentation/gpu/asahi-* and the ABI docs got the same rename.
  • The /chosen properties the kernel reads are now aurora,<name>, for example aurora,os-fw-version, aurora,show-notch and aurora,j613-25g83-dcpext. Where m1n1 appeared inside a name it becomes aura. The firmware request paths asahi/g18-*.bin become aurora/g18-*.bin.
  • Comments and docs that meant our boot loader now say aura instead of m1n1.

ABI

The uapi rename touches source only. The ioctl numbers and struct layouts are byte-identical. A generated C program printed every value from the old header and the new one: sizeof of all 39 structs, offsetof of all 260 fields, all 106 enum and #define constants, and all 14 DRM_IOCTL_* numbers. It was built for arm64 (and run under qemu-aarch64) and for x86_64, against headers from make headers_install. The old and new outputs are identical on both architectures: 419 lines, same sha256 003cf77d…8fca. Mesa carries its own copy of the header, and the matching Mesa PR renames that copy.

Transitional fallback (remove after 2027-02-28)

Boot loaders built before this rename publish the same /chosen values as asahi,<name>. drivers/soc/apple/aurora-chosen-legacy.c runs at early_initcall. It copies each asahi,* property in /chosen to its aurora,* name, unless the new name is already there. It never removes or overwrites anything. This keeps a new kernel working on a Mac whose boot loader has not been updated yet, and every reader only has to know the new name. The file carries the tag LEGACY-ASAHI(2027-02-28).

Six host tests compare the driver against fixed older commits with git show <ref>:<path>. Those commits keep the driver under drivers/gpu/drm/asahi, so the tests fall back to that path. They also rename the identifiers in the old text so it fits the current code.

Left as they are

  • asahi-kasei, the vendor prefix of Asahi Kasei Microdevices, along with its AK* codec and magnetometer drivers.
  • Copyright, licence, MODULE_AUTHOR and attribution lines, including the MIT notice in prores/m1n1-LICENSE and the m1n1 source citations that go with it.
  • External URLs, the [email protected] list, AsahiLinux/linux#607 references, .mailmap and CREDITS.
  • Personal names that happen to contain the letters (for example Masahiro).
  • The commit-history table in GAPS.md, which quotes old commit subjects with links.
  • tools/aurora-sep. It installs onto the external m1n1 / asahi-alarm package stack: the upstream m1n1 and asahi-scripts packages, update-m1n1, /etc/m1n1.conf, published m1n1-aurora-*.pkg.tar.zst assets pinned by sha256, and the asahi,* properties those shipped loaders write. Renaming it would break it on the systems it targets, so it waits until that stack moves to the new names.

Testing

  • Compile check on arm64 (LLVM=1, Rust). The config is the current fleet release config with CONFIG_DRM_AURORA*, plus aurora.config merged in, and all 182 requested settings survive olddefconfig. Built: prepare, drivers/gpu/drm/aurora/, drivers/gpu/drm/apple/, drivers/soc/apple/ (including the new legacy file) and every Apple DTB. The config stage passes. The build on this branch's own base did not finish: it was killed from outside, and the retry never got a build slot.
  • Full build on the fleet74 base 1f710d26, using the same rename script, the legacy /chosen commit and the fleet74 build recipe with aurora.config and a CONFIG_DRM_AURORA=m gate. All 162 config requests survive and all 19 distro gates pass. Built Image, 5903 modules (the GPU module is kernel/drivers/gpu/drm/aurora/aurora.ko) and 137 DTBs, and packaged them as 7.3.0-aurora-f4apurge. The source is branch purge/asahi-to-aurora-fleet74 (97ca8f5). The two host-test commits don't apply on that older base and are not needed for the image.
  • Host tests (tools/aurora/run-host-tests.py): the first run passed 412 of 427. All 15 failures came from the rename itself: six suites read fixed older commits at the new path, and two sha256 pins covered files whose names changed. The last three commits fix both. Every one of the 15 failing suites now passes on rerun (g15-retention 2/2, g17-object-fence 6/6, g17-telemetry-integration 12/12, neo-auxiliary 3/3, compute-preempt 2/2, g15-input-error 3/3, g15-zero-words 2/2, aurora-m4 1/1).
  • uapi layout check: identical, see above.

RyanTheTide and others added 4 commits November 19, 2026 22:19
Mechanical, case-preserving rename produced by
scripts/linux_rename.py (ASAHIPURGE): drivers/gpu/drm/asahi becomes
drivers/gpu/drm/aurora, include/uapi/drm/asahi_drm.h becomes aurora_drm.h
(every drm_asahi_*/DRM_ASAHI_*/DRM_IOCTL_ASAHI_* symbol renamed, ioctl
numbers and struct layouts unchanged), CONFIG_DRM_ASAHI* becomes
CONFIG_DRM_AURORA*, arch/arm64/configs/asahi.config becomes aurora.config,
tools/asahi* and the asahi-* selftests become aurora*, and the /chosen
property names the kernel reads become aurora,<name>.

Left as they are: the Asahi Kasei vendor prefix and drivers, copyright,
licence and authorship lines, external URLs, mailing lists and issue
references, personal names, commit-history rows, and tools/aurora-sep,
which drives the external m1n1/asahi-alarm package stack.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Boot loaders built before the rename publish their /chosen facts and
switches as asahi,<name> (m1n1 where aura now says aura). Copy each
such property to its aurora,<name> at early_initcall time unless the
aurora name is already there, so every reader only needs the new name.
Nothing is removed or overwritten.

Also fix four spots the mechanical rename could not see: two
-D<NAME> test defines, a \b-anchored regex in a host test, a doubled
'Aurora aura' in two docs, and a link label that names the external
upstream tree it points at.

LEGACY-ASAHI(2027-02-28): remove aurora-chosen-legacy.c after that date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sh rename-touched pins

Several host tests compare the driver with a fixed older commit (git show
<ref>:<path>). Those commits keep the driver at its old directory, so
read the file at the new path first and fall back to the old one.

The rename also changed two pinned files only in their names: the
CONFIG_DRM_AURORA_G15 cfg in g15/hw.rs and the type names in the
aurora-m4 public-uapi.rs fixture (its ABI is unchanged, see the aurora
uapi layout check). Update their sha256 pins.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Mutation controls splice code read from a pre-rename commit into today's
sources; rename its identifiers the same way so the control still compiles.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 19, 2026
…aura

The J514s and J516s device trees now set aurora,t6030-dispext. aura built
before the rename reads asahi,t6030-dispext from the same /chosen node, so a
Stage 2 that bundles this device tree with such an aura would silently skip
the external display handoff. Set both names until 2027-02-28.

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

Copy link
Copy Markdown
Contributor Author

Blockers: 4.

  1. Four of the five commits (88e29c5, c3118f8, e06dfdb, 20e1b05) have no Signed-off-by, only Co-Authored-By: Claude Opus 5.5. They fail DCO and need a human Signed-off-by with the agent trailer removed.
  2. include/uapi/drm/asahi_drm.h is mainline uapi: it was added by 12a2bf6 ("drm: Add UAPI for the Asahi driver"), which is in v6.16. Renaming it to aurora_drm.h, and renaming every drm_asahi_*/DRM_IOCTL_ASAHI_* identifier, removes the upstream header from make headers_install. Anything built against installed kernel headers breaks, and every upstream merge that touches the file will conflict. The byte-identical layout check proves the ABI did not change, but the API did. Keep the mainline header and its names. The driver can include it from drivers/gpu/drm/aurora. Only names that are ours should change.
  3. dt-checks fails with 4 new warnings, all in /chosen of t6030-j514s.dts:22-24 and t6030-j516s.dts: 'asahi,t6030-dispext', 'aurora,t6030-dispext' do not match any of the regexes, and aurora,t6030-dispext: b'N' is not of type .... aurora is not a documented vendor prefix, and nothing describes these /chosen properties. Add the schema for the loader's /chosen properties (or the prefix) in the same series.
  4. The branch conflicts with integration/aurora in 25 files, among them drivers/gpu/drm/aurora/{gem.rs,queue/mod.rs,sysfs.c}, include/uapi/drm/aurora_drm.h and tools/aurora/run-host-tests.py. For a mechanical rename, re-run the script on the current base rather than resolving the conflicts by hand.

Also: drivers/gpu/drm/aurora/g18/runtime/compute_payload.rs:42,146 and graphics_memory.rs:26-29 now request aurora/g18-*.bin with no fallback. A kernel installed before the files move makes those requests fail. Try the old asahi/ path second, with the same LEGACY-ASAHI date as the /chosen alias.

The /chosen alias in drivers/soc/apple/aurora-chosen-legacy.c is sound. It runs at early_initcall, before sysfs exists, so of_core_init() later exports the copies. It never overwrites a property. Every renamed /chosen reader is in a module or runs at probe, after the alias. The early readers in arch/ and irqchip already used aurora, names before this PR.

HW row: one-shot boots of this head on the M1 Pro (J316s) and the J616s, each with the renamed aura and with the current aura (alias path). Pass: aurora.ko loads, the GPU renders (vkcube/glmark2 run with the matching renamed Mesa), the /chosen values are visible under both names, 0 AVC, 0 failed units and no new kernel errors. Add a J514s/J516s boot with the current aura and an external display, to show the dispext handoff still works.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Closing this branch: the rename has to be regenerated on the current tree (keeping the upstream uapi header and its names) rather than rebased across 33 conflicts.

@RyanTheTide RyanTheTide reopened this Nov 22, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Reopened and kept as a draft; the comment above lists what it still needs before review.

This branch has not been deployed

No deployments
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