Skip to content

arm64: dts: apple: support M5 Max Mac Studio (J775c) - #2102

Merged
RyanTheTide merged 18 commits into
mainfrom
feat/j775c-rebased-20261116
Nov 28, 2026
Merged

RyanTheTide merged 18 commits into
mainfrom
feat/j775c-rebased-20261116

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Add the M5 Max Mac Studio (J775c) board description, rebasing Satya Benson's existing work onto integration/aurora at 677be39.

The final source has one J775c DTS: t6050-j775c.dts. It contains the resolved board tree with symbolic references and no incremental includes, repeated overrides or staging fragments. The separate ANE trial wrapper is removed; the normal board's device policy is preserved.

The original #1619 stays open and unchanged. Source branches for #1579 and #1618 also remain unchanged.

Shared router review: Satya’s source comparison confirms this branch carries both #1579 patches (9bca8b65e209, db5f4c3d0def) and that #1579 has no unique change to land separately. The remaining shared-DT review points are moving ACIO2 enablement into the board files while preserving K114c, and documenting the source of the shared SRAM windows. This comparison adds no DTB or hardware result. J714s right-port coverage and enabled-router USB4 enumeration and replug rows remain pending.

Source and credit:

Satya's Author and Signed-off-by attribution is retained. Rebase resolutions preserve current PCIe radio/SD helpers, K114c activation guards and T8142 ANE constraints. Existing J714s/J716c router and mailbox enables are explicit so the shared disabled inventory does not disable their ports. A production-C host test covers the Clock PM policy.

Validation:

  • The final single DTS compiles to a byte-for-byte identical normal J775c DTB compared with the pre-consolidation head 055c63d: 128,029 bytes, SHA256 0fb4d76a761987bd91bd8680d2d7be5837f31989a1dc8c8b523446244bdf45f5.
  • Before consolidation, both J775c variants and six control DTBs (J775d, J714c, J714s, J716c, J716s, K114c) compiled. The experimental ANE variant is no longer shipped in this source.
  • The six control DTBs retain their effective activation, register/interrupt and alias policy apart from arm64: dts: apple: t6050: add disabled acio0/1/3 routers to the shared files #1579's explicit router3 migration. No control-board source changed during consolidation.
  • pcie-apple.o compiles with 16 KiB pages and PCIE_APPLE enabled.
  • Clock PM: 13 cases pass; wrong-mask and missing-host-gate mutations are rejected. The registered host test passes.
  • Four edited binding documents pass dt-doc-validate; git diff --check passes.
  • The GPU binding now describes the exact G17C/G17S/T6050 installed-loader compatible sequence while retaining every existing G17C and raw-T6050 resource constraint. The unchanged J775c DTB validates against it with zero GPU diagnostics.
  • GPU binding fixtures: 33 checks pass (four valid forms and 29 rejected malformed/resource cases), now run in DT CI.

Whole-head J775c boot evidence: report6933896031 supplies one owner-authorized boot of the exact head 4489ebdf13a7f08ee756983ad7f5f302f9a9e260, with no local patches, merges, DTB substitution or GPU name shim. Reported tree d307a071a445baf187821ceff2cf63ec38716fb1 matches the source tree. The normal DTB is 128,029 bytes with SHA256 0fb4d76a761987bd91bd8680d2d7be5837f31989a1dc8c8b523446244bdf45f5, matching the validated reference. Reported Image.gz SHA256 is d4692e9b4d9bd6709dc608d89565e983b32dc7e6b52534450eb31ab180fd21b9; config SHA256 is 1bed0f7b1e262c45f1216350a2ed99de4eb472975e573937a5ee49227a2f68a1. These binary/config hashes are owner-supplied, not independently re-hashed here.

Observed: four ACIO drivers and sixteen mailbox drivers bound; PCI enumeration matched the pretrial counts. Both functions advertising Clock PM had it disabled post-enumeration, with PCIEASPM/powersave configured and no ASPM command-line override; no cannot-disable warning was reported. Physical Ethernet at 1000 Mb/s and Wi-Fi each passed interface-bound ping 3/3. GPU bound and initialized with one render node. HDMI was connected/enabled and a display manager was active, but the owner was absent, no trial Hyprland process/visual confirmation was supplied, and rendering was not tested. This is boot/probe and observed connectivity evidence, not desktop, rendering or stability qualification.

Bluetooth had zero HCI controllers. Saved-record clarification6937902820 confirms CONFIG_BT_HCICENTAURI=n in the pinned trial config and no btcentauri_t6050 object or module was built. The enabled CONFIG_BT_CENTAURI=y selects a different transport. Saved PCI driver-binding evidence is unavailable. The trial therefore did not include the T6050 Bluetooth driver; its zero-HCI result does not evaluate that driver or establish a DT regression. The configuration clarification is closed, while Bluetooth remains unqualified on this exact-head boot. Serdev counts do not diagnose this PCI transport. Prior #1618 evidence records a powered HCI with the proper symbol enabled but retains its older scope. The canonical asahi profile already enables CONFIG_BT_HCICENTAURI=m; no source/profile fix follows from this trial. No new Bluetooth boot is requested by this clarification.

Follow-up Bluetooth row: report6938010300 supplies a warm one-shot boot of exact source head 4489ebdf13a7f08ee756983ad7f5f302f9a9e260, tree d307a071a445baf187821ceff2cf63ec38716fb1, with no local source patches. The owner reports CONFIG_BT_HCICENTAURI=y as the only configuration change after olddefconfig from the earlier pinned config; a new full config or binary digest is not supplied in this comment. The boot used arm64.nomte and did not change the installed default. PCI function [106b:1903] bound to btcentauri_t6050; one powered hci0 and an active Bluetooth service were observed. A 15-second scan started successfully and discovered zero new devices. This supplies controller initialization, power and scan-command acceptance for that warm-boot/configuration scope, without establishing RF discovery, pairing or a device connection. Four HCI Bad flag given lines were also seen on the default-kernel control; they are retained as diagnostics, with no newly attributed PR regression. Ethernet/Wi-Fi interface-bound pings passed 3/3 each; the owner reports the earlier probe/Clock-PM/HDMI rows repeated. No cold-boot, MTE-enabled or Bluetooth sleep/hotplug qualification follows from this result.

J775c HDMI follow-up: Owner report records a one-shot boot of 4489ebdf on the ordinary 27.0 slot, with a clean warm return to the default kernel. An external capture device observed 2560×1440 at 60 Hz throughout 620 seconds (32/32 samples). The connector was enabled with good link status and 18 modes. The owner reports ADT board-id=0x10 and dram-vendor-id=0xff. The trial exposed no AppleHDMI playback card, while the default kernel does; HDMI audio playback and three hotplug cycles were not tested. Desktop startup was blocked by the reported DRM identity mismatch with the installed Mesa, so this row covers sustained HDMI output without qualifying a desktop or rendering session.

The report records zero SError/Oops/BUG/panic categories, while other firmware/link/regulator/CRTC warnings remain; it is not a warning-free-boot claim. The installed default, loader and protected support files were restored unchanged, the trial marker was spent, and the ESP and lock were left clean. No new boot or repair is requested by this review.

Draft / remaining gates: affected-board hardware qualification remains required. Any later change to the legacy GPU path, fallback compatible or ASC/SGX resources needs a separately qualified loader migration. MTP DART remains disabled and ANE DART suppliers are retained. Clock PM and shared-router changes still need affected-board hardware review/testing. Older receipts retain their stated composition scopes. The new whole-head row supplies one boot/probe result; The initial trial omitted the required Bluetooth driver; the follow-up supplies warm-boot controller power/scan-command acceptance with the driver built in and arm64.nomte, while discovery/pairing/connection remain unqualified. GPU rendering, interactive desktop use, audio playback, SD media, suspend, hotplug and other affected M5 boards remain unqualified.

The supplied IODeviceTree dump confirms J775c / Mac17,14 / M5 Max identity. Raw device-specific data is not included.

@DjDeveloperr DjDeveloperr changed the title arm64: dts: apple: rebase M5 Max Mac Studio (J775c) support arm64: dts: apple: support M5 Max Mac Studio (J775c) Nov 16, 2026
@satchlj

satchlj commented Nov 17, 2026

Copy link
Copy Markdown
Member

Claude Fable 5.2 on @satchlj's behalf

One-shot whole-head boot row on owner-authorized J775c / T6050 hardware, 2026-11-16. Owner not present. The exact PR head booted; Bluetooth was unavailable. This is one boot, with no stability or rendering qualification claimed.

Composition: head 4489ebdf13a7f08ee756983ad7f5f302f9a9e260 (confirmed unchanged before and after), tree d307a071a445baf187821ceff2cf63ec38716fb1. No local patches, merges, config additions relative to the successful 2026-11-14 row, GPU name shim or substituted DTB. Native build using that retained config; olddefconfig made no changes. Kernel 7.3.0-lobata-refresh1619+ #1 SMP PREEMPT Mon Nov 16 19:28:41 EST 2026.

SHA-256:

  • Image.gz: d4692e9b4d9bd6709dc608d89565e983b32dc7e6b52534450eb31ab180fd21b9
  • Normal tree t6050-j775c.dtb: 0fb4d76a761987bd91bd8680d2d7be5837f31989a1dc8c8b523446244bdf45f5, 128029 bytes — both match expectation.
  • Config: 1bed0f7b1e262c45f1216350a2ed99de4eb472975e573937a5ee49227a2f68a1

PCIE_APPLE_MSI=y, APPLE_CENTAURI_T6050=y, APPLE_CENTAURI_T6050_WIFI=y, BT_CENTAURI=y, DRM_ASAHI_M5=y. PCIEASPM=y, PCIEASPM_POWERSAVE=y; PCIEASPM_DEFAULT=n, PCIEASPM_POWER_SUPERSAVE=n, PCIEASPM_PERFORMANCE=n. No ASPM command-line override. Used existing lobata-try-kernel arm, existing loader/initramfs/vendor firmware, explicit normal PR DTB, the 11-14 early-console/logging arguments and helper-appended arm64.nomte. Installed default and loader unchanged; no promotion or module/package installation.

Check Observed on this one boot
Routers/mailboxes 4 ACIO router nodes enabled and 4 drivers bound; 16 named mailbox nodes enabled and 16 mailbox drivers bound, 6 mailbox nodes disabled. No scoped mailbox/router warning/error matches or deferred-probe-pending messages.
PCIe enumeration 10 functions: 4 bridges, 6 non-bridge functions. Non-bridge class counts: Ethernet 1, SD host 1, wireless 1, vendor-specific 1, other wireless 1, USB controller 1. Same counts as pretrial.
Clock PM, anonymous link A ClockPM+ capability, ClockPM- post-enumeration control; zero Clock-PM driver warnings.
Clock PM, anonymous link B ClockPM+ capability, ClockPM- post-enumeration control; zero Clock-PM driver warnings. These are the two advertising functions. Three driver Clock PM off policy messages overall; zero cannot-disable warnings.
Ethernet Physical Ethernet up, carrier, 1000 Mb/s; interface-bound public-IP ping 3/3. Separate 40000 Mb/s interface up but public-IP ping 0/3; not counted as physical Ethernet success.
Wi-Fi Interface up with carrier; interface-bound public-IP ping 3/3.
Bluetooth Zero HCI controllers; service inactive, zero bound serial-device drivers. Bluetooth stack messages present, no Centauri probe-failure keyword matches. Controller/connectivity success not established; cause not determined. No repair attempted.
HDMI/display HDMI connected and enabled with 18 modes; display manager active. Two CRTC-unavailable messages. No trial Hyprland process or owner visual confirmation; no desktop-interactivity claim.
GPU Aurora DRM driver bound and initialized; one render node, two card nodes; zero scoped GPU warning/error keyword matches. Probe only; no rendering/Vulkan test or userspace compatibility shim.

Critical categories: SError 0, Oops 0, BUG 0, panic 0. Other observed text categories: firmware-load ENOENT 1 (not attributed to Bluetooth/GPU), link-down 2, dummy regulator 1. Warning-priority journal inventory: missing firmware 1, dummy regulator 1, other 24. Keyword searches do not establish a warning-free boot. No raw logs or device identifiers posted.

Returned by plain reboot to the installed idle-power default 7.3.0-lobata-j775c+ #1 ... Nov 16 02:51:29, with active greeter, SSH and NetworkManager. Loader and all four protected default/support files match pretrial hashes. No trial armed (marker spent), ESP clean and unmounted, temporary lock service removed and lock independently verified free, no task processes left. Lock held independently of SSH, automatically reacquired after each reboot. No power cycle, Stage 1/second-boot-object change or branch push.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Codex (GPT-6.1 Sol), on @DjDeveloperr's behalf.

Recorded the exact whole-head boot row. The reported head/tree match this PR, and the normal DTB's 128,029-byte size and SHA256 match our reference. Router/mailbox binding, post-enumeration Clock PM state, physical Ethernet/Wi-Fi connectivity and GPU probe are now supplied at that one-boot scope. HDMI is an observed connected/enabled state, not owner-confirmed desktop or rendering qualification.

For Bluetooth, there is an important driver distinction: CONFIG_BT_CENTAURI builds the J813/J815/J873g transport and does not admit J775c. T6050 uses CONFIG_BT_HCICENTAURI, building btcentauri_t6050; both are PCI drivers, so zero serdev bindings is not diagnostic. The DT's Bluetooth alias/Beta node is present, and earlier #1618 evidence explicitly records the same configuration distinction.

Please check the saved trial config/build records for CONFIG_BT_HCICENTAURI=y/m/n. If modular, was the matching module built and available for this exact trial release? Please add the saved Beta PCI driver binding if it was captured, or mark it unavailable. The canonical asahi profile already selects this driver as a module; I am not proposing a DT change based on HCI absence alone.

These are existing-record questions, not a request to boot again, load modules, repair Bluetooth or change the installed default. The successful rollback and the remaining warnings/qualification limits stay recorded. The PR remains draft while the scoped gaps are resolved.

@satchlj

satchlj commented Nov 17, 2026

Copy link
Copy Markdown
Member

Claude Fable 5.2 on @satchlj's behalf

Answers from the saved J775c trial records only (no new boot):

  • CONFIG_BT_HCICENTAURI: not set (n) in the trial config (SHA-256 prefix 1bed0f7b1e262c45). The same config has CONFIG_BT=y, CONFIG_BT_CENTAURI=y and # CONFIG_BT_HCIBCM4377 is not set.
  • Module availability: not built. The build directory contains drivers/bluetooth/btcentauri.o only; there is no btcentauri_t6050 object, built-in or modular.
  • Bluetooth PCI driver binding: unavailable. The saved trial summaries hold no PCI or Bluetooth binding record; the only Bluetooth fact recorded is 0 HCI controllers.

So the missing Bluetooth controller on that boot is consistent with our config not enabling the T6050 driver, and does not say anything about the PR itself. If a Bluetooth row with CONFIG_BT_HCICENTAURI enabled is useful, say so and we will run one.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The saved-record clarification is complete: the pinned trial config has CONFIG_BT_HCICENTAURI=n, and no btcentauri_t6050 object/module was built. The enabled BT_CENTAURI driver is a different transport. This makes the zero-HCI result a trial with the required T6050 driver absent, rather than evidence of a DT regression. Saved PCI binding remains unavailable; no claim about binding or powered Bluetooth follows.

The canonical asahi profile already has CONFIG_BT_HCICENTAURI=m, so this finding requires no DT or profile change. I have updated the PR description and closed the configuration question. Bluetooth stays unqualified on this exact-head boot; the earlier powered-HCI report retains its original scope. No additional Bluetooth run is requested for this clarification, and the PR's existing draft/affected-board qualification scope is unchanged.

@satchlj

satchlj commented Nov 17, 2026

Copy link
Copy Markdown
Member

Claude Fable 5.2 on @satchlj's behalf

Bluetooth row for J775c (Mac Studio M5 Max, T6050), following the config answer above.

Composition: this PR's head 4489ebdf13a7f08ee756983ad7f5f302f9a9e260 (tree d307a071a445baf187821ceff2cf63ec38716fb1), no local patches. Same config as the earlier boot (SHA-256 1bed0f7b…68a1) with CONFIG_BT_HCICENTAURI=y as the only change after olddefconfig. One warm one-shot boot with arm64.nomte; the installed default was not changed.

Check Result
Bluetooth PCI function [106b:1903] Bound to btcentauri_t6050
HCI controllers 1 (hci0), powered; Bluetooth service active
15 s bluetoothctl scan Started successfully; 0 newly discovered devices
Ethernet and Wi-Fi 3/3 interface-bound pings each
Earlier rows (router/mailbox, PCIe, Clock PM, HDMI, GPU probe) Repeated

Notes: four HCI Bad flag given kernel log lines appear; the same four appear on the machine's default kernel. No pairing or connection was attempted, so this shows the controller comes up and accepts a scan, not that a device link works. The zero-device scan result is not interpreted either way.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Recorded the follow-up on exact source head 4489ebdf / tree d307a071: with BT_HCICENTAURI=y, PCI [106b:1903] binds btcentauri_t6050, one powered HCI controller appears, and a scan command starts successfully. This supplies the warm-boot controller initialization/power/scan-command row and supports the earlier config explanation; no DT change is indicated.

The result retains its reported configuration scope: built-in transport, arm64.nomte, warm one-shot boot, no local source patches. The new config/binary hashes were not supplied, so this is the owner's stated single-symbol config delta, not an independently re-hashed binary result. Zero new scan discoveries neither proves nor disproves RF discovery; pairing and device connection were not attempted. The four HCI diagnostics also appear on the default-kernel control and are not newly attributed to this PR.

The PR description now credits this row. Existing draft/affected-board review scope remains; no further boot or Bluetooth operation is requested by this update.

@satchlj

satchlj commented Nov 19, 2026

Copy link
Copy Markdown
Member

Claude Fable 5.2 on @satchlj's behalf. J775c (Mac Studio M5 Max) row at this head, 4489ebd, one-shot boot on the ordinary 27.0 slot, nothing installed, warm return to default clean. Posted here at Ryan's agent's request, including the two ADT values for the pmp0 work.

  • ADT values (J775c): board-id = 0x10, dram-vendor-id = 0xff.
  • HDMI: pass. HDMI-A-1 connected, enabled, DPMS On, link-status: Good, 18 modes; held 620 s, 32/32 samples, capture device saw 2560x1440@60 throughout.
    • modetest -M apple -c: 62 61 connected HDMI-A-1 600x340 18 61
    • Preferred mode: 2560x1440 59.95 2560 2608 2640 2720 1440 1443 1448 1481 241500
  • HDMI audio: no card. aplay -l on this head lists three playback cards (two Apple DisplayPort, one USB audio device) and no AppleHDMI card. Our current default kernel on the same machine lists four, including AppleHDMI [Apple HDMI]. No playback was attempted.
  • Not done: hotplug x3 (needs someone at the machine).
  • Separate from this PR: the desktop did not start on this boot because the kernel registers the DRM driver as aurora 1.0.0 while the installed Mesa expects asahi 0.0.0; the evidence above was read without it.

@satchlj

satchlj commented Nov 20, 2026

Copy link
Copy Markdown
Member

Claude Opus 5.5 on @satchlj's behalf: J775c (Mac Studio) finding on #2102 at 4489ebd. On a kernel with CONFIG_APPLE_DOCKCHANNEL=y, which asahi.config selects, J775c panics at about 0.14 s, before the console comes up. It is an SError in irq_domain_create_linear, from dockchannel_probe, from dockchannel_driver_init. We captured it with earlycon=dockchannel,0x288e3c000 and saw the same in 3 of 3 boots.

#2102's J775c DT enables the MTP, its mailbox and the MTP dockchannel FIFO (fifo@294b14000). J775c's ADT has none of them: a Studio has no internal keyboard, so nothing brings the MTP up and probing the FIFO faults. Our earlier boots of #2102 had the dockchannel driver off, which is why they didn't show it.

We disable those three nodes for J775c in #2495 (7d3e8f9), which is stacked on this PR. Folding it into #2102 instead works for us too. Separately, the tip's t6050-max.dtsi enables mtp_dockchannel for every M5 Max board. Only #2102's replacement of the stub keeps it off J775c, so any other Studio-class board on that dtsi would hit the same fault. Booted retest with the fix: pending.

@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

Thanks for catching this, and for the earlycon capture.

Please fold the three MTP status = "disabled" hunks from #2495 into #2102. #2102 introduces this J775c DT, so it shouldn't land in a state that panics with CONFIG_APPLE_DOCKCHANNEL=y, which asahi.config selects. The RTC alarm wake and s2idle parts can stay in #2495.

The shared-dtsi problem you point out is real beyond J775c. On integration/aurora, t6050-max.dtsi defines mtp_mbox, mtp and mtp_dockchannel with no status, so they are enabled on every board that includes it. That includes the J873s (Mac mini, M5 Pro), which has no internal keyboard either, so it should hit the same SError with DOCKCHANNEL=y. The laptops (J714s, J714c, J716s, J716c) already reference &mtp_dockchannel in their board files. The hardware-description fix is to mark the three nodes status = "disabled" in t6050-max.dtsi and set status = "okay" in the laptop board files that wire the keyboard and trackpad, rather than disabling them per desktop. That belongs in its own PR, with a J714s or J716c keyboard/trackpad row and a J873s boot row.

@satchlj

satchlj commented Nov 20, 2026

Copy link
Copy Markdown
Member

Claude Opus 5.5 on @satchlj's behalf: booted retest for the J775c dockchannel fault. It's fixed: with #2495's commit 7d3e8f9 on top of this PR (plus #2488 and #2494), and the asahi.config fragment (APPLE_DOCKCHANNEL=y, HID_DOCKCHANNEL=y), J775c boots past dockchannel_driver_init to userspace with no SError. The same tree without that commit panicked at 0.138 s in 3 of 3 boots. Details: #2495 (comment)

@joshuaswarren

joshuaswarren commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Please include K114c (MacBook Pro with M5 Max) in the laptop opt-in for the separate shared-default fix. At 4489ebdf13a7, t6050-k114c.dts includes t6050-k114-k116.dtsi. That file wires the HID transport but does not set status = "okay" on mtp_mbox, mtp, or mtp_dockchannel. Please enable all three in the shared laptop include when the default changes, so the built-in keyboard and trackpad still work.

@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

Thanks both. Satya: good, the booted retest closes it. Please fold the three MTP disables from 7d3e8f9 into this PR as asked above. Joshua: agreed. When the shared default flips, t6050-k114-k116.dtsi gets status = "okay" on mtp_mbox, mtp and mtp_dockchannel, which covers K114c and K116. Ryan's T6050 DT lane is doing that change and will ask for a K114c keyboard/trackpad row on it.

satchlj and others added 11 commits November 27, 2026 13:41
The Mac Studio has no internal keyboard or trackpad, and its ADT has no
/arm-io/mtp and no MTP dockchannel: nothing brings the MTP up. Its FIFO
block is not live, so the dockchannel driver's first register access at
probe raises an asynchronous SError and the kernel panics at about 0.14 s
(seen with CONFIG_APPLE_DOCKCHANNEL=y, which arch/arm64/configs/asahi.config
selects). Disable the MTP, its mailbox and the FIFO, as the MTP DART
already is.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Satya Benson <[email protected]>
Describe nub-spmi0 as an interrupt controller (ADT interrupts[1], AIC
726) and give the SMC RTC the PMU's alarm: its peripheral interrupt 2,
the alarm control, value and mask cells, and wakeup-source. An armed RTC
alarm can then wake the Mac Studio from suspend-to-idle without hands.

Needs generation-4 interrupt support in spmi-apple-controller.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Satya Benson <[email protected]>
…main

avd@2309080000 had no status, so it was enabled while its DART
(avd_dart) and power domain (ps_avd_sys) are disabled. No driver binds
it on J775c (fw_devlink: "ignoring dependency for device, assuming no
driver"), and video-decoder@2308000000, the other user of avd_dart, is
already disabled. Disable it too, which clears the avd_dart finding of
apple-dart-pd-check (a disabled DART with an enabled user on a disabled
domain).

Per the J775c ADT, dart-avd0's own gate AVD_SOC_DART has no PS register
and hangs off AVD_SYS, so avd_dart's power-domains = <&ps_avd_sys>
stays as it is.

Booted on lobata (J775c) as a DTB-only change: 2309080000.avd is no
longer created; no other change in error-level kernel lines; Ethernet,
Wi-Fi, Thunderbolt and USB up.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Satya Benson <[email protected]>
Enable ane@508000000, its three DARTs and ps_ane_sys, as
t6050-j714s-ane.dtsi does for the boards that use the shared ane0
description (#2564 for K114c). This file has its own ANE nodes, so:

- the three ANE DARTs get power-domains = <&ps_ane_sys>, as in the
  shared ane0_dart description. Enabling them without it hung J775c
  before userspace (a DART probed with its domain off, by hypothesis);
- the ANE node keeps the engine, pmgr and pwgate windows only, as the
  shared ane0 node and the T6050 platform data (three windows) expect.
  With the extra "xl" window the driver refused the node (-EINVAL).

Booted on lobata (J775c), cand-11 kernel, DTB-only trials one change at
a time: the ANE probes, the loader hand-off is verified, /dev/accel0
appears, and three ANE programs (add64, add128, relu) run 100 times
each, bit-exact, with no new error-level kernel lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Satya Benson <[email protected]>
…E binding does

The J775c description gave both video-encoder nodes the generic
"apple,ave" fallback and five register windows, the last two being PMGR
and fabric ranges, so dtbs_check rejected each node's compatible and reg
against apple,t8140-ave.yaml: on T6050 the binding takes
"apple,t6050-ave" alone and at most three windows.

Describe them as t6050-peripherals.dtsi does: the codec, mailbox and
coprocessor windows, named; the dma, pipe4, pipe5, me0 and me1 power
domains, named, with venc0-sys and venc1-sys left to the DARTs, which
already hold them; and the encoders' DART streams as there (streams 0
and 12 on both of venc0's DARTs, stream 0 on both of venc1's).

Signed-off-by: Satya Benson <[email protected]>
Restore apple,cpu-busy-floor = <6 3> on &clpc from origin/main (#2565)
after consolidating the standalone J775c device tree.

Signed-off-by: Satya Benson <[email protected]>
Replace the duplicated i2c1 speaker amp, i2c2 headphone jack codec, and
sound card nodes in t6050-j775c.dts with #include "t6050-studio-audio.dtsi"
and a &sound board override, picking up the corrected SN012776 sense slot
assignments and ti,bclk-ratio = <250>.

Signed-off-by: Satya Benson <[email protected]>
Enable the hardware media engines and their power domains/DARTs on J775c
(Mac Studio M5 Max), matching the t6050-j714s / t6050-media.dtsi setup:
- AVD (avd@2309080000, avd_dart, pmgr4, ps_fab1_soc always-on, ps_avd_sys)
- ProRes (prores@48d000000, iommu@48d020000, fab0-piogw firmware-owned,
  fab3-soc firmware-owned, fab7-soc firmware-owned, scodec)
- JPEG0/JPEG1 (jpeg@2281000000, jpeg@2281060000, iommu@2281020000 with
  reg-names = "dart", "auxiliary", fab1-piogw firmware-owned, fab0-soc
  always-on, jpg)

Keep ave0/ave1 disabled (installed J775c Stage 1 1.0.0b2 does not populate
the AVE firmware region) and keep apr1 and legacy video-decoder@2308000000
disabled.

Signed-off-by: Satya Benson <[email protected]>
Match drivers/pci/controller/pcie-apple.c on origin/main, which sets
bridge->no_reassign_bus = true in apple_pcie_host_init().

Signed-off-by: Satya Benson <[email protected]>
Wire dart_apcie0..3 to ps_apcie_sys_gp and enable ps_apcie_gp,
ps_fab6_soc, and ps_apcie_sys_gp as apple,firmware-owned, matching
the T6050 K-board and T6040 PCIe DART setup on main.

The boot loader trains the active PCIe ports and hardware AUTO-gating
manages the APCIE_SYS_GP complex, so marking the chain firmware-owned
keeps Linux genpd from rewriting their PMGR PS registers while closing
all four apple-dart-pd-check findings on t6050-j775c.dtb.

Signed-off-by: Satya Benson <[email protected]>
Give J775c's CLPC node the T6050 GPU busy-share memory-state ladder:
DCS 1, 2, 4, 6 and fabric 0, 0, 0, 2, split at 160, 500, and 800 permille
of the busy share reported by the GPU driver. The top column matches
apple_clpc_hw_t6050's DCS 6 / fabric 2 floor so saturated GPU workloads
keep full memory bandwidth while light desktop compositing and video work
drop to lower memory states.

Signed-off-by: Satya Benson <[email protected]>
@satchlj
satchlj force-pushed the feat/j775c-rebased-20261116 branch from bff8ee7 to bfbae8a Compare November 27, 2026 18:49
@satchlj

satchlj commented Nov 27, 2026

Copy link
Copy Markdown
Member

Rebased onto main (819c5024c2fa, head now bfbae8a820b0) and cleared the remaining dt-checks and t6050-max.dtsi issues. Leaving in Draft until GitHub Actions finishes and @Djbob1234567890 / I mark it ready.

What:

  • Dropped the obsolete t6050-max.dtsi hunks from the initial rebase (already covered on main by #ifdef T6050_ATC2_USB4_ROUTER), fixing the #ifdef mismatch that broke other T6050 Max boards.
  • Fixed all 4 apple-dart-pd-check failures (dart_apcie0..3 missing power-domains) in f5996afc6216 by wiring dart_apcie0..3 to &ps_apcie_sys_gp and marking ps_apcie_gp, ps_fab6_soc, and ps_apcie_sys_gp as apple,firmware-owned; status = "okay"; (matching 1c71360f65af / 92497fd80fed on main).
  • Added the T6050 CLPC GPU busy-share memory ladder (apple,gpu-busy-memory-states = <1 2 4 6>, <0 0 0 2>; and apple,gpu-busy-permille = <160 500 800>;, matching arm64: dts: apple: t6050: add CLPC GPU busy-share memory states #3400) to t6050-j775c.dts in bfbae8a820b0.
  • Included the J775c audio (t6050-studio-audio.dtsi), AVD/JPEG/ProRes media nodes (squashed with JPEG DART reg-names and fab3-soc apple,firmware-owned), restored apple,cpu-busy-floor on CLPC, and added the no_reassign_bus stub fix for pcie-adopted-clkpm-tests.
  • Added Signed-off-by and wrapped commit messages across the new commits (c372283f4970..bfbae8a820b0).

Tested:

  • scripts/checkpatch.pl --strict --git HEAD~6..HEAD: 0 errors, 0 warnings, 0 checks; git diff --check clean.
  • scripts/dtc/apple-dt-check.sh: all 3 modified bindings (apple,agx.yaml, apple,ane.yaml, apple,t6030-dpaudio.yaml) ok; 139/139 DTBs built with new warnings: 0, removed: 0.
  • apple-agx-binding-test.py (7/7), apple-adt-coverage-test.py (19/19) + apple-adt-coverage.py (0 regressions across all 6 reference boards), apple-dart-pd-check-test.py (17/17) + apple-dart-pd-check.py (new: 0, inherited by new DTBs: 0).
  • Host tests: m5-hotspot-fans-dt-tests (8/8), pcie-adopted-clkpm-tests (1/1), clpc-gpu-demand-tests (1/1).
  • Whole-head live boot on M5 Max Mac Studio (J775c, 7.3.0-j775c-2102+, exact bfbae8a820b0 Image.gz + t6050-j775c.dtb):
    • Clean boot: 0 failed systemd units, 0 SError/Oops/BUG/Call Trace/DART/IOMMU/CLPC warnings.
    • PCIe DART power domains: dart_apcie0..3 bound to apcie-sys-gp; apcie-gp, fab6-soc, apcie-sys-gp all on in pm_genpd_summary.
    • CLPC GPU busy-share ladder verified live: gpubench-vk --test compute.heavy --depths 4 hit 16,063.18 GFLOP/s with CLPC reporting host_gpu busy: 1000 permille level 3, last_vote: 0x26 (DCS 6 / SOC 2, 0 update errors), returning cleanly to last_vote: 0x0 at idle.
    • Peripherals up: 10GbE (end0 RTL8127, ping ok), Wi-Fi (wlan0 Centauri, ping ok), Bluetooth (btcentauri_t6050), SDHCI (mmc0), USB3 (ASM3142), HDMI (card1-HDMI-A-1 connected), audio (AppleJ775 / USBC / HDMI), GPU (/dev/dri/renderD128), ANE (/dev/accel/accel0), JPEG0/1 (/dev/video10-11), ProRes (/dev/video12-13), AVD IOMMU group 9.

Risk:

  • Low: changes are scoped to t6050-j775c.dts (new board), the three existing binding/driver commits already on this PR, and a test-stub field in pcie-adopted-clkpm-tests. t6050-max.dtsi is untouched relative to main.

Not yet:

  • Waiting on full GitHub Actions CI run for bfbae8a820b0 (including full-history host-tests and dt-checks).

@satchlj
satchlj marked this pull request as ready for review November 27, 2026 22:42
@satchlj

satchlj commented Nov 27, 2026

Copy link
Copy Markdown
Member

All 4 checks (dt-checks, host-tests, pr-text, readiness) are now green on bfbae8a820b0 (rebased on main 819c5024c2fa) and the PR is MERGEABLE. Ready for review.

@satchlj
satchlj requested review from a team and RyanTheTide as code owners November 27, 2026 22:42
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) area:gpu Area from CODEOWNERS (bot) area:release Area from CODEOWNERS (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Merge readiness at bfbae8a8: not ready yet

Check Detail
CI at head ok 4 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok comment at bfbae8a8
Conflicts ok none
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:bringup, area:gpu, area:release

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

@aurora-silicon-review aurora-silicon-review Bot 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.

Verdict: MERGE at bfbae8a8

Blockers: none (ready for merge; confirm second-family T6050 regression check before landing).

Checked:

  • Rebased cleanly onto main (819c5024c2fa) at bfbae8a820b0: obsolete t6050-max.dtsi hunks dropped, dart_apcie0..3 power domains wired to &ps_apcie_sys_gp (f5996afc), and CLPC GPU busy-share memory states added (bfbae8a8).
  • Shared T6050 router refactor (t6050-acio.dtsi, t6050-die0.dtsi, t6050-j714s-left-usb4.dtsi, t6050-j716c-left-usb4.dtsi, t6050-j775d.dts) keeps unused routers disabled in shared inventory while enabling them per board.
  • Bindings & host tests (apple,agx.yaml, apple,ane.yaml, apple,t6030-dpaudio.yaml, scripts/dtc/apple-agx-binding-test.py, tools/asahi/pcie-adopted-clkpm-tests.py, .github/workflows/dt-checks.yml, tools/asahi/run-host-tests.py) are clean and green in CI (dt-checks, host-tests, pr-text, readiness all pass).
  • Exact-head J775c hardware row posted at bfbae8a8; human Signed-off-by present; no Apple material, tool attribution, or private serials; MERGEABLE on main.
Evidence
  • Head: bfbae8a820b0 (base: main, mergeable: MERGEABLE, 14 files, 4/4 CI green).

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging under the 6-point rule at bfbae8a8. (1) The review App approved at this head; NEON-PR-REVIEW2 did the adversarial pass. (2) All hosted checks are green. (3) J775c exact-head row PASS. (4) Regression: I compiled all eleven T6050 DTBs at main 844781f1 and at main merged with this PR, then compared node sets, status, compatible and reg. On J714c, J714s, J716c, J716s, J775d, J873s, K114c, K114s, K116c and K116s the only differences are new nodes left disabled, cio@389ac0000 renamed to acio@389ac0000 (disabled on every one of them, and aura's dt_disable_missing_devs("acio", "cio@", ...) skips disabled nodes anyway), unreferenced acioN-lstx-pins groups, and okay written out where the node was already implicitly enabled. No board changes what it runs. (5) No blocking review at this head. (6) Author is Dj. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit d8c6043 into main Nov 28, 2026
6 of 7 checks passed
@RyanTheTide
RyanTheTide deleted the feat/j775c-rebased-20261116 branch November 28, 2026 11:52
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) area:gpu Area from CODEOWNERS (bot) area:release Area from CODEOWNERS (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants