Repository navigation
Conversation
On an M3 MacBook Air with the G15 14.8.3 GPU firmware, the GPU start stalls at the first device control: "device control 0x13 acknowledgement timed out" (-110). It did so in every boot reported in omacom#26. Two testers there, with a 10-core and an 8-core J613, report that the start succeeds when the 20-word block at HwDataA +0x418c..+0x41db is set to the values below, with nothing else changed; on the 10-core one the stall returns without it. The values were measured from the InitData macOS 26 writes on a J613 (10-core), read under the m1n1 hypervisor. They were identical across six boots and are not present in the device tree. As little-endian u32: 1, 500, 5, 12500 x5, 3000 x3, 12500 x8, 1 Their meaning is not known, and they have been measured on that one machine only, so per-machine invariance is not established. The range is covered by the G13-era core_leak_coef[4..8], sram_leak_coef and aux_leak_coef fields, which the G15 builder leaves at zero; the measured words are small integers rather than floats. Compile-time asserts tie the block to exactly that range. Write the block by default when the runtime backend builds the InitData on T8122 with the 14.8.3 firmware. Add asahi.t8122_hwdata_418c (0 or 1, default 1; readable in sysfs) so that a tester can boot with 0 for an A/B comparison; any other value is refused. One line in the kernel log says which was used. Other SoCs and the 26.x (G16) path are not affected. J615 on the 14.8.3 firmware has not been tested. Add host tests (tools/asahi/m3-runtime-tests.rs) that check the words, that they land at exactly +0x418c..+0x41db with every other byte unchanged, and the parameter parsing. Assisted-by: LLM Signed-off-by: Satya Benson <[email protected]>
|
Thanks @satchlj, this is merged through #112.
Before a release says this is fixed, could one of the #26 testers boot |
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.
On an M3 MacBook Air (T8122) with the 14.8.3 GPU firmware, the GPU start stalls at the first device control:
followed by a
device-control-failedverdict (-110). Testers in #26 report that it starts when the 20-wordblock at HwDataA +0x418c..+0x41db is set, with nothing else changed, and that the stall returns without it. This PR
writes that block by default on that one profile, and adds a parameter to turn it off for an A/B test.
What it writes
20 little-endian u32 words at HwDataA +0x418c:
They were measured from the InitData macOS 26 writes on a J613 (10-core), read under the m1n1 hypervisor. They were
identical across six boots and are not present in the device tree.
Where and when
m3_adt_config::build_images,gated on the T8122 table, the T8122 firmware layout and G15). Other SoCs and the 26.x (G16) path are unchanged.
core_leak_coef[4..8],sram_leak_coefandaux_leak_coeffields, which theG15 builder leaves at zero. Compile-time asserts pin the block to exactly that range, so it overwrites nothing the
builder fills.
asahi.t8122_hwdata_418c=0|1, default 1. 0 leaves the range at zero (the old behaviour). Any other value isrefused by the parameter parser and the default stays. It is readable at
/sys/module/asahi/parameters/t8122_hwdata_418c.How to test
Boot this kernel the way you boot current14 now (with
asahi.t8122_start=1). Look for:and no
device control 0x13 acknowledgement timed outline. For the A/B, boot once more withasahi.t8122_hwdata_418c=0: the first line then reads... left 0 (asahi.t8122_hwdata_418c=0), and on the reportedmachines the 0x13 timeout should come back.
Reported results (#26)
same-build A/B yet).
Both results come from the testers' own local builds, not from this branch, which has not been booted yet.
What is not known
integers, not floats, so those names probably do not describe this range on G15.
Checks
Build only (arm64, LLVM=1, rustc 1.93.1,
CONFIG_DRM_ASAHI=y):make W=1 drivers/gpu/drm/asahi/: builds; the same 26 warnings as the base, none new.make CLIPPY=1 W=1 drivers/gpu/drm/asahi/: one new warning, themissing_safety_docthatm3_param!alreadyemits for each of its 23 existing uses.
rustc --edition=2021 --test tools/asahi/m3-runtime-tests.rs: 37 passed, 4 of them new (the words,their exact placement with every other byte unchanged, a short buffer, parameter parsing).
scripts/checkpatch.pl --strict: no code findings; it flags the British spelling "acknowledgement" (the driver'sown log text), the new file without a MAINTAINERS entry, and the
Assisted-bytrailer format.🤖 Generated with Claude Code