Repository navigation
Conversation
Kernels since the 7.3 line build the GPU driver as aurora.ko, and kmod hands a module only the command line's <module>.<name> keys. The asahi.t8122_start=0 that the boot profile, the persistent route and the retained GPU-off entries write to keep the GPU off does nothing there, and air-gpu-oneshot.sh's asahi.* knobs are ignored; on a MacBook Air M3 the log still read "cap 8 lowered to 2" with asahi.t8122_pstate_cap=5 on the command line, and "lowered to 5" with aurora.t8122_pstate_cap=5. The kernels of the earlier releases build asahi.ko and read asahi.*. Write each switch under both names: each module ignores the other's key. Strip both forms before writing, so an existing asahi.* word is replaced and not doubled. air-gpu-collect.sh counts a boot as armed with either form and matches the aurora driver's refusal and probe lines; air-gpu-oneshot.sh refuses a normal entry that sets either form and looks for the bare parameter name in the kernel image, which both kernels contain. The M3 Max kit's T6031 keys are left alone.
[Medium impact] The changes affect M3 boot configuration and one-shot GPU experiments. Repair existing saved Limine fallbacks before merging so GPU-off recovery also works after an update. Findings
SummaryAdds
Reviews (1) · Last reviewed commit: "aurora-sep: set the M3 GPU switches as a..." · Reviewed by Greptile |
| words = [w for w in line.split() if not re.match(r'(?:asahi|aurora)\.t8122[_-]start(?:=|$)', w) | ||
| and not w.startswith('mesa_m3=') and not w.startswith('air_gpu.oneshot=')] | ||
| return ' '.join(words + ['asahi.t8122_start=' + ('1' if armed else '0')] + ([] if armed else ['mesa_m3=off'])) | ||
| # aurora.ko reads aurora.*, the older asahi.ko asahi.*; each module ignores the other's key. | ||
| value = '1' if armed else '0' | ||
| return ' '.join(words + ['asahi.t8122_start=' + value, 'aurora.t8122_start=' + value] + ([] if armed else ['mesa_m3=off'])) |
There was a problem hiding this comment.
The new GPU-off switches only reach newly saved fallbacks. If an older installer already retained a 7.3 kernel, retain reloads m3-known-entry.json and preserves its old asahi.t8122_start=0 command line. That kernel ignores the old key, so “Aurora previous (GPU off)” still starts the GPU after this update. Users cannot rely on that entry to recover from a GPU startup failure.
After checking ownership, update the saved command line and its matching boot entry together. Apply the same fix to the embedded helper in install-aurora-sep.sh.
|
Superseded: the change goes upstream as aurora-silicon/linux#3522 and is carried for 7.3 in #534. |
Summary
Since the 7.3 line, the GPU driver is
aurora.ko, and kmod passes a module only its ownaurora.<name>keys. So theasahi.t8122_start=0that aurora-sep writes to keep the GPU off is ignored there, and so areair-gpu-oneshot.sh'sasahi.*knobs. The earlier releases' kernels buildasahi.koand still readasahi.*. This PR writes both keys, since each module ignores the other's.The pinned sha256 of the two air-gpu scripts in
install-aurora-sep.shis updated. The M3 Max kit's T6031 keys are unchanged.Related: aurora-silicon/linux#3513 renames the driver's own docs and messages to
aurora.*, carried for 7.3 in #532.Evidence
linux-aurora 7.3.0.aurora1-1), a lab one-shot boot withasahi.t8122_pstate_cap=5loggedperformance cap 8 lowered to 2 (asahi.t8122_pstate_cap).After: the same kernel with
aurora.t8122_pstate_cap=5loggedlowered to 5, and the GPU reached state 5.python3 -m unittestfromtools/aurora-sep/tests:integration/aurora: 314 tests in all.aurora.*words being replaced rather than doubled, a normal entry withaurora.t8122_start=1being refused, andaurora.t8122_start=1counting as armed.tools/(drivers/iommu/apple-dart.c,drivers/soc/apple/diag_shim.c), absent from the sparse checkout used, and they fail the same way onintegration/aurora.Merge Danger
Door: two-way
Blast Radius: M3 boot entries
M3 Airs that run the installer, the boot profile or the one-shot gain the
aurora.*words next to theasahi.*ones. On kernels that buildaurora.ko, the GPU-off entries now really keep the GPU off, and the one-shot's knobs now take effect,t8122_pstate_capamong them.