Skip to content

arm64: dts: apple: t6031, t6034: enable PCIe CLKREQ on J514/J516 - #3856

Merged
RyanTheTide merged 1 commit into
mainfrom
dts/t6031-t6034-pcie-clkreq
Dec 2, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
dts/t6031-t6034-pcie-clkreq

Conversation

@maralcbr

@maralcbr maralcbr commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Summary

On M3 Max MacBook Pro boards (t6031-j514c, t6031-j516c, t6034-j514m, t6034-j516m), pcie0 already claims AP GPIOs 0–3 as function periph1 (pcie_pins in t6031-gpio-pins.dtsi, attached in t6031-die0.dtsi), and both active onboard PCIe endpoints — port00 (BCM4388 Wi-Fi/BT) and port01 (GL9755 SD card reader) — advertise L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ and ClockPM+. Without supports-clkreq; on the root ports, drivers/pci/pcie/aspm.c leaves L1 substates and Clock PM disabled by default.

Add supports-clkreq; to &port00 and &port01 on all four M3 Max MacBook Pro DTS files (t6031-j514c.dts, t6031-j516c.dts, t6034-j514m.dts, t6034-j516m.dts), matching t6030-j514s.dts (#3793) and t6041-j614c-j616c.dtsi.

Tested: MacBook Pro 16-inch (M3 Max, J516C, T6031) at abc4d6b (live pinmux verified 2b3000000.pinctrl pins 0–3 claimed by 580000000.pcie as periph1, lspci -vv verified L1.1/L1.2 and ClockPM caps on 00:00.0/01:00.0 and 00:01.0/02:00.0; ARM64 kernel + DTB build b1202-103918-3651 and all four board DTBs compile with zero new warnings; checkpatch --strict clean; Codex review VERIFIED 01a23427-73a4-75d1-b4e9-39a20be8b9c5).
Risk: two-way · T6031/T6034 J514/J516 PCIe root ports port00/port01 ASPM L1SS and Clock PM

T6031/T6034 already muxes the PCIe CLKREQ# lines on AP GPIOs 0-3
(pcie_pins in t6031-gpio-pins.dtsi, attached to pcie0 in
t6031-die0.dtsi), and both onboard endpoints on J514/J516 — port00
(BCM4388 Wi-Fi/BT) and port01 (GL9755 SD card reader) — advertise
L1SubCap (PCI-PM L1.1/L1.2, ASPM L1.1/L1.2) and Clock PM. Without
supports-clkreq on the root ports, pcie_aspm leaves L1 substates and
Clock PM off by default.

Add supports-clkreq to port00 and port01 on all four M3 Max MacBook Pro
boards (J514c, J516c, J514m, J516m), matching T6030 J514s and T6041
J614c/J616c.

Signed-off-by: Marcelo Alcantara <maralc@gmail.com>
@maralcbr
maralcbr requested review from a team as code owners December 2, 2026 00:46
@maralcbr
maralcbr requested review from Acelogic and malik-na and a balanced review from Copilot December 2, 2026 00:46
@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Merge readiness at abc4d6b5: ready to merge

Check Detail
CI at head ok 5 checks passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok in the PR body at abc4d6b5
Conflicts ok none
PR text ok Risk: two-way · T6031/T6034 J514/J516 PCIe root ports port00/port01 ASPM L1SS and Clock PM

Areas: area:platform
Merge: gh pr merge 3856 --merge (Owners and Core through the bypass: add --admin).

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Reported pinmux checks, capability checks, and DTB builds do not establish hardware stability with PCIe L1 substates and clock gating enabled on the four boards; maintainer validation of idle/wake, suspend/resume, and peripheral I/O remains necessary.

No open issues 🎉

What changed in this PR

Adds PCIe CLKREQ support declarations for four M3 Max MacBook Pro boards, matching the existing pattern on related Apple platforms.

Changes:

  • Adds supports-clkreq to the Wi-Fi/Bluetooth and SD reader root ports on each board.
  • Documents the CLKREQ GPIO routing and intended L1 substates and Clock PM support.
File Description
arch/​arm64/​boot/​dts/​apple/​t6034-j516m.dts Declares CLKREQ support for both J516M ports.
arch/​arm64/​boot/​dts/​apple/​t6034-j514m.dts Declares CLKREQ support for both J514M ports.
arch/​arm64/​boot/​dts/​apple/​t6031-j516c.dts Declares CLKREQ support for both J516C ports.
arch/​arm64/​boot/​dts/​apple/​t6031-j514c.dts Declares CLKREQ support for both J514C ports.

Review effort: Balanced

@maralcbr

maralcbr commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Hardware pre-condition note on 16-inch M3 Max (j516c, naeems-m3-max, job j1202-104500-6229):

  • Confirmed /sys/kernel/debug/pinctrl/2b3000000.pinctrl/pinmux-pins already assigns AP GPIO pins 0..3 to 580000000.pcie as function periph1 (CLKREQ0..3#), and both 01:00.0 (BCM4388) and 02:00.0 (GL9755) enumerate cleanly with ASPM: default states L1.
  • Note that Tier-1 Volunteer lab run preserves /boot/efi/m1n1/boot.bin by design, so live L1SS runtime verification with the rebuilt t6031-j516c.dtb will run once packaged via update-m1n1 on edge.

@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.

Reviewed abc4d6b. pcie0 already muxes AP GPIO 0-3 as CLKREQ, and both endpoints advertise L1.1/L1.2 and Clock PM, so supports-clkreq on port00/port01 matches t6030-j514s. Merge needs a boot of this DTB at this head on a J514/J516 M3 Max: lspci showing L1SS and ClockPM enabled on both links, Wi-Fi throughput and an SD card read/write, and a suspend/resume cycle with both devices back.

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (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

Merge status: one item left, a J514/J516 M3 Max boot with this DTB.

The change is approved, and its merge into current main passes the device-tree checks (below). The pinmux and capability readout show the hardware supports CLKREQ#, but no boot has used the new DTB yet (the lab runs kept the old boot.bin).

To close it, please boot an M3 Max (the J516C is fine) with a DTB built from this PR, installed with update-m1n1, and post one line naming the head SHA, the Mac and the result:

  • lspci -vv: L1SubCtl1 L1.1/L1.2 enabled and ClockPM+ on 00:00.0 and 00:01.0, with no sysfs toggle;
  • Wi-Fi throughput and an SD card read/write;
  • one suspend/resume with both devices back;
  • no new kernel errors.

One boot of a DTB that carries this PR, #3854 and #3855 unchanged counts for all three.

Local checks on the merge result (hosted CI stand-in)
  • Head abc4d6b5797f merged into main 5a870d0f0b3f (merge tree deeac182ee5a); arm64, LLVM=1, dtschema 2026.9.
  • scripts/dtc/apple-dt-check.sh: all 141 Apple DTBs build at base and merge. Four change: t6031-j514c, t6031-j516c, t6034-j514m, t6034-j516m. CHECK_DTBS on them: 68 warning lines at both, 0 new, 0 removed. dtc warnings: 0 at both.
  • ADT coverage and DART power-domain checks: pass, nothing new.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at abc4d6b5797f (B2 merge train, 12-01 merge bar). Approval at this head: DjDeveloperr. Row: in the PR body at abc4d6b. CI: linux train L24 (candidate fdfedd05e955 on main a76093e): Apple driver build pass + touched objs pass (kernel/sched/psi.o verified with CONFIG_PSI=y) + DTBs pass + 12/12 relevant KUnit suites pass (ane-boot 333, clpc 22, ane-pm 20, dcp-fabric 117, dcp-topology 235/236, dcp-display 220/221, ave 57, apple-dart 40, jpeg 15, isp 61, mt7932 98/99, asahi 567/571; avd-pm-test.c pre-existing Clang 22 warning on main) + host tests pass (apple-dcp 1/1, dcp 96/96, g17 329/329). Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit 50c0c13 into main Dec 2, 2026
8 checks passed
@RyanTheTide
RyanTheTide deleted the dts/t6031-t6034-pcie-clkreq branch December 2, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) ready-to-merge Meets the merge policy: merge it (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants