Skip to content

arm64: dts: apple: t6040-j616s: enable the scaler and its DART - #1168

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
dt3/j616s-scaler-enable
Nov 7, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
dt3/j616s-scaler-enable

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Enables the MSR scaler/CSC block on the J616s (MacBook Pro 16-inch, M4 Pro): scaler0, its DART scaler0_dart, and the two PMGR domains it sits in, ps_msr0 and ps_msr0_ase_core. All four nodes are already described in the T6040 tree with status disabled; this PR only flips their status in t6040-j616s.dts.

Tested

The J616s booted this exact device tree as a one-shot Stage 2 trial with the scaler driver from #1162 loaded. The built J616s DTB differs from the integration DTB by exactly these four status lines, the same four the trial carried.

  • MSR hardware-version 21 probed
  • NV12/P010 to and from ARGB/XRGB on 5 formats, all within 1 LSB of the reference, 1.3 to 1.9 ms per 1080p job
  • no DART faults; the device runtime-suspended, and rmmod was clean
  • v4l2-compliance 47/48 (the one failure, S_FMT ycbcr_enc capture != output, is a driver item for media: apple: add a scaler/CSC (MSR) mem2mem driver #1162)

The first attempt, which enabled only the scaler and the DART, failed with deferred probe timeout on the DART and -ENODEV: no IOMMU on the scaler, because both domains were still disabled. That is why the domains are enabled here too.

The DART's domain

The DART uses ps_msr0_dart, which labels the same node as ps_msr0. The MSR0-DART gate has no power-state register of its own. It is a child of MSR0, so this is correct as is and needs no new node. The same holds for MSR1-DART on the M4 Max.

Not in this PR

  • J614s and J773s share the die but have not run the scaler, so their nodes stay disabled.
  • The M4 Max scalers (t6041-j614-j616-j575-scaler.dtsi) and every other SoC stay described-only until someone tests them.

Checks

apple-dt-check.sh against integration/aurora 72b828e: W=1, 122/122 DTBs, make rc=0/0, 443/443 inherited warning lines, new warnings: 0, removed: 0; no bindings touched. The only DTB change is these four status lines in t6040-j616s.dtb.

🤖 Generated with Claude Code

The MSR scaler/CSC block, its DART and the two PMGR domains it sits in
(msr0 and msr0_ase_core) are already described in the T6040 tree, all
disabled. Enable them on the J616s, where the scaler driver ran on this
exact device tree: hardware version 21 probed, NV12/P010 to and from
ARGB/XRGB within 1 LSB of the reference, 1.3 to 1.9 ms per 1080p job,
no DART faults, and the device runtime-suspended and unloaded cleanly.

The DART needs no separate domain: its MSR0-DART gate has no power
state register of its own and is a child of msr0, which is why
ps_msr0_dart labels the same node.

The other T6040 boards share the die but have not run it yet, so they
keep the nodes disabled for now.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide merged commit 46e4a69 into integration/aurora Nov 7, 2026
2 checks passed
@RyanTheTide
RyanTheTide deleted the dt3/j616s-scaler-enable branch November 7, 2026 18:44
RyanTheTide added a commit that referenced this pull request Nov 7, 2026
Brings aurora-wip up to the 11-08 morning integration tip: DT
descriptions for every Mac family (#1094, #1097, #1111, #1131, #1132,
#1148, #1149, #1155, #1156, #1157, #1172), the J616s scaler (#1168), the
panel primaries from boot data (#1105), AVD macOS command parity
(#1116), AVD dma-coherent (#1169), the M2 PMU RTC alarm (#1151), G17
admission without spinning (#1146) and the AOP map wait (#1147).

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant