Repository navigation
drm/apple: dts: apple: t6031: fix disp-0..disp-4 ADT layout and enable dcpext0 on 27.2 - #4359
Conversation
In the T6031 ADT, /arm-io/disp0 exposes five display register windows (disp-0 as a single 0x4000000 aperture, disp-1..disp-3, and disp-4 at 0x2903d0000 for the PMP bandwidth update window). t6031-dcp.dtsi split disp-0 into two 0x690000 windows as on T6030, shifting disp-4 to 0x386800000 and apple,bw-scratch to index 5. Firmware 27.2 queries D003 (rt_bandwidth) and then maps reg index 4 via D411 (map_reg[4]); with index 4 pointing at 0x386800000 instead of 0x2903d0000, writing the bandwidth dashboard offset during active-link power-off hit an invalid fabric address and raised an EL1h SError (ESR=0xffffffffbe000000). Align dcp reg/reg-names with the T6031 ADT and point apple,bw-scratch at disp-4 (index 4). Signed-off-by: Acelogic <miguelc4600@gmail.com>
Enable the first external display processor (dcpext0, 306c00000.dcp) on T6031 (M3 Max) when running the pinned macOS 27.2 (26B123) DCP firmware image alongside a handed-over internal display: - dt-bindings: document apple,t6031-dcpext-firmware-ready on apple,dcp. - include/linux/soc/apple/display.h: add apple_t6031_dcp_v27_2() and apple_t6031_dcpext_v27_2() pinned to the 26B123 DCP image UUID. - display-gate: admit T6031 dcpext0 through the shared-image gate when the boot loader marks apple,t6031-dcpext-firmware-ready, enabling its PMP report entry (report@11), raising dispext0_fe/dispext0_cpu min state to active, keeping the 3-port ATC crossbar array sized for T6031, and propagating the inherited display scanout window. - appledrm: add apple_dcp_hw_t6031_dcpext and firmware-27 admission / clock-table / failsafe / 41-bit DMA setup matching T8122 dcpext. - dts (t6031-dcp.dtsi, t6031-j516c.dts): keep apple,dma-range on display-subsystem, describe dcpext0 using its 5-window ADT layout (disp-0..disp-3 + disp-4 bw-scratch at 0x1210), and wire USB-C Type-C DP routes on typec0/typec1/typec2. - selftests: include the T6031 display.h helpers in apple-dcp/boot.py. Signed-off-by: Acelogic <miguelc4600@gmail.com>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: MERGE at 3917a28
Checked: The T6031 gate requires the internal handoff, the loader's reservation marker and the matching firmware image before any changeset is applied. The compiled J516c tree leaves dcpext0 disabled by default and resolves its three Type-C routes, CPU and front-end power states, mailbox, DARTs and PMP report entry to the intended suppliers. Verified that the hardware descriptions select the route topology and that the bandwidth scratch index matches the register ordering.
The exact J516c DTB compiled and passed the affected schema checks. The readiness schema accepts 1 and 2 and rejects 3. Both T6030 comparison DTBs are byte-identical to base. The submitted admission and handoff fixtures passed, and I replayed the admission checks against T6031 to confirm the pinned image is accepted while missing, mismatched and legacy firmware is refused. Review was offline.
Follow-ups: The two T6030 comparison trees emit the same pre-existing disabled-node schema diagnostics at base and head.
|
Hardware verification at exact head
|
There was a problem hiding this comment.
Reviewed 3917a28b13ad. The T6031 gate requires the internal display handoff, the loader's reservation marker, and the pinned 27.2 image before applying the external display changeset. The J516c DT leaves the external DCP and its routes disabled until that gate opens. The T8122 14.7 path still uses its PIODMA window, and the T8122 27.2 path still takes the alias from the internal DCP.
All six host boot fixtures passed at this head, including panel handoff and T8122 27.2 admission. The seven PR files are byte-identical in the clean integration tree on d3e72a1b7901. The J516c hardware receipt is in place. The J613 shared-path hardware receipt is still due before merge.
The current landing tree on Linux main 3ee509d6a44a is a2d29c81d820 and still preserves all seven PR blobs. For the outstanding J613 comparison, use that main as control and the clean landing tree as candidate, with the same merged Aura #675 Stage 2, stub and external display. Check visible external output and an off/on transition where supported, record both kernel identities and any DCP or DART errors, and verify stock return. The readiness comment credits the J516c result. This J613 shared-path result remains the merge gate.
|
Tested J613 (T8122, macOS 27.2 / 26B123) shared-path control row at exact heads:
Results
|
The 120 Hz-only mode lock (.only_120hz_modes = true) on apple_dcp_hw_t6031 worked around DCP crashes when switching away from the iBoot panel timing on firmware 27.2. Commit 11306b4 ("Merge pull request aurora-silicon#4359 from aurora-silicon/feat/t6031-v27-2-dcpext") fixed t6031-dcp.dtsi's missing 5-window disp-0..disp-4 ADT layout, which was the underlying cause of mode-set instability on T6031. Drop .only_120hz_modes from apple_dcp_hw_t6031 (leaving T6030 and T6050 unchanged), update the comment in iomfb.c, and assert the T6031 profile exposes all fixed rates in dcp-firmware-test.c. Verified on J516c (MacBook Pro 16" M3 Max, T6031, macOS 27.2 / 26B123) with dual-display DP-1 4K60 active: live modesets across 120, 60, 59.94, 50, 48, and 47.95 Hz, DPMS OFF -> ON at 60 Hz, and 60 -> 120 Hz return all succeed with 0 DCP crashes, 0 SErrors, and 0 DART faults. Signed-off-by: Acelogic <miguelc4600@gmail.com>
Fix the T6031 display register window mapping (
disp-0..disp-4) to match the T6031 ADT, and enable the first external display processor (dcpext0,306c00000.dcp) on T6031 (M3 Max) when running the pinned macOS 27.2 (26B123) DCP image alongside a handed-over internal panel.Companion bootloader PR: aurora-silicon/aura#675
Related issue: #4021
Summary
arm64: dts: apple: t6031-dcp: match ADT disp-0..disp-4 register windows/arm-io/disp0and/arm-io/dispext0expose 5 register windows (disp-0unsplit0x4000000,disp-1..3, anddisp-4 = 0x2903d0000for the PMP bandwidth update window).t6031-dcp.dtsihad a splitdisp-0/disp-1(0x690000each) copied from T6030, shiftingdisp-4to0x386800000andapple,bw-scratchto index 5.D003and then maps reg index 4 viaD411(map_reg[4]); writing the bandwidth slot offset during active-link teardown (power on -> off) hit0x3X6801208/0x3X6801210(confirmed in theCasCcrashlog register) and triggered an EL1h fabric SError (ESR=0xffffffffbe000000).t6031-dcp.dtsiwith the T6031 ADT (disp-0..disp-4,apple,bw-scratchindex 4).drm/apple: dts: apple: t6031: enable dcpext0 external display on 27.2apple,t6031-dcpext-firmware-readyinapple,dcp.yaml.apple_t6031_dcp_v27_2()andapple_t6031_dcpext_v27_2()pinned to the26B123DCP UUID ininclude/linux/soc/apple/display.h.dcpext0indisplay-gate.c(enablingreport@11, raisingdispext0_fe/dispext0_cpumin-state to active, keeping the 3-port ATC crossbar array sized for T6031, propagating the inherited scanout alias window).apple_dcp_hw_t6031_dcpextand firmware-27 admission / clock-table / failsafe / 41-bit DMA support indcp.c.dcpext0and USB-C Type-C DP routes (typec0..2) int6031-dcp.dtsiandt6031-j516c.dts, keepingapple,dma-rangeondisplay-subsystem.tools/testing/selftests/drivers/gpu/apple-dcp/boot.pywith the T6031display.hhelpers.Tested:
python3 tools/testing/selftests/drivers/gpu/apple-dcp/run.py103/103 PASS;make W=1 drivers/soc/apple/display-gate.o drivers/gpu/drm/apple/dcp.o0 warnings.apple,t6031, macOS 27.2 /26B123stub, companionaura#675, LG 32" 4K USB-C DP monitor ontypec0):3840x2160@60: 30/30 event-paced flips PASS (60.00 Hz) + simultaneouseDP-13456x2234@120(10/10) +DP-14K60 (10/10).DPMS off(2560x1440@60 -> OFF): PASS (completeLink(),ioav i/f is now closed!).DPMS on -> 3840x2160@60: 30/30 flips (59.91 Hz).4K60 -> 2560x1440@60 -> 1920x1080@120 -> 3840x2160@60: 30/30 flips each (59.88/119.87/59.94 Hz).s2idle(rtcwake -m freeze -s 8) underplasmalogin: PASS, botheDP-1andDP-1restored cleanly, post-resume 20/20 flips onDP-14K60 and 20/20 oneDP-1120 Hz.Risk: two-way · T6031 (M3 Max) — scoped to T6031
dcp/dcpext0DT and display-gate/appledrm 27.2 admission (leaves T6031dcpext0disabled without theaura#675firmware-ready marker and leaves T8122/T6030 paths unchanged).