Repository navigation
J473: HDMI on dcp, USB-C on dcpext (DSC, 280 Hz/10-bit on USB-C) - #3405
Conversation
A primary DCP can own a fixed HDMI route (dptxphy in its device tree node), not only Type-C display routes. Firmware 27 then serves its DPTX ports exactly as on dcpext, but three checks only looked at dcpext or Type-C routes: the DPTX endpoint layout, the 'port not announced yet' wait and the EPIC identity tolerance. Key them on the device tree instead: dcpext, Type-C routes or a fixed PHY. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
macOS 27.2 on the M2 Mac mini drives the HDMI port (DP to HDMI converter behind dptxphy) from the primary DCP and the USB-C ports from dcpext. Only dcpext offers DSC here: macOS runs a DSC 1.2 sink on USB-C at 2560x1440@240/280 Hz, while the primary DCP reads no DSC caps and its internal pipe shows only part of the frame at 240 Hz. Use the T8112 default Type-C routing (dcpext, t8112-jxxx.dtsi) and move the HDMI connector to dcp. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
There was a problem hiding this comment.
Verdict: MERGE at c8e5198159c8
Blockers: None (wait for queued CI checks to finish green; coordinate Stage 2 release with aura#544 so the J473 Stage 2 DTB and boot display move together).
Checked:
- Driver helper (
drivers/gpu/drm/apple/dcp-internal.h,dcp.c,dptxep.c,afk.c):dcp_has_external_output()(dcp->dcpext || dcp->nr_typec_routes || dcp->fixed_phy) cleanly generalizes firmware-27 DPTX endpoint layout (dcp_v27_dptx_layout()), unannounced DPTX port tolerance (dptxep_init()), and EPIC identity tolerance (afk_recv_handle_init()) to primary DCPs owning a fixeddp-phy. Verifieddcp->fixed_phy = dcp->phyis populated indcp_probe()(dcp.c:8847) beforedcp_start()runs any of these three sites, and internal-panel DCPs withoutdp-phyare unaffected. - J473 DT (
arch/arm64/boot/dts/apple/t8112-j473.dts): Dropping#define T8112_TYPEC_DCPcleanly restores the sharedt8112-jxxx.dtsiUSB-C routing on&dcpext(matching J413), moves HDMI (HDMI-A, HPD/power GPIOs,dptxphy,apple,dptx-phy = <5>) to&dcp, reorders&displayiommus(&disp0_dartfirst), switches&framebuffer0power domains to<&ps_disp0_cpu0>, <&ps_dptx_ext_phy>, and drops/delete-property/ apple,always-ononps_disp0_sys/ps_disp0_fe.t8112-j473-fw27.dtsinherits the change cleanly, and mergec8e51981keepsmain's AOP-disabled and RTC changes intact. - Exact-head hardware evidence: J473 (macOS 27.2,
c8e51981+aurawith#544, rowdsc1-a, 2026-11-29) PASS: Enforcing, 0 failed units, HDMI ondcp(1920x1080@180 10 bpc HDR PQ), USB-C ondcpextreading DSC 1.2 caps (8 slices) with 2560x1440@60/120/144/165 SDR & BT.2100 PQ 10 bpc,vrr_capable=1, both DP audio sinks, dual modeset + DPMS, ands2idle3/3 (rtc1). - Checked for Apple material, tool attribution, private serials, and board/SoC/firmware gating: clean (pure DT-driven property).
Evidence
- Head:
c8e5198159c8(base: main,mergeable: MERGEABLE,+33/-92across 5 files). - Hosted CI at
c8e51981:5P/0 real failures/23Q(earlierreadiness/pr-textruns cancelled and re-queued;apple-build,dt-checks,host-tests,kunit, and KUnit suites queued). - Merge order: driver commit (
ef9b0966) is standalone-safe; the J473 DT commit (ba6aa79f) must ship in Stage 2 together withaurora-silicon/aura#544.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Code-owner ping (6-point merge rule, point 6): @aurora-silicon/core @aurora-silicon/omarchy-mac @aurora-silicon/aurora-maintainers, this touches State at head c8e5198: approved by aurora-silicon-review at this head; J473 row dsc1-a PASS at this head (HDMI on dcp, USB-C on dcpext with the sink's DSC 1.2 caps, 60-165 Hz SDR + BT.2100 PQ at 10 bpc, Merge order: together with aurora-silicon/aura#544 (the J473 boot display moves to dcp in the same Stage 2). Plan: when both have CI green and no objection within 1 h, I merge this one with Known gap, not fixed here: at 2560x1440 above 165 Hz the MSI shows only a top strip on either routing, so the merged interim limit (#3457) keeps the J473's external modes at or below 2560x1440@165. New evidence today: macOS 27.2 on the same mini moves the DCP pipe clock mux (0x23b040058/70) from source 6 (144 Hz) to 5 (240/280 Hz) together with a SOC DVFS state change; on Linux the mux ignores AP writes (it reads back unchanged at once), so the pipe clock follows the SOC performance state that only the PMP sets. The fix needs the T8112 PMP running with a display vote. I'm filing it as an issue. Revert: A review or objection from any of you blocks the merge. |
|
CI note at c8e5198: |
The DPTX endpoint layout, the dcpext26 startup and the apple-dcp service-rebind host tests compile production functions that now call dcp_has_external_output(). Build them with the production helper from dcp-internal.h and the fields it reads, and extend the layout matrix with a DCP that owns a fixed DP/HDMI PHY (the M2 Mac mini's HDMI on the primary DCP), with a mutation that drops the fixed-PHY case. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Pushed 82e146e (no force push):
|
There was a problem hiding this comment.
Verdict: MERGE at 82e146ee.
Blockers: Complete hosted DT and driver checks. Coordinate the J473 Stage 2 DTB and display handoff with aurora-silicon/aura#544. Confirm the J473 result on the landing build or document source equivalence before release.
Checked: The follow-up commit adjusts four host-test files to use the production external-output predicate. The fixed-PHY route is selected through the DCP configuration. The fixture keeps pinned endpoints and internal-only processors in the matrix. I ran the exact-head matrix and confirmed it catches omission of the fixed-PHY case.
Evidence
- Exact-head DPTX layout matrix: 1,152 cases passed. The
ignore-fixed-phyvariant was rejected at the endpoint/controller assertion. - The previous J473 paired hardware result covers the earlier approved head. Hosted coverage on the forward merge remains pending.
|
Merged with |
What
On the M2 Mac mini (J473, macOS 27.2 firmware) our device tree drove the USB-C ports from the primary DCP and HDMI from dcpext. macOS on the same mini does it the other way round. The primary DCP reads no DSC capabilities from a USB-C sink, so a 2560x1440 high-refresh monitor got no DSC, no VRR range and no 10-bit above 144 Hz.
drm: apple: dcp: firmware 27 serves DPTX ports on a DCP that has a fixed DP/HDMI PHY the same way as on dcpext, but three checks (DPTX endpoint layout, the "port not announced yet" wait, EPIC identity tolerance) only looked at "dcpext or Type-C routes". A newdcp_has_external_output()keys them on the device tree: dcpext, Type-C routes or a fixed PHY. No SoC, board or firmware gate.arm64: dts: apple: t8112-j473: USB-C uses the T8112 default Type-C routing on dcpext (t8112-jxxx.dtsi, as on the J413), and the HDMI connector (HPD/power GPIOs,dptxphy) moves to dcp. The boot framebuffer follows disp0.The boot loader has to light HDMI from dcp to match: aurora-silicon/aura#544. Merge order: the driver commit is safe on its own. The DT commit and aura#544 must reach a Stage 2 together, because Stage 2 carries both the DTB and the boot display.
Tested
J473, macOS 27.2 firmware, MSI MPG 325CQRXF on USB-C + Acer QG270 S3 on HDMI, default cmdline, guarded one-shot restored to the saved m2combo30 afterwards:
vrr_capable=1. Both DP audio sinks named after their monitors. Dual modeset + DPMS: both back. s2idle 3/3 (rtc1), same boot, both CRTCs active with their modes after resume.Risk
Risk: two-way · J473 display routing (both ports change DCP); other boards only through
dcp_has_external_output(), which returns the same answer as before for every DCP without a fixed PHY.Not yet
Details for reviewers
dcp_v27_dptx_layout()(dcp.c), the DPTX port-announce wait in dptxep.c, and the fw27 EPIC identity tolerance in afk.c.dcp_is_internal_panel_only()is unchanged: it already returns false for a DCP withphys.