Repository navigation
Conversation
The PMP firmware keeps running DCS and fabric DVFS while the system is up. The J704 ps_pmp domain is not marked always-on, so genpd gates it at s2idle and the PMP takes an SError in its own firmware. The J813 got the same fix in ceaab64 ("arm64: dts: apple: t8142-j813: Keep the PMP power domain on"); T8132 and T8140 mark ps_pmp always-on too. Tested on J704 with the same property on an earlier tree: the first s2idle no longer crashes the PMP, and the machine wakes with the display, Wi-Fi and Bluetooth back. Signed-off-by: Dmitriy <noc@pimk.in> Assisted-by: LLM
The J704's MTP firmware offers the trackpad's haptic engine as interface 4 "actuator", as on the M5 MacBook Airs: Initializing comm interface <4- "actuator"> Without a node for it, dockchannel-hid ignores the interface and the click stays firmware-driven, with no Force Touch stage. Describe it as d2db3f8 ("arm64: dts: apple: t8142-j813-j815: Add the trackpad actuator") does for the Airs. Signed-off-by: Dmitriy <noc@pimk.in> Assisted-by: LLM
The J704 ADT's mcc,t8142 node matches the J815's: one AMCC (amcc-count 1, amcc-reg-idx 1), amcc-plane-enable-mask 0xf, reg[1] at 0x220000000 spanning the four planes 0x40000 apart. Enable the t8142.dtsi node from 167e403 ("arm64: dts: apple: t8142: Add the MCC (system level cache) node"). The boot loader turns allocation on; the driver checks it and flushes the cache on shutdown. Signed-off-by: Dmitriy <noc@pimk.in> Assisted-by: LLM
|
Blockers: 2.
HW row: J704, integration/aurora head + these 3 commits on the default command line: the MCC driver binds and reports the loader-enabled ways (or refuses cleanly), dockchannel-hid brings up interface 4 "actuator" and a Force Touch press reports the second stage, 3 s2idle cycles with no PMP SError and display/Wi-Fi/BT back, a clean shutdown (MCC flush path); 0 AVC, 0 failed units, no new kernel errors versus the same head without the series. Assisted-by: LLM (Claude:Opus 5.5) |
|
The three changes still apply cleanly to the current integration/aurora tip 110861f, and none of them is on the tip yet: ps_pmp has no apple,always-on, there's no actuator node, and &mcc is not enabled on the J704. The DT matches what the J813/J815 already carry. @dmitzsaz what's needed now is a J704 run of this head (the tip plus these 3 commits): the MCC binding or refusing cleanly, interface 4 actuator with a Force Touch second stage, 3 s2idle cycles without a PMP SError, and a clean shutdown. Build check of 110861f plus this change (arm64, LLVM=1, Image, dtbs and every directory it touches, Fedora config plus asahi.config): builds, no warnings in the files it touches; CHECK_DTBS over every Apple DTB: no new warnings against the tip. |
|
@dmitzsaz checking open drafts today. To come out of draft, this still needs:
If it's no longer needed, say so here and we'll close it. Otherwise it stays open as a draft until these are done. |
|
J704 run of the three changes in this PR (MacBook Pro 14" M5, T8142, board id 0x22), on a second J704. Setup — not the tip: the three changes were applied with
MCC: binds. Actuator (interface 4): binds, and the Force Touch second stage works. Without the node, the trackpad bound to s2idle with the PMP always on: 6 of 6 passed, with no PMP SError.
Shutdown: clean, twice. Each Not covered: the integration/aurora tip with this head, and the 27.2 stub. I can rerun on 27.2 after reinstalling. Assisted-by: LLM (Anthropic:Claude Opus 5.5) |
|
Tested on MacBook Pro (14-inch, M5, 24 GB,
J704: PASS. |
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>
Keep the J704 PMP power domain always on, matching J813. Without apple,always-on on ps_pmp, waking from deep suspend-to-RAM hangs on J704; including it here ensures this PR is self-contained without depending on draft PR aurora-silicon#1847. Signed-off-by: WJW <rjianwei@gmail.com>
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>
Three DT-only follow-ups to #1231 that bring the J704 in line with what the M5 Airs got this week. The drivers are already in integration/aurora; each change mirrors the Air commit for the same die.
ps_pmpat s2idle under the running PMP firmware. The J704 hit exactly this on an earlier tree: the PMP took an SError on the first s2idle.Initializing comm interface <4- "actuator">); without the node the click stays firmware-driven and there is no Force Touch stage.mcc,t8142matches the J815's: one AMCC,amcc-plane-enable-mask0xf, reg[1] at 0x220000000 with four planes 0x40000 apart. If the loader has not enabled the ways, the driver refuses to bind and changes nothing.Tested on: the PMP change on J704 with the same property on an earlier tree (one clean s2idle and wake, display, Wi-Fi and Bluetooth back). The actuator and the MCC are not tested on the J704 yet; the PR stays a draft until they are.
scripts/dtc/apple-dt-check.shagainst a34d26c: 137 DTBs, no new warnings and none removed. The J704 keeps only thedisp0_piodmaalias warning it already had.Prepared with Claude Opus 5.5.