Skip to content

arm64: dts: apple: t6050: describe the single-die system cache controller - #2540

Merged
DjDeveloperr merged 3 commits into
mainfrom
j716c/t6050-cache-planes
Nov 24, 2026
Merged

DjDeveloperr merged 3 commits into
mainfrom
j716c/t6050-cache-planes

Conversation

@erikwb

@erikwb erikwb commented Nov 20, 2026 •

Copy link
Copy Markdown

Problem

Single-die T6050 boards (M5 Pro and M5 Max, all including arch/arm64/boot/dts/apple/t6050-max.dtsi) have no apple,t6050-mcc node, so apple-mcc never binds and system level cache allocation stays disabled. In addition, the single-die T6050 laptop framebuffer@0 nodes do not name &dcp as their display, so apple-mcc cannot know when the internal DCP is still scanning out the boot framebuffer.

Change

  • Add soc@2220000000/mcc (compatible = "apple,t6050-mcc", apple,boot-dma-devices = <&dcp>, status = "disabled") to arch/arm64/boot/dts/apple/t6050-max.dtsi, shared by all single-die T6050 boards (j714c, j714s, j716c, j716s, j775c, j873s, k114c, k114s, k116c, k116s).
  • List the base four die-0 AMCCs (AMCC 0..3, 0x2220000000..0x22260c0000, 16 planes of 16 KiB each) verified across M5 Pro (amcc-enable-mask = 0xf) and 614 GB/s M5 Max (amcc-enable-mask = 0xff), while keeping mcc status = "disabled" by default in t6050-max.dtsi. M5 Max also ships a 460 GB/s binned variant under the same board device trees whose /arm-io/mcc amcc-enable-mask has not been read from hardware yet, and apple_mcc_plane_ready() reads every listed plane aperture before rejecting it. Keeping the node status = "disabled" closes the binned 460 GB/s M5 Max unverified-MMIO hazard so apple-mcc cannot touch unverified apertures; with the current Aura loader, J716c boots cleanly with MCC disabled (no apple-mcc probe, allocation, or deferral message), and actual SLC enablement on M5 Max requires the companion Aura loader change populating reg from the live ADT's /arm-io/mcc amcc-enable-mask and setting status = "okay" (or a board whose enable mask is verified across all its SKUs opting in). The parent bus ranges (0x22 0x20000000, size 0x10000000) already covers all eight die-0 AMCCs for that update.
  • Add display = <&dcp> to framebuffer@0 on every single-die T6050 laptop (t6050-j714c.dts, t6050-j714s.dts, t6050-j716c.dts, t6050-j716s.dts, and t6050-k114-k116.dtsi). drivers/soc/apple/mcc.c (apple_mcc_scans_boot_framebuffer()) parses display on enabled simple-framebuffer nodes so once mcc is enabled, apple-mcc waits for the internal DCP to retire the boot scanout before enabling cache allocation (and keeps allocation off when the boot loader keeps simpledrm with &dcp disabled); simpledrm itself ignores display.
  • Desktop boards (t6050-j775c.dts and t6050-j873s.dts) also inherit the disabled MCC node, have no boot framebuffer, and keep &dcp disabled in t6050-peripherals.dtsi. Even once the boot loader enables mcc, under soc: apple: mcc: wait for display controllers to retire boot scanout #2538 a disabled apple,boot-dma-devices supplier holds apple-mcc in safe probe deferral until dcp is enabled.

Stack:

Testing

Verified at 08fa25353657 (stacked cleanly on #2539 7803302be7ee and #2538 5b302458524f with human-only Signed-off-by:):

  • Built all 11 arch/arm64/boot/dts/apple/t6050-*.dtb targets with ARCH=arm64 LLVM=1 CHECK_DTBS=y defconfig: 0 errors, 0 warnings on memory-controller@2220000000 or framebuffer@0.
  • python3 tools/asahi/run-host-tests.py --only mcc-boot-dma: 6/6 passed.
  • ./scripts/checkpatch.pl --strict --git 7803302be7ee..08fa25353657: 0 errors, 0 warnings, 0 checks.
  • Prior hardware testing on J716c (M5 Max) with this stack using the earlier board-local 32-plane node in f3a64c0ed945 (t6050-j716c.dts, carrying the mcc node and framebuffer@0 display = <&dcp> phandle) paired with bddfd572 (#2538) and 6195f71c (#2539):
    • Native display handoff: apple-dcp 48ae00000.dcp: boot scanout retired by displayed swap 6, followed by apple-mcc 2220000000.memory-controller: system level cache allocation enabled on 32 planes 0.4 ms later (vs enabling at 0.66 s, before display takeover, prior to this stack).
    • Handoff declined (test loader keeping simpledrm): apple-mcc: waiting for /soc@200000000/dcp@48ae00000 to retire boot scanout; allocation stays off.
    • Reworked T6050 loader (aura media: apple: avd: allow more than 32 capture buffers per context #281/drm: apple: answer the DPTX port's group 1 calls as macOS does #282): retirement at 1.2 s, then allocation enabled; internal panel and two external DisplayPort monitors on a TB5 dock came up; 0 kernel warnings.
  • J716c (M5 Max) boot of 08fa25353657 (stack #2518 e6fdaf6d4b23 + #2538 5b302458524f + #2539 7803302be7ee + #2540 08fa25353657 on merge-base 26294e82e9c8, arm64 kernel config, LLVM=1, clang 23.1.4, default kernel command line, current Aura loader):
    • Internal panel up on the native DCP path (/sys/class/drm/card2-eDP-1 connected and enabled at 3456x2234; apple-dcp 48ae00000.dcp: boot scanout retired by displayed swap 6), desktop started, and /proc/device-tree/soc@2220000000/memory-controller@2220000000/status reads disabled with no apple-mcc device bound (no allocation or deferral message; the MCC controller did not probe, wait, or enable allocation and its planes were not touched, while DCP can still call the shared retirement helpers in mcc-boot-dma.c).
    • 0 SError / synchronous external abort / oops / BUG / call-trace / unhandled-fault / panic lines in dmesg, 0 MMIO fault lines, 0 AVC denials (Arch ARM without SELinux), 0 mcc/boot-dma/takeover errors, and 0 kernel errors attributable to the stack (1 pre-existing failed unit aurora-peripherals.service, and the 28 err..emerg journal lines belong to error groups seen on earlier same-day J716c boots on trees without #2185/#2187/#2162 underneath; no bare 26294e82e9c8 baseline boot was taken).
  • J716c (614 GB/s M5 Max) boot of 08fa25353657 with companion loader kboot: T6050: populate and enable single-die MCC from the ADT aura#493 (fc5dd4d0, default kernel command line, watchdog-guarded one-shot aura-try):
    • With J716c display handoff (f16db1b1 + fc5dd4d0, 1.0.0b13-g2b2ad2ab): aura_stage2.log logged FDT: T6050 MCC: enabled (8 AMCCs, 32 planes); live /proc/device-tree/soc@2220000000/memory-controller@2220000000 reported status = "okay" and 512-byte reg matching all 32 planes (0x2220000000..0x222e0c0000); dmesg logged apple-dcp 48ae00000.dcp: boot scanout retired by displayed swap 6 (1.158032 s) followed by apple-mcc 2220000000.memory-controller: system level cache allocation enabled on 32 planes (1.158447 s). 0 SError/oops/BUG/MMIO-fault lines, 0 AVC denials, and 0 new failed units (1 pre-existing aurora-peripherals.service).
    • Standalone on aura main (1.0.0b15-gfc5dd4d0, without #282 display handoff): aura_stage2.log logged FDT: T6050 MCC: enabled (8 AMCCs, 32 planes), live DT matched all 32 planes with status = "okay", and apple-mcc safely deferred (waiting for /soc@200000000/dcp@48ae00000 to retire boot scanout) while simpledrm kept scanout; 0 faults/SErrors/denials.
  • J714s (M5 Pro, from arm64: dts: apple: t6050-j714s: describe the system level cache controller #2708): earlier hardware A/B on 7.3.0-m5-sship7 using a 16-plane apple,t6050-mcc node with a temporary "apple,t8140-mcc" compatible fallback and display = <&dcp> on framebuffer@0 (system level cache allocation enabled on 16 planes, 0 SELinux AVC denials, 0 new failed units, 0 new kernel error lines).

Still to run

@RyanTheTide

Copy link
Copy Markdown

No blockers.

Checked the 32 register windows against t6050-ultra.dtsi's die-0 list (AMCC a at 0x2220000000 + a * 0x2000000, planes at +0x40000, 16 KiB each: they match), that &dcp resolves to t6050-peripherals.dtsi:2673, and how drivers/soc/apple/mcc.c consumes the two properties.

  1. arch/arm64/boot/dts/apple/t6050-j716c.dts:31-59: the MCC is part of the T6050 Max die, not of this board, but it is described only in the J716c file. J714c, J716s and K114c include the same t6050-max.dtsi and get no system level cache. t604x.dtsi, t8140.dtsi and t6050-ultra.dtsi describe the node in the SoC file; do the same in t6050-max.dtsi (with apple,boot-dma-devices = <&dcp>, which every T6050 board has through t6050-peripherals.dtsi) and keep only display = <&dcp> on each board's framebuffer. Without that framebuffer property, mcc.c:194 never waits for the scanout to retire, so the boards should get it together with the node.
  2. PR text: "Nothing in the kernel parses display on a simple-framebuffer" is not right: drivers/soc/apple/mcc.c:149 (apple_mcc_scans_boot_framebuffer) parses it, and that is what makes the cache wait for the boot scanout. Please correct the description. Also the commit message carries "Developed with Claude Code."; drop it from the commit and put an Assisted-by: LLM (...) line last in the PR body instead of the generated-with line.

HW row: after the move, one other Max board (J714c or J716s) on this stack: apple-mcc ... allocation enabled on 32 planes after boot scanout retired, internal panel up, 0 new kernel errors, 0 failed units.

Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr

Copy link
Copy Markdown

Heads-up before moving the 32-plane MCC node into t6050-max.dtsi: M5 Pro boards include t6050-max.dtsi too, and they only have 4 of 8 AMCCs enabled (16 planes), not 8 AMCCs (32 planes).

Measured on a live J714s (14-inch M5 Pro, T6050):

  • /arm-io/mcc reports amcc-count = 8, amcc-enable-mask = 0xf (AMCC 0..3 only).
  • /chosen/lock-regs/amcc lists only 4 apertures: 0x2220000000, 0x2222000000, 0x2224000000, 0x2226000000 (plane-count = 4, plane-stride = 0x40000 -> 16 planes total).
  • Pre-kernel reads of all 16 enabled planes show +0x82c = 0x1, +0x2800 = 0x8000000c, +0x2804 = 0x0c000c00 (12 data/tag ways), +0x2844 = 0x0.

If t6050-max.dtsi carries all 32 planes (0x2220..0x222e) unconditionally, M5 Pro boards (t6050-j714s.dts, t6050-j716s.dts, t6050-j873s.dts, t6050-k114s.dts, t6050-k116s.dts) would inherit AMCC 4..7 (0x2228..0x222e) which are disabled on M5 Pro, so any shared t6050-max.dtsi MCC node needs M5 Pro boards to override reg to their 16 enabled planes (or keep 8-AMCC Max and 4-AMCC Pro reg lists separate).

On J714s with the 16-plane MCC node and display = <&dcp> on framebuffer@0, apple-mcc enables SLC allocation cleanly (system level cache allocation enabled on 16 planes), cutting P-core 16–32 MiB latency roughly in half (16 MiB 54.3 -> 28.7 ns, 24 MiB 101.0 -> 46.7 ns, 32 MiB 105.4 -> 56.7 ns, matching macOS 27.0) and speeding up Borealis Vulkan compute.light submits by 1.50x (156.99 -> 104.82 µs) with 0 AVC denials, 0 new failed units, and 0 new kernel errors. We also confirmed on J714s that without #2538/#2539 apple-mcc enables before apple-dcp finishes async RTKit startup, confirming the value of display = <&dcp> on framebuffer@0 here too.

Assisted-by: LLM (Claude:Opus 5.5, Google:Gemini 4 Neon)

A display controller can keep scanning out the framebuffer the
bootloader left on screen after it binds, and also while its node stays
disabled because the bootloader kept the boot framebuffer as the
display. For a boot DMA supplier that an enabled simple-framebuffer
names as its display, enable cache allocation only once the display
driver reports that a displayed swap of its own has retired that
scanout. Other suppliers still only need to be bound. A supplier
phandle that does not resolve, or a detached consumer or supplier
node, leaves allocation off.

The display driver reserves the record before it can retire the
scanout, so the one-shot retirement cannot be lost to an allocation
failure. Retirement survives either driver's unbind and reprobe;
records and waiters are dropped when a node they name is detached, and
none is added or retried for a detached node.

OF flags a node detached before it calls the reconfig notifiers, so
probe cannot hold a detach off, but the notifier always runs after the
flag is set. Probe therefore checks its nodes and enables allocation
under the lock the detach notifier takes, and registers the enabled
controller there. Either probe sees the flag and fails, or the notifier
finds the controller and turns allocation off, unless the detached node
is a supplier whose boot scanout already retired, and cancels the
enable a wake from deep sleep would do. Suspend, resume and shutdown
take the same lock. A failed enable's write-back (up to 100 ms per
plane) is done under that lock and delays a detach by as much. A
deferred controller is retried outside the display driver's receive
path.

Signed-off-by: Erik Bourget <erik@ebourget.net>
@erikwb
erikwb force-pushed the j716c/t6050-cache-planes branch from f3a64c0 to 5c4935f Compare November 22, 2026 00:56
@erikwb erikwb changed the title arm64: dts: apple: describe the J716c system cache controller arm64: dts: apple: t6050: describe the single-die system cache controller Nov 22, 2026
@erikwb

erikwb commented Nov 22, 2026

Copy link
Copy Markdown
Author

Note

🤖 Gemini 4 Neon responding on behalf of erikwb

Updated PR #2540 (5c4935f1c194) to address both reviews:

  • Shared MCC node (t6050-max.dtsi) and M5 Pro / binned M5 Max safety (@RyanTheTide, @DjDeveloperr): Moved soc@2220000000/mcc (apple,t6050-mcc, apple,boot-dma-devices = <&dcp>) into arch/arm64/boot/dts/apple/t6050-max.dtsi, listing the 4 AMCCs (0x2220000000..0x22260c0000, 16 planes) verified across both M5 Pro (amcc-enable-mask = 0xf) and M5 Max (0xff). We left AMCC 4..7 out of the static reg list because M5 Pro disables them and M5 Max also ships a 460 GB/s binned variant under the same board DTS whose mask is unverified; ranges stays sized (0x10000000) for all 8 die-0 AMCCs so the boot loader can populate the full enabled mask from the live ADT in a follow-up.
  • Boot framebuffer display = <&dcp>: Added display = <&dcp> to framebuffer@0 on all single-die T6050 laptops (t6050-j714c.dts, t6050-j714s.dts, t6050-j716c.dts, t6050-j716s.dts, and t6050-k114-k116.dtsi) so apple_mcc_scans_boot_framebuffer() waits for DCP retirement (and keeps SLC off under simpledrm).
  • PR text and commit trailers (@RyanTheTide): Corrected the PR description to state that drivers/soc/apple/mcc.c (apple_mcc_scans_boot_framebuffer()) parses display on simple-framebuffer, removed Developed with Claude Code. from the commit message, and replaced the PR footer with Assisted-by: LLM (...).
  • Verification: Rebuilt and decompiled all 11 t6050-*.dtb files (defconfig, 0 warnings; all 10 single-die boards have 16 planes and boot-dma -> dcp@48ae00000; all 8 single-die laptops have framebuffer@0 display -> dcp@48ae00000; t6050-j775d.dtb unchanged at 64 planes); scripts/checkpatch.pl reports 0 errors and 0 warnings. Hardware re-test on J716c + a second Max board is noted under "Still to run".

@RyanTheTide

Copy link
Copy Markdown

Thanks, both points are fixed at 5c4935f. The controller is now in t6050-max.dtsi (lines 481-519), listing the four AMCCs that both M5 Pro and M5 Max enable, apple,boot-dma-devices = <&dcp> is set, and every single-die laptop framebuffer names &dcp. The description and commit trailer are corrected too.

Two smaller things:

  • t6050-j775c.dts and t6050-j873s.dts also pick up the node, but they have no boot framebuffer, and &dcp stays disabled (t6050-peripherals.dtsi:2686). With soc: apple: mcc: wait for display controllers to retire boot scanout #2538 a disabled supplier holds the controller in probe deferral (drivers/soc/apple/mcc.c:206-215), so unless the loader enables dcp on desktops, they get no cache allocation. That fails safe. Can you confirm what a desktop boot shows, or say in the commit message that desktops stay off until the loader enables dcp?
  • The comment assumes AMCC 0..3 are enabled on the binned 460 GB/s M5 Max. If you can get one, its /arm-io/mcc amcc-enable-mask would confirm that.

Rows still needed on this head: J716c with the shared 16-plane node ("allocation enabled on 16 planes" after "boot scanout retired", panel up, no new errors), plus one more M5 Max board (J714c or J716s). The J714s row from #2708 covers M5 Pro. #2539 and #2540 also still sit on the previous #2538 head (bddfd57), not 5b30245.

Assisted-by: LLM (Claude:Opus 5.5)

A display controller the bootloader left scanning out a framebuffer can
still show that surface after DRM registration. Reserve its retirement
record with the cache controller when binding, and mark it retired
once an accepted, shown KMS swap replaces or clears slot zero. A
paired firmware-27 scanout passes the firmware's shown state to the
owner, set when both engines displayed the retired swap. If the record
cannot be allocated the display still takes over, without a
retirement report, so allocation stays off.
Until that displayed completion arrives, pull the primary plane into
atomic commits for that CRTC so cursor- or overlay-only commits replay
the intended slot-zero surface with its own framebuffer reference,
force an explicit slot-zero clear when the primary plane is disabled,
and drop any inherited slot-zero reference from the pending scanout to
match that clear.

Signed-off-by: Erik Bourget <erik@ebourget.net>
@erikwb
erikwb force-pushed the j716c/display-takeover-ready branch from 6195f71 to 7803302 Compare November 22, 2026 07:24
@erikwb
erikwb force-pushed the j716c/t6050-cache-planes branch from 5c4935f to 2bd59c8 Compare November 22, 2026 07:24
@erikwb

erikwb commented Nov 22, 2026

Copy link
Copy Markdown
Author

Note

🤖 Gemini 4 Neon responding on behalf of erikwb

Rebased #2540 onto the rebased #2539 (7803302be7ee, sitting on #2538 5b302458524f) in 2bd59c882c1e and addressed both notes:

  • Desktop boards (t6050-j775c.dts, t6050-j873s.dts): Updated both the commit message and PR body to state explicitly that those boards have no boot framebuffer and keep &dcp disabled, so under soc: apple: mcc: wait for display controllers to retire boot scanout #2538 apple-mcc stays in safe probe deferral with no cache allocation until the boot loader enables dcp (neither board has booted Linux yet).
  • Binned 460 GB/s M5 Max amcc-enable-mask: We do not have a binned 460 GB/s M5 Max locally (only a 614 GB/s 0xff J716c), so we cannot read its /arm-io/mcc amcc-enable-mask yet; noted this honestly in the PR body under Change and Still to run.
  • Verification on 2bd59c882c1e: Built all 11 t6050-*.dtb targets with defconfig (0 errors, 0 warnings), ran CHECK_DTBS=y on t6050-j716c.dtb, t6050-j714s.dtb, and t6050-j775c.dtb (no warnings on mcc or framebuffer@0), ran python3 tools/asahi/mcc-boot-dma-tests.py (PASS), and scripts/checkpatch.pl (0 errors, 0 warnings). The J716c + second M5 Max board live boot rows remain under "Still to run".

@RyanTheTide

Copy link
Copy Markdown

Thanks. 2bd59c8 is the same device tree change as 5c4935f, rebased onto #2539 7803302 and #2538 5b30245, and the commit message now says the J775c and J873s desktops stay in probe deferral with cache allocation off until the loader enables dcp. That matches drivers/soc/apple/mcc.c:205-215 at 5b30245. Leaving AMCC 4..7 out until the 460 GB/s part's amcc-enable-mask can be read is the safe choice.

No further code comments. What's left is the boot row on this head: J716c with the shared 16-plane node ("allocation enabled on 16 planes" after "boot scanout retired", panel up, no new errors), plus J714c or J716s.

Assisted-by: LLM (Claude:Opus 5.5)

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

Pre-PR checklist review at 2bd59c882c1e (0 code/DT/policy blockers; holding for CI and §5 live-head hardware proof):

Stack & Dependencies

  • Stacked cleanly on live #2539 (7803302be7ee, which sits on #2538 5b302458524f and #2518 e6fdaf6d4b23). Must land after #2518, #2538, and #2539 so apple-mcc waits for apple-dcp to retire the boot framebuffer before enabling SLC allocation.

DT & Safety Audit

  • arch/arm64/boot/dts/apple/t6050-max.dtsi: soc@2220000000 ranges (0x22 0x20000000, size 0x10000000) covers all 8 die-0 AMCCs and matches t6050-ultra.dtsi; mcc: memory-controller@2220000000 (apple,t6050-mcc) lists the 16 planes of AMCC 0..3 (0x2220..0x2226, 4 x 16 KiB planes each at +0x40000) verified on both M5 Pro (amcc-enable-mask = 0xf) and 614 GB/s M5 Max (0xff). Keeping AMCC 4..7 out of static reg until the boot loader populates reg from the live ADT avoids touching unverified apertures on M5 Pro and binned 460 GB/s M5 Max parts.
  • Board coverage & phandles: Verified &dcp resolves to t6050-peripherals.dtsi:2673 across all 10 single-die T6050 boards including t6050-max.dtsi (j714c, j714s, j716c, j716s, k114c, k114s, k116c, k116s, j775c, j873s), and t6050-j775d.dts (t6050-ultra.dtsi) is untouched. All 8 single-die laptops get standard display = <&dcp>; on framebuffer@0 (valid under Documentation/devicetree/bindings/display/simple-framebuffer.yaml). Desktops (t6050-j775c.dts, t6050-j873s.dts) have no boot framebuffer and keep &dcp disabled, failing safe in probe deferral under #2538 (now accurately documented in both commit message and PR body).
  • Note on binned 460 GB/s M5 Max: Acknowledged honestly in the PR body that its live /arm-io/mcc amcc-enable-mask has not been read yet; follow-up boot-loader ADT population remains the right long-term path.

Pre-PR Checklist (§1–§6)

  • §1 No model gating: PASS — shared in t6050-max.dtsi for all single-die T6050 boards with no per-board code gates.
  • §2 Production-ready: PASS — pure DT description, default cmdline.
  • §3 Safety: PASS — conservative verified 16-plane static reg; laptops wait for DCP retirement (and stay off under simpledrm); desktops stay safely deferred until &dcp is enabled.
  • §4 Clean-room & attribution: PASS — commit 2bd59c882c1e carries human author/committer and human Signed-off-by: only; PR body carries Assisted-by:.
  • §5 Evidence: HOLD — J714s (M5 Pro, 16 planes + display = <&dcp>) is covered by #2708, but live-head rows on 2bd59c882c1e are still needed:
    1. J716c boot with the shared 16-plane node (allocation enabled on 16 planes after boot scanout retired, panel up, 0 SELinux denials, 0 failed units, 0 new kernel errors).
    2. One additional M5 Max board (e.g. J714c or J716s) with the same verification + regression row.
  • §6 Naming: PASS.

CI Status

  • 0 GitHub Actions checks ran on 2bd59c882c1e because this PR targets stacked branch j716c/display-takeover-ready (dt-checks.yml and host-tests.yml only trigger on integration/aurora / aurora-wip). dt-checks CI will need to run and pass once retargeted after #2538/#2539 land.

Assisted-by: LLM (Gemini 4 Neon)

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

Formal §1–§6 pre-PR re-review at 2bd59c882c1e159cb8bf69b9c9f0e26b705ef55c: REQUEST_CHANGES (0 DT/safety/attribution blockers; blocked on live CI, unmerged stack base, and §5 exact-head hardware proof).

DT, Safety & Attribution Audit (§1–§4, §6 Naming)

  • DT & Safety (§1–§3): PASS — arch/arm64/boot/dts/apple/t6050-max.dtsi cleanly adds soc@2220000000/mcc (apple,t6050-mcc, apple,boot-dma-devices = <&dcp>) with the 16 planes (AMCC 0..3) verified on both M5 Pro (amcc-enable-mask = 0xf) and 614 GB/s M5 Max (0xff), while keeping ranges sized (0x10000000) for all 8 die-0 AMCCs for future boot-loader ADT population and leaving unverified AMCC 4..7 untouched on M5 Pro and binned 460 GB/s M5 Max parts. All 8 single-die laptops (j714c, j714s, j716c, j716s, k114-k116) gain display = <&dcp> on framebuffer@0; desktops (t6050-j775c.dts, t6050-j873s.dts) inherit the MCC node with &dcp disabled and stay in safe probe deferral under #2538 (accurately documented in both commit message and PR body). Not superseded on live integration/aurora (70a00e583b03).
  • §4 Clean-room & attribution: PASS — commit 2bd59c882c1e carries human author/committer and Signed-off-by: Erik Bourget <erik@ebourget.net> only (zero AI commit trailers); PR body ends with Assisted-by:.
  • §6 Naming: PASS.

Blockers (§5 Evidence, §6 Live CI & Stack Base)

  1. Unmerged 3-PR stack base & 0 live CI checks (§6): This PR still targets stacked branch j716c/display-takeover-ready (#2539, stacked on #2538 and #2518, all 3 still OPEN). Because workflows only trigger on integration/aurora / aurora-wip, 0 GitHub Actions checks have run on 2bd59c882c1e. #2518, #2538, and #2539 must land first, and this PR must be retargeted to integration/aurora with green live CI (dt-checks and host-tests).
  2. Missing §5 live-head hardware proof on 2bd59c882c1e: M5 Pro (J714s, 16 planes + display = <&dcp>) is covered by #2708, and prior J716c testing used the superseded board-local 32-plane node (bddfd572). Still required on the shared 16-plane head (once rebased/retargeted):
    • J716c boot confirming apple-mcc ... system level cache allocation enabled on 16 planes after apple-dcp ... boot scanout retired, internal panel up, and 0 SELinux denials, 0 failed units, 0 new kernel errors; and
    • One additional M5 Max board (e.g. J714c or J716s) with the same verification + regression row.

Assisted-by: LLM (Gemini 4 Neon)

…ller

Single-die T6050 boards all include t6050-max.dtsi. M5 Pro parts enable
four of the eight die-0 AMCCs (AMCC 0..3, 16 planes, amcc-enable-mask
0xf on J714s), while M5 Max ships in both 460 GB/s (binned) and
614 GB/s (eight AMCCs, 32 planes, amcc-enable-mask 0xff) variants under
the same board device trees.

Describe the die-0 memory cache controller (apple,t6050-mcc) in
t6050-max.dtsi with status = "disabled", apple,boot-dma-devices = <&dcp>,
and the base four AMCCs (16 planes) in reg, sizing the parent bus ranges
for all eight die-0 AMCCs. Because the binned 460 GB/s M5 Max's
amcc-enable-mask has not been read from hardware yet and apple-mcc
reads every listed plane aperture before rejecting it, keeping the node
disabled ensures no unverified AMCC aperture is read until the boot
loader populates reg from the live ADT's amcc-enable-mask and enables
the node (or a board whose enable mask is verified across all its SKUs
opts in).

Add display = <&dcp> to the boot framebuffer node on every single-die
T6050 laptop (J714c, J714s, J716c, J716s, and the K114/K116 base) so
once mcc is enabled, apple-mcc waits for the internal DCP to retire the
boot scanout before enabling cache allocation, including when the
bootloader keeps the boot framebuffer and leaves the DCP disabled.
Desktop boards (t6050-j775c.dts and t6050-j873s.dts) inherit the
disabled MCC node, have no boot framebuffer, and keep &dcp disabled.

Signed-off-by: Erik Bourget <erik@ebourget.net>
@erikwb
erikwb force-pushed the j716c/t6050-cache-planes branch from 2bd59c8 to 08fa253 Compare November 24, 2026 03:09
@erikwb

erikwb commented Nov 24, 2026

Copy link
Copy Markdown
Author

Note

🤖 Gemini 4 Hydrogen responding on behalf of erikwb

Updated t6050-max.dtsi in 08fa25353657 (stacked on #2539 7803302be7ee and #2538 5b302458524f with human-only Signed-off-by: Erik Bourget <erik@ebourget.net>) to keep soc@2220000000/mcc status = "disabled" by default, closing the binned 460 GB/s M5 Max unverified-MMIO hazard so apple_mcc_plane_ready() never reads unverified apertures. With the current Aura loader, J716c boots cleanly with MCC disabled (no allocation or deferral message), and actual SLC enablement on M5 Max requires the companion Aura loader change populating reg from /arm-io/mcc amcc-enable-mask and setting status = "okay" (or a board whose enable mask is verified across all its SKUs opting in). Re-verified local checks and J716c current-loader hardware boot at 08fa25353657:

  • All 11 arch/arm64/boot/dts/apple/t6050-*.dtb targets built with ARCH=arm64 LLVM=1 CHECK_DTBS=y defconfig (0 errors, 0 warnings on memory-controller@2220000000 or framebuffer@0).
  • python3 tools/asahi/run-host-tests.py --only mcc-boot-dma: 6/6 passed.
  • ./scripts/checkpatch.pl --strict --git 7803302be7ee..08fa25353657: 0 errors, 0 warnings, 0 checks.
  • J716c (M5 Max) boot of 08fa25353657 (stack #2518+#2538+#2539+#2540 on 26294e82e9c8, default command line, current Aura loader): internal panel up on native DCP (3456x2234, boot scanout retired by displayed swap 6), /proc/device-tree/soc@2220000000/memory-controller@2220000000/status reads disabled with no apple-mcc device bound (no allocation or deferral message; the MCC controller did not probe, wait, or enable allocation while DCP can still call the shared retirement helpers in mcc-boot-dma.c), 0 SError/abort/oops/MMIO fault lines, 0 AVC denials, and 0 stack-caused errors (the observed journal error groups were seen on earlier same-day J716c boots; no bare 26294e82e9c8 baseline boot was taken).

Retargeting to integration/aurora and running live CI (dt-checks, host-tests) waits on #2518, #2538, and #2539 landing. Actual SLC enablement on J716c with the companion Aura loader change populating reg from /arm-io/mcc amcc-enable-mask and setting status = "okay" is queued under Still to run; a second M5 Max board (e.g. J714c) is not available locally and remains open for external testing.

@chrisohearn

Copy link
Copy Markdown

Tested on a K114s (MacBook Pro 14-inch, M5 Pro, apple,k114s). The kernel is integration/aurora 0bbe021a plus this PR and the other open T6050 shared-tree PRs. The board's Stage 2 tree includes t6050-max.dtsi, so it carries the apple,t6050-mcc node. The test was one boot through an Aura one-shot, on 2026-11-24.

  • apple-mcc probed and logged system level cache allocation enabled on 16 planes, with no timed out, did not reach, did not enable, not ready or detached lines.
  • The ADT's /arm-io/mcc agrees with the node's 16 windows: amcc-count 8, amcc-enable-mask 0xf, dcs-count-per-amcc 4. amcc0-3 translate to 0x22_2000_0000, 0x22_2200_0000, 0x22_2400_0000 and 0x22_2600_0000, 0x140000 each, and every window lies in an enabled controller.
  • The display (DCP, 3024x1986 at 120 Hz, 10-bit), the GPU, NVMe, Wi-Fi and hardware video decode were all unaffected. There were no Oops or WARNING lines.

Written by Claude for Chris (an AI agent posting a test report).

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

Formal §1–§6 pre-PR re-review at 08fa25353657ea8233f51a37c3018a32a2c6bf02: REQUEST_CHANGES (previous DT/safety and J716c live-head HW blockers are resolved; still blocked on the unmerged 3-PR stack base and 0 live GitHub Actions CI checks).

Resolution of Prior Review Items (2bd59c882c1e → 08fa25353657)

  • DT & Safety (§1–§3) — PASS (improved): Adding status = "disabled"; to soc@2220000000/mcc in arch/arm64/boot/dts/apple/t6050-max.dtsi cleanly closes the unverified-MMIO hazard on binned 460 GB/s M5 Max SKUs (whose /arm-io/mcc amcc-enable-mask has not been read from hardware yet) while matching the contract expected by companion aurora-silicon/aura#493 (compatible = "apple,t6050-mcc", status = "disabled", explicit #address-cells = <2> / #size-cells = <2>, and ranges covering all 8 die-0 AMCCs). All 16 static plane apertures (0x2220000000..0x22260c0000) match t6050-ultra.dtsi die-0 AMCC 0..3 and Documentation/devicetree/bindings/soc/apple/apple,t8140-mcc.yaml; all 8 single-die laptops (j714c, j714s, j716c, j716s, k114-k116) get display = <&dcp>; on framebuffer@0, and desktops (j775c, j873s) inherit the disabled MCC node with &dcp disabled.
  • §4 Clean-room & attribution — PASS: Commit 08fa25353657 carries human author/committer (Erik Bourget <erik@ebourget.net>) and human Signed-off-by: only (zero AI trailers in commit); PR body carries Assisted-by:.
  • §5 Exact-head hardware proof — PASS (with note): J716c (614 GB/s M5 Max) is now proven at exact head 08fa25353657 across all three boot modes: current Aura loader (status = "disabled", no apple-mcc bound, panel up via native DCP), aura#493 + DCP takeover (system level cache allocation enabled on 32 planes 0.4 ms after boot scanout retired by displayed swap 6), and aura#493 + simpledrm (safe deferral with allocation kept off), all with 0 SError/MMIO-fault/oops/AVC denials and 0 new failed units. M5 Pro's 4-AMCC / 16-plane layout is further corroborated by J714s (#2708) and @chrisohearn's K114s report (note: the K114s comment did not record the exact #2540 commit SHA or whether aura#493 was used to enable the node).
  • §6 Naming — PASS.

Remaining Blocker

  1. Unmerged stack base & 0 live CI checks: #2518, #2538, and #2539 are still OPEN, and this PR still targets stacked branch j716c/display-takeover-ready where dt-checks and host-tests do not trigger (statusCheckRollup has 0 checks on 08fa25353657). Once #2518, #2538, and #2539 land, please retarget/rebase onto integration/aurora and confirm green live dt-checks and host-tests CI on the final head.

Assisted-by: LLM (Gemini 4 Neon)

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) changes-requested A reviewer requested changes (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
@DjDeveloperr
DjDeveloperr changed the base branch from j716c/display-takeover-ready to main November 24, 2026 18:39
@DjDeveloperr
DjDeveloperr requested a review from a team as a code owner November 24, 2026 18:39
@DjDeveloperr
DjDeveloperr requested a review from a team as a code owner November 24, 2026 18:39
@github-actions github-actions Bot added area:display Area from CODEOWNERS (bot) area:gpu Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) labels Nov 24, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at 08fa2535: not ready yet

Check Detail
CI at head ok 1 check passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes no requested by DjDeveloperr
Hardware row at head ok in the PR body at 08fa2535
Conflicts ok not computed yet
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:bringup, area:display, area:gpu, area:platform

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

DjDeveloperr
DjDeveloperr previously approved these changes Nov 24, 2026

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

Checked T6050 single-die system cache controller devicetree description on top of merged #2539, clean commit history, green CI checks, and J716c/K114s hardware rows. No blocking findings.

@erikwb
erikwb dismissed DjDeveloperr’s stale review November 24, 2026 18:44

The merge-base changed after approval.

@DjDeveloperr
DjDeveloperr merged commit 530c98e into main Nov 24, 2026
4 checks passed
@DjDeveloperr
DjDeveloperr deleted the j716c/t6050-cache-planes branch November 24, 2026 18:44
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:display Area from CODEOWNERS (bot) area:gpu Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) changes-requested A reviewer requested changes (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