Repository navigation
asahi: accept the "aurora" kernel driver name - #126
Merged
Merged
Conversation
The AGX kernel driver is being renamed from "asahi" to "aurora". Mesa has to know the new name before any kernel ships with it, otherwise the GL driver, Borealis and everything on Zink lose the GPU. This accepts both names everywhere Mesa matches the kernel driver, so Mesa and the kernel can update in either order. - agx_device and hk use agx_is_native_drm_driver(), which takes either name. The 0.2 version rule for render_rsrc_spec_hi belongs to the old numbering and now applies to "asahi" only. The field has no users. - kmsro pairs the display-only "apple" device with an "aurora" or "asahi" render node, and the pipe-loader platform list carries both. - New "aurora" pipe-loader descriptor for the AGX screen, the same alias pattern as msm and kgsl, and dril builds aurora_dri.so beside asahi_dri.so. - The gallium driver's driconf name is now "aurora". A new optional driverNameAlias in driConfigFileParseParams lets it keep matching <device driver="asahi">, so the drirc files on our systems and option names like asahi_no_fp16 keep working. Covered by a new xmlconfig test. - The v3d simulator knows the new name too. MESA_LOADER_DRIVER_OVERRIDE and dri_driver accept "aurora" and "asahi". Nothing else changes for an "asahi" kernel. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 AGX kernel driver is being renamed from "asahi" to "aurora" (DRM name, module and debugfs). This makes Mesa accept both names everywhere it matches the kernel driver, so it has to land and reach the distro pins before the kernel change does. With an "aurora" kernel and today's Mesa the desktop falls back to llvmpipe and Borealis finds no device.
What changes:
agx_deviceandhkuse a newagx_is_native_drm_driver()that takes either name. The oldrender_rsrc_spec_hiversion rule (0.2 and up) is upstream's numbering, so it now applies to "asahi" only. The field has no users today.aurora_dri.sobesideasahi_dri.so.driverNameAliasindriConfigFileParseParamskeeps<device driver="asahi">matching, so the drirc files on our systems (00-asahi-defaults.conf, the browser renderer override) and option names likeasahi_no_fp16keep working. There is a new xmlconfig test for it.MESA_LOADER_DRIVER_OVERRIDEanddri_drivertake "aurora" or "asahi". Nothing changes for an "asahi" kernel. The Vulkan driver stays Borealis.Testing (buildbox, x86_64 F45 SDK container, gallium asahi/zink/softpipe + Vulkan asahi + dril + drm-shim):
meson test --suite asahi --suite util: 127/127 pass.aurora_dri.soandasahi_dri.so.Hardware validation runs once this is in a fleet Mesa build. The plan covers old kernel + new Mesa, then new kernel + new Mesa, on all four machines.
Kernel side: aurora-silicon/linux#683
🤖 Generated with Claude Code