Repository navigation
drm/asahi: g15: admit the T6031 GPU by SoC, not only on the J516C - #3752
Merged
Merged
Conversation
The T6031 configuration's machine check named apple,j516c, so every other T6031 board (the 14-inch J514C) kept its GPU off even with the native display handed over, the firmware identity accepted and the device tree filled by the boot loader. None of the checks that make a T6031 GPU start safe is per board. The first start already waits for the T6031 native display, which the display gate enables only where the boot loader marked the handoff (#3729 made that board-independent); the loaded firmware TEXT, the hardware identity and the core mask must still match; the GPU regions and every per-machine value of the hardware record (operating points, voltages, gains, power zones, sensor rows) come from the device tree the boot loader fills from this machine's ADT. The record words neither carries (maximum power, the relative-power table and the MTR masks) stay the J516C reference machine's on every board, as the T6030 templates' words already are on the J514S. That is how the J514C ran in #2148's earlier lab boots (short native GL/Vulkan and a normal login, no power or thermal qualification). Check the SoC compatible instead, as T6030 does, and update the host admission model to match. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
There was a problem hiding this comment.
Verdict: MERGE at 14a2b89
Checked: g15/hw/t6031.rs and the host test model. machine goes from apple,j516c to apple,t6031, as T6030 does. The display-first wait (now gated by the boot loader's handoff, #3729), the firmware TEXT digest, the hardware identity, the core mask and the DT GPU region checks are all unchanged, and the J516C path is identical.
Follow-ups:
- On a J514C (14-inch) the GPU now runs with the J516C reference record words for maximum power, relative powers and MTR masks (your module comment). Thermals differ between the 14- and 16-inch chassis, so the J514C owner's row should include a sustained GPU load with temperatures and power, not only a bring-up.
Contributor
Author
|
Merging at 14a2b89 under the 12-01 bar: one non-author approval + local proof (touched-object W=1 build / KUnit / host tests in the body) while PR CI is queued. Boards without a row stay in Not yet; a regression gets a same-day revert. |
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.
What: The G15 driver's T6031 (M3 Max) configuration checked the machine compatible
apple,j516c, so the GPU stayed off on every other T6031 board (the 14-inch J514C), even with the native display handed over and the firmware identity accepted. This checks the SoC instead (apple,t6031), as the T6030 configuration already does. Every other admission check stays: the first start still waits for the T6031 native display (which #3729 made depend on the boot loader's handoff, not the board), and the firmware TEXT digest, hardware identity, core mask and device-tree GPU regions must still match.Tested:
make W=1(arm64, gcc, Rust 1.96) ofdrivers/gpu/drm/asahi/: builds at main 3e5df4e and at 14a2b89, with the same 21 warnings (identical lines).apple,t6031), g15-maintained-handoff 2/2, g15-probe-init 2/2, and the asahi-g15 selftest (run.py) 81 passed, 2 ignored (the off-tree J516C fixture tests).Risk: Two-way door. It only affects T6031 boards. On the J516C nothing changes. On a J514C the G15 driver now goes on to its firmware identity check once the native display is up. Main pins only the two J516C stub TEXT digests, so a J514C whose loaded firmware is a different build is still refused there, with a log line, and its firmware is left alone. Not affected: T6030, T6034 (no
apple,t6031compatible) and the fleet Macs (M1 Pro, M2, M3 Air, M4 Air, M4 Pro, A18 Pro).Not yet:
G15:/M3:lines from dmesg (identity accepted or refused,admitted) and whetherglxinfo -Bshows the M3 Max GPU?Detail
admit()and J514C firmware pins. After this PR the board branch isn't needed, and its firmware pins still apply.board::record::J516C, four groups of words with no DT or ADT source. T6030 already applies its templates' reference machine's words to the J514S the same way, and the J514C ran with these words in drm/asahi, drm/apple: M3 Max: J514C, J514M, J516M and J516C graphics and native display #2148. If a J514C owner measures different values, the place to add them is a per-boardReferencechosen by the device tree. That is a follow-up, not a reason to keep the GPU off.drivers/gpu/drm/asahi/g15/hw/t6031.rs(machine and comments),tools/asahi/g15-display-order-tests.py(model string). +15/-5.