Repository navigation
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 (ce8979b1bde1 binding, 09a223842a5e 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 <noc@pimk.in> (cherry picked from commit b957bbb) [termg: kept only the entry compatible; the aperture compatible is on integration already] Signed-off-by: termg <hello@termg.com>
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 <hello@termg.com>
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 <hello@termg.com>
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 <hello@termg.com>
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 <hello@termg.com>
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 <hello@termg.com>
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 <hello@termg.com>
…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 <hello@termg.com>
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 <hello@termg.com>
|
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 <hello@termg.com>
DjDeveloperr
left a comment
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.
Assisted-by: LLM (Gemini 4 Neon)
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.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).&displaylistsdispext1_dart, which the loader enables with dcpext1, so its domain must not be disabled in the DTB (dt-checks' DART power-domain check).arm64: dts: apple: t8142-j704: Give the DCPEXT1 power states #reset-cells: required by the binding once they are enabled, as onps_sio.Depends on linux#2093 for the internal panel: the J704 DCP's
apple,clock-idscome from that tree. aura cannot publish them on T8142 (the ADT has no frequency for clock 585), and without them the DCP fails to bind (-22). The tip's default J704 tree also needs linux#2582 (and aura#398 for port 0) to boot at all: with all ofpcie0_msi,pcie0_dartandpcie2_dartenabled the kernel hangs before the console.Tested on the J704 (macOS 27.2 / 26B123 stub) with a kernel from integration/aurora plus this PR, #2093 and #2582, and aura#409 (+ aura#398) chainloaded. Both handoffs are okay, the PMP acknowledges the ATC2 request (
requests 0x4000000), andeDP-13024x1890@120 andHDMI-A-12560x1440@144 (hotplug, 41 modes) run together in KDE, with no DART faults or flip timeouts. 0 SELinux denials, 0 failed units. Found on the way: with twodisp0_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.CHECK_DTBS for t8142-j704/j813/j815: only the existing
disp0_piodmaalias-name warning.dt_binding_checkpasses for apple,atcphy and apple,t8140-pmp-report;scripts/dtc/apple-dart-pd-check.pyreports no new finding.Assisted-by: LLM (Claude:Opus 5.5)