Repository navigation
Rename Asahi to Aurora and m1n1 to aura across the tree - #2335
RyanTheTide wants to merge 5 commits into
Conversation
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]>
…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]>
|
Blockers: 4.
Also: drivers/gpu/drm/aurora/g18/runtime/compute_payload.rs:42,146 and graphics_memory.rs:26-29 now request The /chosen alias in drivers/soc/apple/aurora-chosen-legacy.c is sound. It runs at early_initcall, before sysfs exists, so 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: Assisted-by: LLM (Claude:Opus 5.5) |
|
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. |
|
Reopened and kept as a draft; the comment above lists what it still needs before review. |
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/aurorawithCONFIG_DRM_AURORA*, renames the uapi header toaurora_drm.hwith identical ioctl numbers and struct layouts, readsaurora,*/chosenproperties, and adds one boot-time alias that copies older loaders'asahi,*properties to the new names (markedLEGACY-ASAHI(2027-02-28)). The J514s and J516s device trees also keep the oldasahi,t6030-dispextswitch 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-aurorain each repo) are meant to land together.What changes
drivers/gpu/drm/asahiis nowdrivers/gpu/drm/aurora(files such asasahi_core.rsrenamed to match). The module was alreadyaurora.koand the DRM driver name was alreadyaurora; both stay.CONFIG_DRM_ASAHI*is nowCONFIG_DRM_AURORA*, andarch/arm64/configs/asahi.configis nowaurora.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.his nowaurora_drm.h. Everydrm_asahi_*,DRM_ASAHI_*andDRM_IOCTL_ASAHI_*name becomesdrm_aurora_*,DRM_AURORA_*andDRM_IOCTL_AURORA_*. Nothing else in the header changed.tools/asahi,tools/asahi-m3and theasahi-*GPU selftests are nowtools/aurora,tools/aurora-m3andaurora-*. The docs underDocumentation/gpu/asahi-*and the ABI docs got the same rename./chosenproperties the kernel reads are nowaurora,<name>, for exampleaurora,os-fw-version,aurora,show-notchandaurora,j613-25g83-dcpext. Where m1n1 appeared inside a name it becomes aura. The firmware request pathsasahi/g18-*.binbecomeaurora/g18-*.bin.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:
sizeofof all 39 structs,offsetofof all 260 fields, all 106 enum and#defineconstants, and all 14DRM_IOCTL_*numbers. It was built for arm64 (and run under qemu-aarch64) and for x86_64, against headers frommake headers_install. The old and new outputs are identical on both architectures: 419 lines, same sha256003cf77d…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
/chosenvalues asasahi,<name>.drivers/soc/apple/aurora-chosen-legacy.cruns atearly_initcall. It copies eachasahi,*property in/chosento itsaurora,*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 tagLEGACY-ASAHI(2027-02-28).Six host tests compare the driver against fixed older commits with
git show <ref>:<path>. Those commits keep the driver underdrivers/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.MODULE_AUTHORand attribution lines, including the MIT notice inprores/m1n1-LICENSEand the m1n1 source citations that go with it.[email protected]list,AsahiLinux/linux#607references,.mailmapandCREDITS.GAPS.md, which quotes old commit subjects with links.tools/aurora-sep. It installs onto the external m1n1 / asahi-alarm package stack: the upstreamm1n1andasahi-scriptspackages,update-m1n1,/etc/m1n1.conf, publishedm1n1-aurora-*.pkg.tar.zstassets pinned by sha256, and theasahi,*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
CONFIG_DRM_AURORA*, plusaurora.configmerged in, and all 182 requested settings surviveolddefconfig. 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.1f710d26, using the same rename script, the legacy/chosencommit and the fleet74 build recipe withaurora.configand aCONFIG_DRM_AURORA=mgate. All 162 config requests survive and all 19 distro gates pass. BuiltImage, 5903 modules (the GPU module iskernel/drivers/gpu/drm/aurora/aurora.ko) and 137 DTBs, and packaged them as7.3.0-aurora-f4apurge. The source is branchpurge/asahi-to-aurora-fleet74(97ca8f5). The two host-test commits don't apply on that older base and are not needed for the image.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).