Skip to content

arm64: dts: apple: t8142-j704: Enable M5 GPU - #3782

Merged
DjDeveloperr merged 2 commits into
aurora-silicon:mainfrom
rjianwei:feat/j704-gpu-dts
Dec 2, 2026
Merged

DjDeveloperr merged 2 commits into
aurora-silicon:mainfrom
rjianwei:feat/j704-gpu-dts

Conversation

@rjianwei

@rjianwei rjianwei commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

What: Enable the M5 (T8142 / G17G) GPU in t8142-j704.dts (MacBook Pro 14-inch, M5) by including t8142-j813-gpu.dtsi, adding opp13 for J704's 14 GPU perf states, and wiring /reserved-memory/fw-text.
Tested: J704 MacBook Pro 14-inch M5 at 4b41a7b9 (clean rebase of 52e94113 onto latest main, zero patch diff): PASS — all 14 GPU OPPs (opp00 0 MHz..opp13 1620 MHz @ 1.035 V) populated by Aura Stage 2, aurora 582600000.gpu probes cleanly on 27.2 (26B123), G17G, /dev/dri/renderD128 active with GNOME Shell and Hyprland hardware acceleration, 0 GPU faults, checkpatch.pl 0 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
  • Include the shared t8142-j813-gpu.dtsi GPU description in t8142-j704.dts.
  • Add opp13 to &gpu_opp so the OPP table has 14 entries matching J704's 14 GPU perf states (filled dynamically by Aura Stage 2, whereas J813 has 13).
  • Add /reserved-memory/fw-text and wire fw-text into &gpu memory-region/memory-region-names (matching t8142-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-ARCH and 7.3.0-j704-s2r+):

  • Aura Stage 2 populates all 14 GPU OPPs (opp00 0 MHz through opp13 1620 MHz @ 1.035 V).
  • aurora 582600000.gpu probes cleanly on 27.2 (26B123), G17G firmware (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/renderD128 is created and used by GNOME Shell (CPU usage dropped from ~54% llvmpipe to ~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-commit succeeds cleanly.
  • scripts/checkpatch.pl: 0 errors, 0 warnings.

@rjianwei
rjianwei requested review from a team as code owners December 1, 2026 11:43
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Merge readiness at f4f56eaa: not ready yet

Check Detail
CI at head ok 2 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes no review verdict FINISH at f4f56eaa
Hardware row at head ok comment at f4f56eaa
Conflicts ok none
PR text ok Risk: two-way · M5 J704 (T8142) only; zero impact on other Macs.

Areas: area:bringup

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@github-actions github-actions Bot added blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) and removed needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot) labels Dec 1, 2026
@github-actions github-actions Bot added the ci-failing A check failed at the PR head (bot) label Dec 1, 2026
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>
rjianwei added a commit to rjianwei/linux that referenced this pull request Dec 2, 2026
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>
@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Dec 2, 2026
DjDeveloperr
DjDeveloperr previously approved these changes Dec 2, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions github-actions Bot added merge-conflict Conflicts with the base branch (bot) and removed needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 2, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor

#3823 (J704 Touch ID) just landed and also appends to the end of t8142-j704.dts, so this now conflicts. Please merge main into the branch, keeping both blocks (a merge commit is fine, no force push needed). I'll re-approve and merge as soon as the DT check passes at the new head. Your J704 row still counts if the merge touches only that context.

@github-actions github-actions Bot added merge-conflict Conflicts with the base branch (bot) and removed merge-conflict Conflicts with the base branch (bot) labels Dec 2, 2026
# Conflicts:
#	arch/arm64/boot/dts/apple/t8142-j704.dts
@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) and removed merge-conflict Conflicts with the base branch (bot) labels Dec 2, 2026

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: FINISH, then merge

Blockers:

  1. No CI check has run on merged head f4f56eaa61cc: dt-checks and host-tests were both SKIPPED (fork PR). Run dt-checks at f4f56eaa61cc (or post a local dtbs_check / build receipt) before merging.
  2. pr-readiness still flags Hardware row at head missing for f4f56eaa61cc (confirming the 4b41a7b9 J704 row carries over on the context-only merge, or adding hw-row-ok, closes this).

Checked:

  • Audited arch/arm64/boot/dts/apple/t8142-j704.dts at f4f56eaa61ccaf1f622b0124e87f32dfc7d6e12a against prior approved commit 4b41a7b9a0: the merge with main cleanly preserves both #3823 Touch ID pin ranges (&pinctrl_ap / &pinctrl_nub) and the exact J704 GPU additions (#include "t8142-j813-gpu.dtsi", /reserved-memory/fw-text, &gpu_opp opp13, and &gpu memory-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, base main).
  • Interdiff 4b41a7b9a0 vs f4f56eaa61cc against main: identical GPU DT hunk, moved cleanly below #3823 Touch ID nodes.
  • CI: readiness SUCCESS; dt-checks and host-tests SKIPPED.

@github-actions github-actions Bot added the changes-requested A reviewer requested changes (bot) label Dec 2, 2026
@rjianwei

rjianwei commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Local DTB build receipt at f4f56eaa61ccaf1f622b0124e87f32dfc7d6e12a:

  • make O=/tmp/build-j704-dtb ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- apple/t8142-j704.dtb: PASS (0 errors, 0 warnings).
  • Confirming that f4f56eaa61cc is a context-only merge of #3823 (J704 Touch ID) with zero changes to the GPU DT hunk tested on J704 at 4b41a7b9a0, and the same combined GPU + Touch ID DTB has also been booted and verified on J704 hardware.

@satchlj @DjDeveloperr Could you trigger dt-checks and confirm hw-row-ok carryover for f4f56eaa61cc?

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Dec 2, 2026
RyanTheTide pushed a commit that referenced this pull request Dec 2, 2026
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 DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving f4f56eaa61cc. This covers the DT check from the earlier review.

  • Local CHECK_DTBS=y build of apple/t8142-j704.dtb at this head (arm64, LLVM=1, dtschema): it builds. The only schema message is aliases: 'disp0_piodma', which comes from t8142-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 at 4b41a7b9 therefore 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.

@DjDeveloperr
DjDeveloperr merged commit 3bee58a into aurora-silicon:main Dec 2, 2026
3 checks passed
DjDeveloperr added a commit to rjianwei/linux that referenced this pull request Dec 2, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) changes-requested A reviewer requested changes (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants