Repository navigation
J704 (MacBook Pro 14" M5): HDMI port - #2603
Conversation
|
Nice result with both outputs running. A few small things:
Assisted-by: LLM (Claude:Opus 5.5) |
|
Assisted-by: LLM (Claude:Opus 5.5) |
|
Thanks. All four, in two new commits on top (ce8979b binding, 09a2238 DT):
CHECK_DTBS for j704/j813/j815: unchanged (only the alias-name warning); dt_binding_check, dt-check-style and yamllint pass. |
|
Thanks. That covers my points. The refused-handoff boot shows eDP alone with Assisted-by: LLM (Claude:Opus 5.5) |
|
The alias: renamed to the schema-clean AI-assisted (Assisted-by: LLM). |
|
Re-review of 5dbc6a6: No blockers.
HW row: J704 booted with the 5dbc6a6 DTB and aura#409 at d1550577. Pass: the loader resolves the PIODMA through Assisted-by: LLM (Claude:Opus 5.5) |
|
Status check against integration/aurora 4a17f73: the J704 HDMI description is not on the tip, so this is still needed, but part of it has landed from another series: the tip now has the T8142 PMP report compatible, the driver offsets (5fc679a) and a |
The T8142 report aperture is already described. Add its entry compatible, with the T8140 entry compatible as fallback. On T8142 the request and acknowledge bits are indexed by soc-device record, so say what reg means there. Signed-off-by: Dmitriy <[email protected]> (cherry picked from commit b957bbb) [termg: kept only the entry compatible; the aperture compatible is on integration already] Signed-off-by: termg <[email protected]>
A T8142 external DCP with a fixed DisplayPort route (the J704's HDMI port: dcpext1 -> ATC2) has a graph endpoint on its ATC PHY. add_dcp_components() adds every endpoint's remote node as a component of the display subsystem and skips only the T8103 and T8122 ATC PHYs, so it waits for a T8142 PHY component that never registers: neither the external nor the internal display binds. Skip apple,t8142-atcphy as well. The same check is part of Dmitriy's 3b40fa4 ("drm/apple: Admit T8142 external firmware through the common lifecycle", dmitzsaz/linux wip/j704/display); the rest of that commit is upstream in reworked form. Tested on the J704 (MacBook Pro 14-inch, M5): display subsystem bound, internal panel and an HDMI display (2560x1440@144) up together. Signed-off-by: termg <[email protected]>
Scanout and PIODMA share the first register window of disp0's DART, as the J813 tree already describes it. aura's T8142 display handoff admits a display stream only on a DART with exactly one register window: with the second window (0x286314000) it refuses the whole handoff, the internal panel included, and Linux stays on the boot framebuffer. Tested on the J704 (aurora-silicon#1180: refused with two windows; aurora-silicon#1181 on: handoff okay, internal panel on the DCP). Signed-off-by: termg <[email protected]>
T8142's ATC2 drives only the fixed DisplayPort link of the J704's HDMI port: it has no USB controller, so its node has just the core, lpdptx, axi2af and lioa banks. Allow that four-bank layout next to the USB ones. Based on Dmitriy's 7a73aeb ("dt-bindings: phy: apple,atcphy: Describe T8142 DisplayPort banks", dmitzsaz/linux wip/j704/display), reduced to what upstream's binding does not describe yet. Signed-off-by: termg <[email protected]>
The J704's HDMI port: DCPEXT1 (display crossbar source 4) drives the fixed ATC2 DisplayPort link into the on-board DP-to-HDMI converter (power SMC gP0f/gP1a, hotplug AOP GPIO 41). Add the ATC2 power states (nub PMGR; ADT ATC2_USB_AON's parent is ATC2_COMMON), the AOP pin controller, ATC2's entry (soc-device record 26) in the shared PMP report node, the DisplayPort-only ATC2 PHY, its crossbar, and DCPEXT1 with its mailbox, DART fixups, firmware-owned PMGR islands, bandwidth registers and firmware clocks (ADT dispext1 clock-ids 372/433). DCPEXT1 stays disabled until the boot loader's T8142 display handoff (aura) has checked the running firmware and enabled it. HDMI only: no Type-C routes and no display audio yet. The nodes follow Dmitriy's J704 tree (dmitzsaz/linux wip/j704/display); addresses, interrupts and GPIOs were checked against the J704 ADT. Tested on the J704 (MacBook Pro 14-inch, M5) with aura's T8142 display handoff, in the equivalent Fedora tree: dcpext1 handoff okay, eDP-1 3024x1890@120 and an HDMI display at 2560x1440@144 active together, no DART faults. CHECK_DTBS: only the alias-name warning disp0_piodma already has (dispext1_piodma is the name the boot loader looks up). Signed-off-by: termg <[email protected]>
The DisplayPort-only T8142 PHY made the fourth reg-names entry "usb2phy or lioa" for every T8142 PHY, so a six-bank PHY with lioa both fourth and sixth validated. List all six names in the five- and six-bank branch: usb2phy stays fourth there, and lioa can be fourth only on the four-bank DisplayPort-only PHY. That PHY drives a fixed link without a Type-C connector, so require orientation-switch only on PHYs with a usb2phy bank. mode-switch stays required: the DCP selects DisplayPort through the PHY's mux. Signed-off-by: termg <[email protected]>
ATC2 drives only the fixed DisplayPort link into the HDMI converter; no Type-C connector is attached, so nothing orients it. Keep mode-switch, through which DCPEXT1 selects DisplayPort. Tested on the J704: without orientation-switch, HDMI-A-1 at 2560x1440@144 and eDP-1 at 3024x1890@120 run together after a hotplug. Signed-off-by: termg <[email protected]>
…odma The aliases schema allows only lowercase letters, digits and '-', so dispext1_piodma added a CHECK_DTBS warning. Nothing but the loader reads it, and only aura's T8142 display handoff (aurora-silicon/aura#409) does, so give it the schema-clean name, as disp0-piodma is the canonical name of the internal display's alias. The loader looks up dispextN-piodma first and still accepts dispextN_piodma. J704 keeps disp0_piodma for now: current loaders read only that name on the T8142 internal display path. Signed-off-by: termg <[email protected]>
5dbc6a6 to
8c71deb
Compare
|
Re-checked at 8c71deb, rebased on integration/aurora. This is the rebase I asked for: the Still needed before merge: a J704 boot on this head showing the ATC2 report acknowledge arrives with the tip's report offsets (the HDMI output itself still waits on aura#409), and dt-checks, which is still queued. Assisted-by: LLM (Claude:Opus 5.5) |
|
Rebased onto integration/aurora da67077 (8c71deb), as suggested. All commits now carry only human Signed-off-bys.
Each commit builds the J704 DTB. CHECK_DTBS W=1 for t8142-j704/j813/j815: only the base J704 boot on 8c71deb merged with #2093 (kernel built from that tree, aura#409 v3 chainloaded): So the ATC2 request (bit 26) is acknowledged with the tip's report offsets and Two things I had to change in the test DTB, neither from this PR. Both also apply to integration/aurora + #2093 without this PR:
Assisted-by: LLM (Claude:Opus 5.5) |
|
Thanks, the J704 row at 8c71deb shows what was needed: the ATC2 request (bit 26) is acknowledged with the tip's report offsets, and HDMI-A-1 runs at 2560x1440@144 next to the panel with no DART faults or flip timeouts.
With dt-checks green and 1 explained, this is fine from my side. HDMI still needs aura#409 to land. Assisted-by: LLM (Claude:Opus 5.5) |
&display lists dispext1_dart, which the loader enables together with dcpext1 when it hands the external display session over (aura#409, dt_set_t8142_dcpext()). With its power state disabled in the DTB that DART would wait for its domain, and dt-checks' DART power-domain check reports it. The three DCPEXT1 states are apple,firmware-owned: the pmgr-pwrstate driver keeps them always on and never reads or changes the hardware. Leaving them enabled therefore changes nothing on the bus. Without a handoff the loader keeps dcpext1 and its DARTs disabled and prunes dispext1_dart from &display, so nothing uses them. Signed-off-by: termg <[email protected]>
|
Checked e87234c. Leaving the three DCPEXT1 power states enabled is the right fix for the dt-checks finding. For Assisted-by: LLM (Claude:Opus 5.5) |
Same boot, display: Assisted-by: LLM (Claude:Opus 5.5) |
…ells Now that they are enabled, the pmgr-pwrstate binding requires #reset-cells on them, as on the other enabled firmware-owned state (ps_sio). dt-checks counted the six missing-property warnings as new. Signed-off-by: termg <[email protected]>
There was a problem hiding this comment.
Formal review at 176e0f4ce3ab against the pre-PR checklist (§1–§6) and live integration/aurora (70a00e583b03): 1 blocking DT/bootloader chicken-and-egg bug (§1/§2/§3) + exact-head §5 evidence gap.
Blocker
-
§1 chicken-and-egg / internal-display regression under current Aura
main(arch/arm64/boot/dts/apple/t8142-j704-hdmi.dtsi:39-41):/* aura prunes a provider it leaves disabled from this list again. */ &display { iommus = <&disp0_dart 0>, <&dispext1_dart 0>; };dispext1_dartstaysstatus = "disabled"untilaurora-silicon/aura#409(still OPEN) enables it. Currentauramain(src/kboot.c:9068-9073) does not prune disabled DARTs from&display'siommus. In Linux (drivers/iommu/of_iommu.c:25-76, 147-155), whenof_iommu_configure_dev()hits the disabled second entry (dispext1_dart),of_iommu_xlate()returns-ENODEV, which aborts the loop and causesof_iommu_configure()to tear downdev->iommu/fwspeccompletely — dropping evendisp0_dartfrom&displayand breaking internal-panel scanout on every existing/released Aura bootloader withoutaura#409.aura#409already appends<&dispext1_dart 0>to&display'siommuswhen enablingdcpext1(!listed && fdt_appendprop(...)), andarch/arm64/boot/dts/apple/t8142-j813-dcpext.dtsionintegration/auroraalready keeps&displayatiommus = <&disp0_dart 0>;. Please drop the&displayiommusoverride fromt8142-j704-hdmi.dtsiso the static DT remains safe under currentauramain.
§5 Evidence Needed on Updated Head
- Head commit
176e0f4ce3ab(#reset-cells = <0>onps_dispext1_*) was pushed after thee87234c6J704 boot, and the refused-handoff test usedaura#409's pruner rather than unpatchedauramain. After dropping the&displayiommusoverride, please post an exact-head J704 boot row covering both currentauramain(confirming internal eDP-1 comes up withdisp0_dartattached and no IOMMU teardown) andaura#409(eDP-1 + HDMI-A-1 active together), with explicit regression counts (0 SELinux denials, 0 failed units, 0 new kernel errors).
Verified Clean (§2, §4, §6, CI)
drivers/gpu/drm/apple/apple_drv.c: skippingapple,t8142-atcphyinadd_dcp_components()is correct;drivers/phy/apple/atc.chandles 4-bankdp_onlyT8142 PHYs cleanly.apple,atcphy.yaml(4-bank DP-only layout,usb2phypinned fourth on 5/6-bank USB PHYs,orientation-switchrequired only withusb2phy) andapple,t8140-pmp-report.yaml(apple,t8142-pmp-v2-report-entrywith T8140 fallback) are clean;pmp_report_atc2sits cleanly under&pmp_report.ps_dispext1_{sys,fe,cpu}areapple,firmware-owned(pmgr-pwrstate.cperforms no register accesses).- §4 attribution: Clean — all 10 commits carry human author/committer + human
Signed-off-by:only (preserving Dmitriy's authorship/sign-off on commit 1), zero AI commit trailers, disclosure in PR body. - Live CI:
host-testsanddt-checksare green at176e0f4ce3ab. - Non-blocking nit: When updating the branch, consider folding the in-PR fixup commits (
78549a1d,bca6c112,8c71debb,e87234c6,176e0f4c) into the commits they fix so the commit history is clean.
Superseded by the review at 899dc80
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: approve at 899dc80a4ca5. Both blockers from my earlier review are resolved, so I'm dismissing it.
Blocker 1 (the &display iommus override): fixed in 899dc80a.
- The override is gone, so
&displaykeeps onlydisp0_dart. - aura appends
dispext1_dartitself when it hands dcpext1 over (dt_set_t8142_dcpext()). - The DCPEXT1 power-state comment now says why the firmware-owned states stay enabled without relying on the override.
Blocker 2 (J704 row): covered. Your J704 boots at this head show:
- On today's aura
main: the internal panel is up (eDP-1 3024x1964@120). Sincemainalready hands dcpext1 over, HDMI-A-1 runs at 2560x1440@144 too. - With aura#409:
/display-subsystemiommuslistsdisp0_dartplus thedispext1_dartthat aura appended, and both outputs run. - On both: 0 DART faults, 0 flip timeouts, 0 failed units and 0 AVC denials.
Correction to my earlier "rows before merging": I asked for a boot on a second generation because of apple_drv.c. That wasn't needed. The change only adds apple,t8142-atcphy to the list of ATC PHY ports that add_dcp_components() skips, and no other generation's DT has that compatible. So the J704 row is the only one this PR needs.
Checked: CHECK_DTBS for j704/j813/j815 shows only the existing disp0_piodma alias warning, and dt_binding_check passes for both bindings.
Before merge: every CI check at this head shows CANCELLED (the 14:28 run), so CI needs a fresh run, and it must be green before this merges. Merging is left to the PR Merge Lane.
# Conflicts: # arch/arm64/boot/dts/apple/t8142-j704.dts
|
Forward-merged |
There was a problem hiding this comment.
Verdict: Hold at 6880cfd93b3d for integration and CI.
Blockers: The reported J704 result uses both linux#2093 and aura#409. Both are open. Please retain the dependency order in the merge plan and verify the final combination boots with both internal and HDMI displays. The required host-tests job failed in setup (exit 100), so rerun after the runner dependency issue is resolved.
Checked: The binding separates the fixed DP-only four-bank form from the USB form, and the component skip uses an IP compatible rather than a board name. DT checks, Apple build and KUnit are green. Linux #2582 and aura#398 are already merged. Record the exact DTB and boot chain used for the final J704 row.
|
J704 at Details (2026-11-27, HDMI display connected before boot):
The same chain and kernel with the monitor plugged in after boot (#1230) hotplugged to 2560x1440 the same way. |
|
Could a maintainer re-run The J704 row at this head is above (#1231), and the description now follows What / Tested / Risk / Not yet, with the merge order after linux#2093 (+ aura#545). |
There was a problem hiding this comment.
Verdict: MERGE at 6880cfd after Linux #3417 and a clean check against the live base.
Checked: The hosted host-tests rerun passes on this SHA, along with dt-checks, apple-build and KUnit. The fixed DP PHY keeps the mode switch, uses the four-bank register form, and leaves orientation required for the USB bank form. The display node retains just its internal DART until the loader appends the external DART. The author reports internal and HDMI scanout, hotplug and zero DART faults on the combined J704 boot. I compared the DCP clock diff: #3417 carries the same display clock properties and provider nodes used by the earlier #2093 test stack. Keep the kernel clock prerequisite in the merge order and use the combined row as integration evidence.
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at |
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
Hosted Ubuntu 24.04 runners pre-install third-party apt sources such as packages.microsoft.com under /etc/apt/sources.list.d/. Workflows that pass -o APT::Update::Error-Mode=any abort with exit code 100 whenever one of those unused repositories returns a transient 403/5xx (observed on PR aurora-silicon#3270 and PR aurora-silicon#2603). Drop non-ubuntu.sources files from /etc/apt/sources.list.d/ before apt-get update and pass -o Acquire::Retries=3 to apt-get update/install across the Ubuntu runner workflows. All packages installed by these workflows come from the standard signed Ubuntu archives. Also update tools/asahi/run-host-tests.py so failed suites print any 'not ok ' TAP lines before the 40-line log tail; previously a failure early in a long suite like apple-dcp scrolled off the tail and could not be identified without downloading the artifact zip. Signed-off-by: Ryan Murray <[email protected]>
What: The J704's HDMI port, with the boot loader's T8142 display handoff (aurora-silicon/aura#409). DCPEXT1, display crossbar source 4, drives the fixed ATC2 DisplayPort link into the on-board DP-to-HDMI converter (power SMC gP0f/gP1a, hotplug AOP GPIO 41). Based on @dmitzsaz's J704 work (
dmitzsaz/linuxwip/j704/display); the HDMI driver side and the T8142 PMP report (5fc679a, d32242d) are already in integration/aurora. Based on integration/aurora da67077.Tested: J704 (MacBook Pro 14" M5) at
6880cfd9, boot #1231 (#2603 (comment)): with the closed linux#2093 (which carried linux#3417's commit) and aura#409 + aura#545 (the test tree's copy of this PR's files is identical to6880cfd9), both handoffs okay, eDP-1 3024x1964 and HDMI-A-1 2560x1440@144 at once in KDE with HDMI connected at boot, hotplug in and out, 0 DART faults, 0 flip timeouts, 0 failed units, 0 SELinux denials. CHECK_DTBS for t8142-j704/j813/j815: only the existingdisp0_piodmaalias-name warning;dt_binding_checkpasses for apple,atcphy and apple,t8140-pmp-report;scripts/dtc/apple-dart-pd-check.pyreports no new finding.Risk: two-way door · J704 (DT, bindings);
drm/appleskips the T8142 ATC PHY inadd_dcp_components()by its IP compatible, which no other Mac's DT has.Not yet: HDMI audio. Merge order: after linux#3417 (the J704 DCP's
apple,clock-ids, split out of the closed linux#2093; aura cannot publish them on T8142, as the ADT has no frequency for clock 585, and without them the DCP fails to bind, -22). HDMI needs aura#409 for the handoff; with today's auramain(which already hands dcpext1 over) the internal panel and HDMI work too (#1225).Details
dt-bindings: power: apple,t8140-pmp-report: Add the T8142 report entry(Dmitriy): the entry compatible, with the T8140 entry as fallback, and whatregmeans on T8142.drm/apple: Leave the T8142 ATC PHY out of the display components: dcpext1's graph endpoint is its ATC PHY.add_dcp_components()skipped only T8103/T8122 PHYs, so the display subsystem waited for a component that never registers, and neither display bound (from Dmitriy's 3b40fa4).arm64: dts: apple: t8142-j704: Give disp0_dart one register window: the handoff in aura#409 admits a stream only on a single-window DART (J813 already has one). Safe with the current aura.dt-bindings: phy: apple,atcphy: Allow a DisplayPort-only T8142 PHY: ATC2 has only core, lpdptx, axi2af and lioa (reduced from Dmitriy's 7a73aeb).arm64: dts: apple: t8142-j704: Add the HDMI port: ATC2 power states (nub PMGR; ADT ATC2_USB_AON's parent is ATC2_COMMON), AOP pinctrl, the ATC2 entry (report@1a, reg 26) under the existing&pmp_report, the DisplayPort-only ATC2 PHY, the crossbar, and DCPEXT1 (disabled until the loader enables it). HDMI only: no Type-C routes on DCPEXT1, no display audio yet.dt-bindings: phy: apple,atcphy: Keep usb2phy fourth on T8142 USB PHYsarm64: dts: apple: t8142-j704: Drop orientation-switch from the HDMI PHY(mode-switchstays: dcpext1 finds the PHY throughfwnode_typec_mux_get()).arm64: dts: apple: t8142-j704: Name the HDMI PIODMA alias dispext1-piodma(schema-clean; aura#409 looks it up).arm64: dts: apple: t8142-j704: Leave the DCPEXT1 power states enabled: they areapple,firmware-owned(always on for Linux, never touched).dispext1_dartfinds them on when the loader enables it with dcpext1 and appends it to&display'siommus(aura#409);&displayitself lists onlydisp0_dart.arm64: dts: apple: t8142-j704: Give the DCPEXT1 power states #reset-cells: required by the binding once they are enabled, as onps_sio.Found on the way: with two
disp0_dartwindows the handoff refuses the internal panel; with ATC2's USB power states in the main PMGR (they are ADT group 1, the nub PMGR)atc2-usb-aonnever reaches 0xf; without (2) the internal panel does not bind either.