Skip to content

J473: HDMI on dcp, USB-C on dcpext (DSC, 280 Hz/10-bit on USB-C) - #3405

Merged
RyanTheTide merged 5 commits into
mainfrom
m2mdf/j473-hdmi-dcp-usbc-dcpext
Nov 29, 2026
Merged

RyanTheTide merged 5 commits into
mainfrom
m2mdf/j473-hdmi-dcp-usbc-dcpext

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

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 new dcp_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.
  • Main merged in (c8e5198 and 82e146e, no rebase). be75e7e teaches the host-test harnesses the new helper (and adds a fixed-PHY case and mutation to the layout matrix). The DT conflict with arm64: dts: apple: alias SMC RTC as rtc0 ahead of read-only PMU RTC #3482/drm/radeon: restore PCI remove callback and clean up unload order #3485 (RTC aliases, AOP off on the mini, dpaudio0 on by default) is resolved by keeping main's AOP and RTC changes.

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:

  • J473 at 82e146e (this head) + aura#544 head c2bb3812, row dsc5-a, 2026-11-29: pass, boot Enforcing, 0 failed units; same results as dsc1-a below (MSI 60-165 Hz SDR + BT.2100 at 10 bpc, sink DSC 1.2 caps, vrr_capable=1, both audio sinks named, dual modeset + DPMS, s2idle 3/3, 0 DCP crashes).
  • J473 at c8e5198 + aura 1c70ab57 with ASoC: tas2764: do not log a probe deferral as an error #544, row dsc1-a, 2026-11-29: pass, boot Enforcing, 0 failed units. Acer on dcp at 1920x1080@180, 10 bpc, HDR PQ. MSI on dcpext: firmware reads the sink's DSC 1.2 caps (8 slices; version 0 on the primary). 2560x1440 at 60/120/144/165, each SDR and BT.2100 PQ, all modesets succeed at 10 bpc; HDR metadata and BT2020 colorspace read back. DP-2 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.
  • ba6aa79 (previous head, main 7b54882), 2026-11-28: without the drm: apple: interim: refuse external modes beyond the v27 provider clock #3457 limit the MSI booted at 2560x1440@280 with DSC, live 240/280 switches SDR and HDR all DSC=YES, VRR range 48-280 Hz in the timings.
  • J616s (M4 Pro, T6041) at c8e5198, kernel-only, row j616s-a, 2026-11-29: pass, internal eDP mode list and DCP firmware lines unchanged, 0 failed units.
  • checkpatch --strict clean; dtbs_check for t8112-j473(-fw27)/j413: no new warnings.

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
  • Sites changed: 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 with phys.
  • Evidence: traces/display/20261129-j473-dsc/dsc1-a (lab store).

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>
@RyanTheTide
RyanTheTide marked this pull request as ready for review November 29, 2026 06:11
@RyanTheTide
RyanTheTide requested review from a team as code owners November 29, 2026 06:11

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 fixed dp-phy. Verified dcp->fixed_phy = dcp->phy is populated in dcp_probe() (dcp.c:8847) before dcp_start() runs any of these three sites, and internal-panel DCPs without dp-phy are unaffected.
  • J473 DT (arch/arm64/boot/dts/apple/t8112-j473.dts): Dropping #define T8112_TYPEC_DCP cleanly restores the shared t8112-jxxx.dtsi USB-C routing on &dcpext (matching J413), moves HDMI (HDMI-A, HPD/power GPIOs, dptxphy, apple,dptx-phy = <5>) to &dcp, reorders &display iommus (&disp0_dart first), switches &framebuffer0 power domains to <&ps_disp0_cpu0>, <&ps_dptx_ext_phy>, and drops /delete-property/ apple,always-on on ps_disp0_sys/ps_disp0_fe. t8112-j473-fw27.dts inherits the change cleanly, and merge c8e51981 keeps main's AOP-disabled and RTC changes intact.
  • Exact-head hardware evidence: J473 (macOS 27.2, c8e51981 + aura with #544, row dsc1-a, 2026-11-29) PASS: Enforcing, 0 failed units, HDMI on dcp (1920x1080@180 10 bpc HDR PQ), USB-C on dcpext reading 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, and s2idle 3/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/-92 across 5 files).
  • Hosted CI at c8e51981: 5P/0 real failures/23Q (earlier readiness/pr-text runs 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 with aurora-silicon/aura#544.

@github-actions github-actions Bot added area:display Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, 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) labels Nov 29, 2026
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Merge readiness at 82e146ee: 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 82e146ee
Conflicts ok none
PR text ok Risk: two-way · J473 display routing (both ports change DCP); other boards only through dcphasexternaloutput(), which returns the same answer as before for every DCP without a fixed PHY.

Areas: area:display, area:gpu, area:platform

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

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Code-owner ping (6-point merge rule, point 6): @aurora-silicon/core @aurora-silicon/omarchy-mac @aurora-silicon/aurora-maintainers, this touches drivers/gpu/drm/apple/ and arch/arm64/boot/dts/apple/t8112-j473.dts (owned by your teams).

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, vrr_capable=1, dual DPMS, s2idle 3/3); J616s (M4 Pro) regression row j616s-a PASS (kernel-only, internal eDP mode list and DCP firmware lines unchanged). checkpatch --strict clean; dtbs_check warning set identical to main. Hosted CI is running.

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 --admin under the 6-point rule, then aura#544.

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: git revert -m1 <merge commit> (together with reverting aura#544 in the next Stage 2).

A review or objection from any of you blocks the merge.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

CI note at c8e5198: apple-build, dt-checks and host-tests failed in their apt setup step on the hosted runner (E: Failed to fetch ... InRelease Could not wait for server fd, exit 100), before any build ran. Infra, not this change. dt-checks and host-tests are re-running; apple-build re-runs when its workflow's queued KUnit jobs finish. Local on the same head meanwhile: KUnit drivers/gpu/drm/apple/tests/display.kunitconfig 168/169 pass (1 skip) and topology.kunitconfig 209/210 pass (1 skip), arm64 QEMU; checkpatch --strict clean; dtbs_check warning set identical to main for t8112-j473, t8112-j473-fw27 and t8112-j413.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Nov 29, 2026
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>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Pushed 82e146e (no force push):

  • be75e7e tools: host tests: model dcp_has_external_output(): the real host-tests failures at c8e5198 were three harnesses that compile the changed functions without the new helper (dcp-v27-dptx-layout-tests, dcpext26-startup-tests, apple-dcp service-rebind: implicit declaration of dcp_has_external_output). They now build the production helper from dcp-internal.h. The layout matrix gains a fixed-PHY dimension (1152 cases) and a new ignore-fixed-phy mutation; all 5 mutations are killed by assertions.
  • Merge of main 965d4a7 (picks up fca5d91, which fixes the pre-existing g17-compute-owed-stamp-tests failure that came with the old base).
  • The PR's driver/DT diff against main is unchanged; only a hunk offset in dcp-internal.h moved.
    Local at 82e146e's tree: host tests --only dcp 66/66, dptx 9/9, afk 2/2, apple-dcp 1/1 pass. A J473 row at this head is building now.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-phy variant 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.

@github-actions github-actions Bot added the area:gpu Area from CODEOWNERS (bot) label Nov 29, 2026
@RyanTheTide
RyanTheTide merged commit a03face into main Nov 29, 2026
37 of 50 checks passed
@RyanTheTide
RyanTheTide deleted the m2mdf/j473-hdmi-dcp-usbc-dcpext branch November 29, 2026 18:11
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merged with --admin under the 6-point rule, all at head 82e146e: (1) aurora-silicon-review APPROVED at this head; (2) hosted CI green (every check passed; readiness is the label bot); (3) J473 row dsc5-a at this head with aura#544; (4) regression: J616s (M4 Pro) row j616s-a with the same driver diff, plus J473 rows dsc1-a/dsc3-a; (5) no open blocking review; (6) code-owner ping 18:38, no objection. aura#544 merges next so the J473's Stage 2 gets both together.
Revert: git revert -m1 a03face5 (and revert aura#544 in the same Stage 2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:display Area from CODEOWNERS (bot) area:gpu Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (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