Repository navigation
arm64: dts: apple: t8142-j704: Enable M5 GPU - #3782
Conversation
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
Include the shared T8142 GPU description (t8142-j813-gpu.dtsi) on J704 (MacBook Pro 14-inch, M5), add the 14th OPP slot (opp13) to match J704's 14-state ADT table filled by Aura Stage 2, and wire the fw-text reserved-memory region for firmware identification just like t8142-j813. Tested on MacBook Pro (14-inch, M5, 24 GB, J704) running macOS 27.2 stub with Aura Stage 2 (1.0.0b17-g378497cf) and ALARM 7.3.0-1-46-ARCH: - Aura Stage 2 populates all 14 GPU OPPs (opp00 0 MHz .. opp13 1620 MHz) - aurora 582600000.gpu probes cleanly on 26B123 G17G firmware - /dev/dri/renderD128 initializes with 0 GPU faults or recoveries - GNOME Shell hardware acceleration works smoothly Signed-off-by: WJW <rjianwei@gmail.com>
52e9411 to
4b41a7b
Compare
Wire up the shared T8142 Secure Enclave (t8142-j813-sep.dtsi) and suspend-to-RAM (t8142-j813-j815-sleep.dtsi) descriptions on J704 (MacBook Pro 14-inch, M5): - Add cluster_pwrgate, dcp_power, and DART ps-wr-dis properties for dcp, dcpext0 (USB-C), and dcpext1 (HDMI). - List all three display coprocessors in &sleep. - Enable apple,sleep-ssps and apple,sleep-ssps-rules on all three USB-C PD controllers (hpm0, hpm1, hpm3). Tested on MacBook Pro (14-inch, M5, 24 GB, J704) running macOS 27.2 stub with Aura Stage 2 (1.0.0b17-g378497cf) alongside aurora-silicon#3782 and aurora-silicon#1847: - apple_sep 30a600000.sep ready with 12 endpoints and hwrng registered. - All 3 USB-C PD controllers enter S3 cleanly in 10-11 ms. - 10 coprocessors stop cleanly; real deep sleep (boot object resumes 0 -> 1) stays asleep until built-in keyboard wake (MTP.DOCK.CHANNELS.AP0.IRQ). - Radio PCIe link retrains cleanly, M5 GPU restarts cleanly, and desktop/Wi-Fi resume with 0 errors. Signed-off-by: WJW <rjianwei@gmail.com>
DjDeveloperr
left a comment
There was a problem hiding this comment.
Looks right: the same GPU description as the J813, J704's 14th OPP for the loader to fill, and the 27.2 fw-text region wired the way the J813 does it. J704 only, with your row at this head. I'll merge it once the DT checks I started finish.
|
#3823 (J704 Touch ID) just landed and also appends to the end of |
# Conflicts: # arch/arm64/boot/dts/apple/t8142-j704.dts
satchlj
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge
Blockers:
- No CI check has run on merged head
f4f56eaa61cc:dt-checksandhost-testswere bothSKIPPED(fork PR). Rundt-checksatf4f56eaa61cc(or post a localdtbs_check/ build receipt) before merging. pr-readinessstill flagsHardware row at headmissing forf4f56eaa61cc(confirming the4b41a7b9J704 row carries over on the context-only merge, or addinghw-row-ok, closes this).
Checked:
- Audited
arch/arm64/boot/dts/apple/t8142-j704.dtsatf4f56eaa61ccaf1f622b0124e87f32dfc7d6e12aagainst prior approved commit4b41a7b9a0: the merge withmaincleanly preserves both#3823Touch ID pin ranges (&pinctrl_ap/&pinctrl_nub) and the exact J704 GPU additions (#include "t8142-j813-gpu.dtsi",/reserved-memory/fw-text,&gpu_oppopp13, and&gpumemory-region/memory-region-names) with zero unintended diff. - Scoped strictly to
t8142-j704.dts; PR text (Tested:/Risk:) is clean.
Evidence
- Head audited:
f4f56eaa61ccaf1f622b0124e87f32dfc7d6e12a(MERGEABLE, basemain). - Interdiff
4b41a7b9a0vsf4f56eaa61ccagainstmain: identical GPU DT hunk, moved cleanly below#3823Touch ID nodes. - CI:
readinessSUCCESS;dt-checksandhost-testsSKIPPED.
|
Local DTB build receipt at
@satchlj @DjDeveloperr Could you trigger |
In dcp_s2r_restart_done(), dcp_fabric_hdmi_reinit() was gated on dcp->external_native (apple,t6030-dcpext). On fixed-HDMI external pipelines that are not external_native (such as T8142 J704 dcpext1 driving atcphy2 and dpxbar2), deep sleep drops the PHY common power domain and crossbar state behind genpd's back, causing atcphy_resume_noirq() to mark pd_was_off so the next mux update restores the PHY. Because dcp_s2r_restart_done() only re-asserted the converter power GPIOs without calling dcp_fabric_hdmi_reinit(), atcphy2 and dpxbar2 stayed unconfigured after deep sleep and dcp_fixed_hdmi_reconnect() timed out with firmware link fault 22/24 (-110). Allow dcp_fixed_hdmi_reinit_locked() whenever dcp->fixed_phy and dcp->hdmi_hpd are present, and call dcp_fabric_hdmi_reinit() from dcp_s2r_restart_done() for any fixed-PHY HDMI pipeline. Leave the non-S2R dcp_resume() caller gated on dcp->external_native so s2idle behavior on other platforms is unchanged. Tested on MacBook Pro (14-inch, M5, 24 GB, apple,j704) running macOS 27.2 stub with #1847 + #3782 + #3791 + #3823: - Before: HDMI (3aae00000.dcp, 3840x2160@60) worked on cold boot, but failed after deep sleep with DPTXPort link fault 22/24 and 'HDMI DPTX connect failed: -110'. - After: 'HDMI: setting up the output again (after deep sleep)' runs on wake; 3aae00000.dcp reconnects immediately with 0 link faults and restores 3840x2160@60 alongside eDP-1. Signed-off-by: WJW <rjianwei@gmail.com>
DjDeveloperr
left a comment
There was a problem hiding this comment.
Approving f4f56eaa61cc. This covers the DT check from the earlier review.
- Local
CHECK_DTBS=ybuild ofapple/t8142-j704.dtbat this head (arm64, LLVM=1, dtschema): it builds. The only schema message isaliases: 'disp0_piodma', which comes fromt8142-j704-display.dtsi. This PR doesn't touch that file, and the same alias is in the other Apple DTs. - The PR's diff against main at this head is line for line the hunk of
4b41a7b9a056, so the merge of main only moved context around #3823's Touch ID nodes. The J704 row at4b41a7b9therefore still covers this head, and the combined GPU + Touch ID DTB was also booted on J704. - It's J704-only DT, so it needs no second-generation row.
t8142-j704.dts: aurora-silicon#3782 appended the J704 GPU nodes (fw-text, opp13, gpu memory regions) where this branch appends the SEP and sleep nodes. Keep both blocks. Signed-off-by: DjDeveloperr <hey@djdev.me>
What: Enable the M5 (T8142 / G17G) GPU in
t8142-j704.dts(MacBook Pro 14-inch, M5) by includingt8142-j813-gpu.dtsi, addingopp13for J704's 14 GPU perf states, and wiring/reserved-memory/fw-text.Tested: J704 MacBook Pro 14-inch M5 at
4b41a7b9(clean rebase of52e94113onto latestmain, zero patch diff): PASS — all 14 GPU OPPs (opp000 MHz..opp131620 MHz @ 1.035 V) populated by Aura Stage 2,aurora 582600000.gpuprobes cleanly on27.2 (26B123), G17G,/dev/dri/renderD128active with GNOME Shell and Hyprland hardware acceleration, 0 GPU faults,checkpatch.pl0 errors/warnings.Risk: two-way · M5 J704 (T8142) only; zero impact on other Macs.
Not yet: Nothing for J704 27.2 stub; other M5 boards are unaffected.
Details
t8142-j813-gpu.dtsiGPU description int8142-j704.dts.opp13to&gpu_oppso the OPP table has 14 entries matching J704's 14 GPU perf states (filled dynamically by Aura Stage 2, whereas J813 has 13)./reserved-memory/fw-textand wirefw-textinto&gpumemory-region/memory-region-names(matchingt8142-j813.dts) for firmware identification.Evidence
Tested on MacBook Pro (14-inch, M5, 24 GB,
apple,j704) running macOS 27.2 stub, Aura Stage 2 (1.0.0b17-g378497cf), and Arch Linux ARM (7.3.0-1-46-ARCHand7.3.0-j704-s2r+):opp000 MHz throughopp131620 MHz @ 1.035 V).aurora 582600000.gpuprobes cleanly on27.2 (26B123), G17Gfirmware (M5 secondary initdata acknowledged,M5 primary initdata acknowledged,M5 firmware opening records retired,Initialized aurora 1.0.0 for 582600000.gpu on minor 1)./dev/dri/renderD128is created and used by GNOME Shell (CPU usage dropped from ~54%llvmpipeto ~1.7%) and Hyprland (OpenGL ES 3.2 Mesa 26.3.0-devel,Apple M5 (G17G C0)), with 0 GPU faults or recoveries.aurora-stage2-commitsucceeds cleanly.scripts/checkpatch.pl: 0 errors, 0 warnings.