Repository navigation
media: apple: scaler: add T6030, T6031, and T6032 (M3 Pro/Max/Ultra) engines - #4333
Conversation
…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>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
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.
…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>
Add
apple_scaler_t6030(hw_version = 17,num_reg = 4,.msr20 = false) andof_matchentries forapple,t6030-scaler,apple,t6031-scaler, andapple,t6032-scalerinapple-scaler-drv.c.All T603x scaler and DART device tree nodes and
apple,scaler.yamlcompatible strings are already enabled onmain; only the driver match entries andhw_version = 17variant descriptor were missing.Refs #2804.
Tested: Hardware-verified on a T6030 MacBook Pro 16" (J516s) at PR head
02e1d6b5d42d(apple-scaler-drv.cblobd9024ee078e458096e9b18debb4129325707343b, all 9 files underdrivers/media/platform/apple/scaler/identical to02e1d6b5d42d; built againstmain16a732e9c8e0asapple-scaler.kosha2565759cf2b151856f63a1b07b344d625e2207db3d65f7f41412ceb711f417de453, ELF Build ID9a4badcec15bb861947168f63a4611e6864261fc). Verifiedapple-scaler 391000000.scaler: MSR hardware-version 17, id 0x40d0041, stale status 0x0registering/dev/video14, V4L2 M2MNV12M -> ARGB32conversion at640x480and1920x1080with exact pixel verification ((128,128,128,255)/(255,255,255,255)), runtime PM transition tosuspended, and identical post-sleep output after committeddeepsleep (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_matchentries and a small variant struct without changing behavior on existing M1/M2/M3/M4/M5 scaler variants.