Repository navigation
arm64: dts: apple: t8140: SoC fabric power states (true parents) - #1298
Merged
Merged
Conversation
The J700 ADT power tree puts most SoC blocks behind fabric power states: AFIMCCNI0 and PIOGW feed AFINS0, which feeds AFISOCNI0-2. GFX hangs off AFIMCCNI0 and PIOGW; JPG, MSR, VENC0_SYS, PRORES and SEP off AFISOCNI0; APCIE_GP, ISP_SYS, AVD_SYS and ANS off AFISOCNI1; DISP_SYS, DISPEXT0_SYS, ANE_SYS and ATC0_COMMON off AFISOCNI2. None of the fabric states were described. Describe them, always-on as T6041 does with its fab*_soc states, and firmware-owned like disp_cpu: on a running J700 all six read active (AFISOCNI0 in automatic mode with its target on), and letting the pwrstate driver set auto-enable and clear the flag bits on them latches an AP event-log error (seen on a J700 trial boot). Firmware-owned states are never read or written. The loader validates each DCP power chain before it hands the display over. It must end that walk at these always-on states, which needs aura "kboot: t8140: end the DCP power chain at always-on fabric". Older loaders refuse the handoff with this DT, so ship it only with a Stage 2 that has the fix. Map the six records, and the 61 other J700 power states we already describe, in the ADT coverage manifest. They are real power-state registers, not virtual votes. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
RyanTheTide
marked this pull request as draft
November 9, 2026 07:47
RyanTheTide
marked this pull request as ready for review
November 12, 2026 06:15
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.
Every T8140 power state now has the parents the J700 ADT gives it. The SIO subtree is the exception; #1280 covers it. The watchdog IRQ, the SMC I2C masters and the ISP chain came in with #1299, so this PR's own change is the SoC fabric.
ps_afimccni0,piogw,afins0andafisocni0..2are always on and owned by firmware. They are now the true parents of gfx, jpg, msr, venc0_sys, prores, sep, apcie_gp, isp_sys, avd_sys, ans, disp_sys, dispext0_sys, ane_sys and atc0_common. The coverage manifest maps these 6 states plus 61 more real power states that it used to waive as "virtual votes" (mapped 417 -> 423, waived 171 -> 165, missing 0).Requires aura with #125 (in aura 1.0.0b10 builds from main 2296392f onward and in 1.0.0b11). aura's T8140 display preflight used to accept only DCP power chains of at most 3 single-parent states. With the true
disp_sys -> afisocni2parent, an older Stage 2 refuses the display handoff and falls back after the 178 s trial watchdog. The distributions pin aura 1.0.0b11 and their kernels require it.Testing on a MacBook Neo (J700), 11-12
The test was a DTB-only aura-try trial and nothing was committed. The production Stage 2 (aura 1.0.0b10-gbd9f3e82, which has #125) was used with only the j700 DTB swapped. That DTB was the fleet64 j700 DTB (integration 1de767b) plus this commit, 06e51ffe. The kernel was fleet64. Rows were compared against a production boot of the same kernel.
afins0is the parent ofafisocni0/1/2.afisocni0parents jpg, msr, prores, venc0_sys and sep.afisocni1parents apcie_gp, isp_sys, avd_sys and ans.afisocni2parents ane_sys, disp_sys, dispext0_sys and atc0_common.This changes only the t8140 files and the j700 manifest. Other Macs' DTBs are unchanged.
🤖 Generated with Claude Code