Skip to content

media: apple: scaler: add T6030, T6031, and T6032 (M3 Pro/Max/Ultra) engines - #4333

Merged
DjDeveloperr merged 1 commit into
mainfrom
feat/t603x-scaler
Dec 4, 2026
Merged

DjDeveloperr merged 1 commit into
mainfrom
feat/t603x-scaler

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Add apple_scaler_t6030 (hw_version = 17, num_reg = 4, .msr20 = false) and of_match entries for apple,t6030-scaler, apple,t6031-scaler, and apple,t6032-scaler in apple-scaler-drv.c.

All T603x scaler and DART device tree nodes and apple,scaler.yaml compatible strings are already enabled on main; only the driver match entries and hw_version = 17 variant descriptor were missing.

Refs #2804.

Tested: Hardware-verified on a T6030 MacBook Pro 16" (J516s) at PR head 02e1d6b5d42d (apple-scaler-drv.c blob d9024ee078e458096e9b18debb4129325707343b, all 9 files under drivers/media/platform/apple/scaler/ identical to 02e1d6b5d42d; built against main 16a732e9c8e0 as apple-scaler.ko sha256 5759cf2b151856f63a1b07b344d625e2207db3d65f7f41412ceb711f417de453, ELF Build ID 9a4badcec15bb861947168f63a4611e6864261fc). Verified apple-scaler 391000000.scaler: MSR hardware-version 17, id 0x40d0041, stale status 0x0 registering /dev/video14, V4L2 M2M NV12M -> ARGB32 conversion at 640x480 and 1920x1080 with exact pixel verification ((128,128,128,255) / (255,255,255,255)), runtime PM transition to suspended, and identical post-sleep output after committed deep sleep (rtcwake -m mem -s 15, success=1). Confirmed MSR17 works cleanly with .msr20 = false.
Risk: two-way · T603x (M3 Pro/Max/Ultra) — adds three T603x of_match entries and a small variant struct without changing behavior on existing M1/M2/M3/M4/M5 scaler variants.

…engines

Match apple,t6030-scaler, apple,t6031-scaler, and apple,t6032-scaler in
apple-scaler-drv using a new hardware-version 17 variant with four
register ranges (0x30000 MSR aperture, PIODMA/DART-side ranges, and the
fourth PMGR-facing range) and the pre-MSR20 common job layout.

The T6030, T6031 (also used by T6034), and T6032 scaler and DART DT
nodes are already enabled and listed in apple,scaler.yaml, and hardware
testing on J516s (T6030) confirms MSR17 completes NV12M -> ARGB32 jobs
cleanly without the MSR20 control block both before and after deep sleep.

Signed-off-by: DjDeveloperr <hey@djdev.me>
@DjDeveloperr
DjDeveloperr requested review from a team as code owners December 4, 2026 15:37
@github-actions github-actions Bot added area:media Area from CODEOWNERS (bot) blast:m1 Macs affected, from Merge risk (bot) blast:m2 Macs affected, from Merge risk (bot) blast:m3 Macs affected, from Merge risk (bot) blast:m4 Macs affected, from Merge risk (bot) blast:m5 Macs affected, from Merge risk (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 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Merge readiness at 02e1d6b5: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at 02e1d6b5
Conflicts ok none
PR text ok Risk: two-way · T603x (M3 Pro/Max/Ultra) — adds three T603x ofmatch entries and a small variant struct without changing behavior on existing M1/M2/M3/M4/M5 scaler variants.

Areas: area:media

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

@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) and removed needs-template PR body lacks Tested or Risk (bot) labels Dec 4, 2026

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

No blocking findings at 02e1d6b5d42d. Checked the new MSR17 match against the binding and existing T6030/T6031/T6032 nodes. Each declares a 0x30000 first aperture and four register ranges. The new variant selects the existing pre-MSR20 job path, and none of the existing matches change. The driver is byte-identical in the integration tree ef040aa46e09. The J516s checked conversions, runtime suspend and deep-wake repeat exercise the new T6030 match. Please include the combined trial kernel's commit and build ID in Testing so the hardware row can be tied to this exact driver blob.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Dec 4, 2026
@DjDeveloperr
DjDeveloperr merged commit 555aa25 into main Dec 4, 2026
14 of 15 checks passed
@DjDeveloperr
DjDeveloperr deleted the feat/t603x-scaler branch December 4, 2026 16:09
RyanTheTide added a commit that referenced this pull request Dec 5, 2026
…SIO)

Main has since added the M3, M3 Pro, Max and Ultra scaler engines
(02e1d6b, #4333), enabled the scaler nodes in the SoC files, and
reworked CAPTURE negotiation (87c6f8b, 5c61925: the requested
CAPTURE size is kept across OUTPUT changes and an unrepresentable
lossless pair is refused in TRY_FMT). The conflicting files take main's
versions, so this branch's M3 engine commit and its own CAPTURE-size
change are dropped in favour of main's.

What stays from this branch: the T6020/T6021/T6022 match entries (the
M2 engine; main enables those nodes but has no driver entry for them),
the AOP motion sensor children moved into t8112.dtsi and
t600x-j314-j316.dtsi, and the J180d die 0 SIO alias. The J413 and J316s
DTBs are unchanged against main.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:media Area from CODEOWNERS (bot) blast:m1 Macs affected, from Merge risk (bot) blast:m2 Macs affected, from Merge risk (bot) blast:m3 Macs affected, from Merge risk (bot) blast:m4 Macs affected, from Merge risk (bot) blast:m5 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant