Skip to content

arm64: dts: apple: t6030-j514s: enable CLKREQ# on internal PCIe links - #3793

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

RyanTheTide merged 1 commit into
mainfrom
dts/j514s-pcie-clkreq

Conversation

@maralcbr

@maralcbr maralcbr commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Problem

On the 14" M3 Pro (J514S, T6030), both internal PCIe root ports (port00 BCM4388 Wi-Fi/BT and port01 GL9755 SD card reader) omit supports-clkreq in t6030-j514s.dts. Even though pinctrl_ap already muxes both CLKREQ# pins (PIN163 and PIN164 -> 580000000.pcie function periph1) and both endpoints advertise L1.1/L1.2 substates and Clock PM, the default ASPM policy (drivers/pci/pcie/aspm.c) leaves L1.1/L1.2 and Clock PM disabled (ASPM: default states L1).

Change

Add supports-clkreq; to &port00 (pci@0,0, AP GPIO 163) and &port01 (pci@1,0, AP GPIO 164) in arch/arm64/boot/dts/apple/t6030-j514s.dts, following #2735.

Tested: J514S 14" M3 Pro (T6030) live pinmux & PCIe inspection (j1201-232845-076a & j1202-001502-d4b3) confirmed PIN163/PIN164 muxed to 580000000.pcie function periph1 and both endpoints (01:00.0/01:00.1, 02:00.0) expose L1SS/ClkPM knobs at 0; at 0cfa7b0 verified checkpatch.pl clean and compiled DTB with supports-clkreq on pci@0,0 and pci@1,0 (Stage 2 boot.bin DTB swap boot on J514S still pending; volunteer test Mac has tier-1 recovery without OOB reset).

Risk: two-way · J514S (T6030) internal PCIe links (port00 Wi-Fi/BT and port01 SD reader); pcie_aspm.policy overrides remain honored.

@maralcbr
maralcbr requested review from a team as code owners December 1, 2026 14:29
@maralcbr
maralcbr requested review from LiamRay11 and malik-na and a balanced review from Copilot December 1, 2026 14:29

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

The modified J514S DTB lacks hardware boot testing, leaving L1SS/Clock PM stability and wake behavior unverified for Wi-Fi/BT, SD-card I/O, and suspend/resume.

No open issues 🎉

What changed in this PR

Adds board-specific CLKREQ# declarations for the 14-inch M3 Pro MacBook Pro (J514S), opting its internal PCIe links into the default L1 substates and Clock PM behavior introduced by #2735.

Changes:

  • Adds supports-clkreq to the Wi-Fi/Bluetooth and SD card reader ports.
  • Documents the corresponding CLKREQ# pins, AP GPIOs 163 and 164.
File Description
arch/​arm64/​boot/​dts/​apple/​t6030-j514s.dts Declares CLKREQ# support on port00 and port01, scoped to J514S.

Review effort: Balanced

@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (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 2ef9503e: 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 the PR body at 0cfa7b01; the changed files are byte-identical at 2ef9503e
Conflicts ok none
PR text ok Risk: two-way · J514S (T6030) internal PCIe links (port00 Wi-Fi/BT and port01 SD reader); pcieaspm.policy overrides remain honored.

Areas: area:platform
Merge: gh pr merge 3793 --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.

@github-actions github-actions Bot added 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
On the 14" M3 Pro (J514S), both internal PCIe root ports route CLKREQ#
through pinctrl_ap (AP GPIO 163 periph1 for port00 BCM4388 Wi-Fi/BT and
AP GPIO 164 periph1 for port01 GL9755 SD card reader), and both ends of
each link advertise ASPM and PCI-PM L1.1/L1.2 substates.

Without supports-clkreq on the root ports, the default ASPM policy keeps
L1 PM substates and Clock PM disabled. Add supports-clkreq to port00 and
port01 on J514S so L1.1, L1.2, and Clock PM are enabled by default.

Signed-off-by: Marcelo Alcantara <maralc@gmail.com>
@maralcbr
maralcbr force-pushed the dts/j514s-pcie-clkreq branch from 0cfa7b0 to 2ef9503 Compare December 2, 2026 00:05
@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Dec 2, 2026
@maralcbr

maralcbr commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Live hardware pre-condition receipt on 14-inch M3 Pro (j514s, job j1202-122310-8341 on b1202-121643-a0b0):

  • lspci -vv confirms both internal links advertise full L1 substates capability (L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+) on 00:00.0 -> 01:00.0 (BCM4388 Wi-Fi) and 00:01.0 -> 02:00.0 (GL9755 SD), currently all disabled (L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-) without supports-clkreq.
  • /sys/kernel/debug/pinctrl/347100000.pinctrl/pinmux-pins confirms 580000000.pcie already claims pins 163..166 as function periph1 (CLKREQ0..3#).
  • Note: Tier-1 Volunteer lab run intentionally leaves /boot/efi/m1n1/boot.bin untouched, so on-device runtime soak with the modified t6030-j514s.dtb requires an update-m1n1 package install once carried to edge.

@maralcbr

maralcbr commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Paired A/B/A L1.1/L1.2 hardware validation on 14" M3 Pro (j514s, macbook-pro-14-m3-pro-nov-202-2, maclab j1202-132338-d433, balanced profile, schedutil, 45 samples per phase on hwmon0/power1_input):

Both internal links (00:00.0 -> 01:00.0/01:00.1 BCM4388 Wi-Fi/BT and 00:01.0 -> 02:00.0 GL9755 SD reader) ran cleanly with L1SubCtl1: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ enabled and toggled via sysfs:

  • A1 (L1SS ON): median 5807.9 mW (p25 5782.8 / p75 5847.6)
  • B (L1SS OFF): median 6162.7 mW (p25 6130.1 / p75 6196.6)
  • A2 (L1SS ON): median 5797.5 mW (p25 5776.5 / p75 5813.2)
  • Delta: -360 mW (-5.8%) idle system power saved with L1SS active
  • Stability: Wi-Fi ping 20/20 (0% loss, avg 2.997 ms initial / 3.060 ms post-toggle), hci0 & mmc0 bound cleanly, zero PCIe/AER/Wi-Fi/SD errors in dmesg.

(Note: j1202-132338-d433 tested L1SS hardware behavior directly on the live J514S board since Tier-1 lab run keeps the installed m1n1/boot.bin DTB; full boot-time activation via this DT supports-clkreq; property occurs once the updated DTB is installed into boot.bin.)

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

The DT change is right: both CLKREQ# pins are already muxed to the PCIe block, and the A/B/A run shows both links handle L1.1/L1.2 (-360 mW idle, Wi-Fi and SD clean).

One gate remains before merge: a J514s boot with this DTB in boot.bin. That run should show L1SubCtl1 enabled from boot (no sysfs toggle) on both links, Wi-Fi and the SD reader working, and ideally one sleep/wake. The sysfs run proves the hardware, not this DTB.

@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 J514s boot with this DTB.

The change is approved, and its merge into current main passes the device-tree checks (below). The A/B/A run toggled L1SS through sysfs with the old DTB in boot.bin, so it shows both links handle L1.1/L1.2 but not that supports-clkreq turns them on from boot.

To close it, please boot the J514s with a DTB built from this PR (a lab run keeps the old boot.bin, so install the new DTBs with update-m1n1 first) 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 ping and an SD card read/write;
  • one suspend/resume with both devices back, if you can;
  • no new kernel errors.

One boot of a DTB that carries this PR and #3794 unchanged counts for both.

Local checks on the merge result (hosted CI stand-in)
  • Head 2ef9503ecbe0 merged into main 5a870d0f0b3f (merge tree 5600dbe1c5b5); arm64, LLVM=1, dtschema 2026.9.
  • scripts/dtc/apple-dt-check.sh (what the dt-checks job runs): all 141 Apple DTBs build at base and merge; only t6030-j514s.dtb changes. CHECK_DTBS on it: 59 warning lines at both, 0 new, 0 removed. dtc warnings: 0 at both.
  • ADT coverage and DART power-domain checks: pass, nothing new.
  • Sibling drift (informational): t6030-j516s has the same two root ports without supports-clkreq.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at 2ef9503ecbe0 (B2 merge train, 12-01 merge bar). Approval at this head: DjDeveloperr. Row: PR body at 0cfa7b0 (changed files byte-identical at 2ef9503). 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 3f959b9 into main Dec 2, 2026
7 checks passed
@RyanTheTide
RyanTheTide deleted the dts/j514s-pcie-clkreq branch December 2, 2026 16:43
maralcbr added a commit to omacom/linux-aurora that referenced this pull request Dec 2, 2026
omarchy-pkgs-merge Bot pushed a commit to omacom/omarchy-pkgs that referenced this pull request Dec 3, 2026
…#561) + T6031/T6034 USB4 tunnels (#562) (#4533)

Pin linux-aurora and aurora-userpages to immutable tag aurora-7.3.0-6
(omacom/linux-aurora a756afc0d5dd on carry/aurora-7.3.0-6), built from
integration/aurora-7.3 (omacom/linux-aurora 9109b19be7a5):
- Adds omacom/linux-aurora#546: the 14" M3 Max (J514C/J514M) records take
  the 3024x1964 J514 panel, swap stamps and the nits block, GPU firmware
  rows are per chip so a J514C on the 14.8 stub keeps native graphics, the
  J514M checks for the 30-core GPU, and a J514M/J516M owner can admit an
  unpinned GPU firmware build with aurora.g15_accept_text_prefix
- Adds aurora-silicon/linux#3793 (omacom/linux-aurora#561): J514S PCIe
  CLKREQ for ASPM L1 substates
- Adds aurora-silicon/linux#4014 (omacom/linux-aurora#562): T6031/T6034
  USB4 PCIe tunnels on ATC0-2
- Preserves intake 4a42f3105002 and the 24 carries from 7.3.0.aurora5-1

Signed-off-by: Scott Jones <scottajones@gmail.com>
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