Repository navigation
drm/apple, soc: apple: external displays on the M4 MacBook Air (J713) over USB-C on macOS 27.2 - #2673
Conversation
The Mac mini (J773g) on macOS 27.2 (26B123) runs one DCP image, UUID B3BA603C-3CA7-3E21-B393-44EB20BD2AEF, on dcp, dcpext0 and dcpext1 (its 27.2 ADT; the three share __TEXT). Its external processors are to be driven through the firmware-27 backend as the T6041's 27.2 ones are, so the display gate and the DCP driver need the same pinned admission the T6041 helpers give: the image UUID, firmware version and compatibility 27.2.0. Split the T6041 check into apple_dcp_image_v27_2(), which takes the image UUID, and add apple_t8132_dcpext_v27_2() for a J773g dcpext. It is limited to the J773g until another T8132 board's 27.2 trace shows the same interface. apple_t8132_dcpext_v27_2() is in linux/soc/apple/t8132.h, with the other T8132 board helpers: its machine check stays out of display.h, whose T6041 helpers key on the processor and its image alone (the apple-dcp boot selftest builds them with no of_machine_is_compatible()). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Diljit Singh <[email protected]>
The M4 backend (iomfb_m4.c, t8132_ext_drm.c) adopts T8132 display processors on the 26.6.2 firmware path. The Mac mini's device tree is also booted on macOS 27.2 firmware, where the boot loader leaves the main DCP running idle and hands it to nobody, and where dcpext0 is to run the firmware-27 backend instead. Make the M4 paths say so: - dcp_check_firmware_version() refuses an M4 hw-data DCP off apple_t8132_firmware_path(), before the probe claims its IOMMU domain. iomfb_m4_init() refused such firmware already, but only later. - apple_dcp_usable() leaves the main T8132 DCP out of the DRM device's components off that path, so a device tree that enables it (as the 26.6.2 HDMI work does) does not hold the DRM device up waiting for it. - dcp_is_t8132_ext() and the probe, remove and shutdown dispatch match only an M4-adopted dcpext (dcp_t8132_ext_m4_node()): a J773g dcpext with the 27.2 image (apple_t8132_dcpext_v27_2()) is neither routed through dcp_platform_probe_t8132_ext() nor caught by the T8132 Type-C, crossbar and tunnel special cases of the fabric and the DPTX service. Nothing changes on the Airs (any firmware) or on any T8132 Mac on 26.6.2. The host replays that extract dcp_is_t8132_ext() (tiled-split, dcpext26-crossbar-union) take the new helper with it; the crossbar one also checks that a J773g 27.2 dcpext takes the T6041 firmware-27 link. The apple-dcp boot selftest checks the gate both ways: a T8132 processor of the M4 backend is the M4 backend's on its firmware path, and nobody's off it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Diljit Singh <[email protected]>
…able On macOS 27.2 (26B123) the Mac mini's (J773g) external display processors run the same image as its main DCP (UUID B3BA603C), and aura hands them over the way it hands over the M4 Max Mac Studio's (J575c): firmware memory in text/data/heap regions, apple,firmware-version and -compat 27.2.0, the image UUID, and the dispextN provider clocks. Admit such a dcpext the way the T6041 27.2 dcpext is admitted: - dcp_check_firmware_version() returns firmware 27 for it, with the 27.2 method table, before the M4 hw data is looked at. That the T8132 26B123 image numbers its IOMFB methods as the T6041 and T8142 26B123 images do is assumed, not traced; the comment says so. The method table check is now one helper, dcp_v27_method_table(), shared with the existing firmware-27 and T6041 cases. - It gets apple_dcp_hw_t8132_dcpext_v27, whichever hw data its compatible matched: firmware_dma_bits 41 (the firmware DART window, 1 TiB + 64 GiB, ADT dart-dcpext0 vm-base and vm-size-23), num_dptx_ports 2, adopt_live_session (iBoot leaves it running, pre-loaded = running = 1) and sink_metadata_edid, as T6041's dcpext gets on 27.2. No sleep support. - It is a failsafe external processor and a component of the DRM device (apple_dcp_id_tbl, apple_dcp_usable()), unlike an M4-adopted dcpext. The apple-dcp boot selftest (t6041-v27-admission) now also builds dcp_v27_method_table() and the real apple_t8132_dcpext_v27_2(), with its machine check as a flag. It checks: - the J773g dcpext with the T8132 27.2 image runs the 27.2 table, on and off the M4 path; - another M4 Mac's dcpext does not; - the main DCP, the T6041 image, a missing or second UUID, and other releases are refused. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Diljit Singh <[email protected]>
The T8132 device trees describe the PMC window that holds a DCP's realtime bandwidth request slot as its last display window (disp-4, as the ADT's dispN reg[4]), and apple,bw-scratch names that window's index with the slot's node (dcpext0: 0x38282c000, 0x2c000 into it). The M4 backend reads it that way. The common path (dcp_get_disp_regs(), used by the firmware-27 backend) only accepted a slot as a window of its own right after the disp-N ones, so a firmware-27 T8132 dcpext failed to bind with "Unexpected disp_reg value in 'apple,bw-scratch': 4". Accept a slot whose index names an existing window when the slot lies inside it: no window is added, and the scratch offset is taken relative to that window, so map_reg hands the firmware the window it expects at index 4 and the D003 reply carries the slot's address. Trees that already worked are unchanged; they never named an existing index. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Diljit Singh <[email protected]>
macOS 27.2 drives the Mac mini's HDMI port from DCPEXT0 alone (4K60
without DSC, 4K120 with DSC, FRL on the PS190 converter): the LPDPTX PHY
with source select = dcpext0's dcp-index 1, the converter's rails on SMC
GPIOs 15 (hdmi_pwr_en) and 26 (dp2hdmi_pwr_en), and no Type-C crossbar
route. That is the M4 Max Mac Studio's (J575c) HDMI port: the same
converter, rails and LPDPTX PHY ("dptx-phy,t8132" in both ADTs), which
its T6041 dcpext0 drives on 27.2 as a desktop external processor.
Make the J773g's firmware-27 dcpext a desktop external processor too
(dcp->desktop_external, now the one test dcp_desktop_external() reads),
so it takes the J575c's fixed-port path rather than porting the M4
backend's (dcp_t8132_fixed_hdmi on 26.6.2):
- its fixed dp-phy is initialised and powered at probe
(dcp_desktop_probe_routes()), and the converter rails get their
100 ms before the DCP asks for the link;
- a direct crossbar link request takes the T6041 path, not the T6050
crossbar one (dcp_direct_crossbar_link()); with no crossbar or route
described it has nothing to do.
The HPD line, the rails, the PHY and the connector type come from the
device tree, as on J575c.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Diljit Singh <[email protected]>
The Mac mini (J773g) drives its HDMI port through the T8132's own LPDPTX
PHY (ADT /arm-io/dptx-phy, "dptx-phy,t8132", crossbar dfp-endpoint 4).
The M4 Max Mac Studio's HDMI PHY is the same block ("dptx-phy,t8132" in
its ADT too) and is described as the T6050 layout with the ADT's PLL
calibration. Allow apple,t8132-dptx-phy with the same fallback, and the
calibration's sixth value, RODCOROLEAKCOMP, which the driver reads
(apple,pll-rodcoroleakcomp) and the mini's ADT sets (0), where the
Studio's leaves it unset.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Diljit Singh <[email protected]>
On macOS 27.2 the Mac mini (J773g) is off the M4 26.6.2 firmware path, so the display gate did nothing for it. aura hands it over as it hands over the M4 Max Mac Studio (J575c): dcpext0's (and dcpext1's) firmware memory and firmware clocks, the main DCP left running idle, and the display subsystem and its DART enabled on iBoot's boot framebuffer, with every dcpext node left disabled for this gate. Add a J773g gate that does what gate_t6041_max_run() does for the J575c's HDMI chain: once dcpext0 has its firmware memory, the display subsystem is enabled and the image is the pinned 27.2 one (apple_t8132_dcpext_v27_2()), enable the LPDPTX PHY, dcpext0's firmware and display DARTs, its mailbox, its PIODMA child and dcpext0 in one changeset. A chain that is not all there and disabled is left alone, as there. It runs only off the M4 firmware path; on 26.6.2 the J713 dcpext route handling runs instead, unchanged. One difference from the J575c: the display subsystem's iommus become dispext0's DART rather than having it appended. The main pipe's display DART (disp0) belongs to the running main DCP, which nothing hands over on this firmware and which apple-dart never probes there; left in the iommus it would hold the display subsystem's probe forever. The main DCP's own nodes are left as the device tree has them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Diljit Singh <[email protected]>
… 27.2 On macOS 27.2 the Mac mini drives its HDMI port from DCPEXT0 alone, through the LPDPTX PHY (source select = dcpext0's dcp-index 1) and the PS190 DP-to-HDMI converter, whose rails are SMC GPIOs 15 and 26. It is the M4 Max Mac Studio's HDMI port, so describe it in the J575c's style (t6041-j575c-hdmi.dtsi), from the mini's 27.2 ADT: - dcpext0's firmware memory as three disabled apple,asc-mem placeholders named text, data and heap, for aura to fill; - the PHY (ADT /arm-io/dptx-phy, "dptx-phy,t8132", core and dptx banks at 0x39a700000/0x39a740000) in the T6050 layout with the ADT's PLL calibration, crossbar ufp-endpoint 0 (dispext0), disabled; - dcpext0 as an HDMI-A port: that PHY at crossbar output 4, hdmi_hpd on AOP GPIO 41, hdmi_pwr_en and dp2hdmi_pwr_en on SMC gP0f and gP1a; - no power domain on dcpext0, its mailbox and DARTs: no PMP runs off the M4 firmware path and iBoot leaves DISPEXT0 powered, as on the J575c (and as the 26.6.2 HDMI work found for this pipe). - DISPEXT0_FE always on: only the boot framebuffer holds it (and DISPEXT0_SYS through it), so once the display driver removes that, genpd would power the front end off under the running dcpext0. The T8132 PMGR driver leaves its auto-enable bits alone either way. Everything stays disabled: the display gate enables the chain on 27.2. The main DCP, its DARTs and the display subsystem are left as they were, so a 26.6.2 boot, whose main-DCP HDMI path enables them from the board tree, keeps them. On 26.6.2 the M4 PMGR policy still decides whether DISPEXT0_FE is Linux's at all; always-on only applies where it is and the policy does not give it to the firmware. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Diljit Singh <[email protected]>
…h slot
The firmware-27 DCP backend asks for apple,bw-scratch before it binds
("Incompatible devicetree!" without it). The T8132 internal DCP's slot is
in the PMC window it already has as disp-4: bandwidth agent 0, the one the
ADT's /arm-io/disp0 bw_req interrupt (BIRQ 0x35) names in the PMGR
bwr-agent table, 0x20000 into the window; agents are 0x4000 apart, which
puts the dcpexts' agents 3 and 4 at the pmgr_dcpext slots this tree
already has. Describe it the way the dcpexts' slots are described, inside
display window 4.
The M4 26.6.2 backend reads the same property and has run the internal
panel without a mailbox; keep it that way by taking the mailbox for an
external processor only, so nothing changes on 26.6.2.
Signed-off-by: Ryan Murray <[email protected]>
…27.2 table
On the macOS 27.2 stub the M4 MacBook Air's (J713) internal display
processor runs the 26B123 image the J773g's processors run (UUID
B3BA603C), and the M4 backend refuses it ("unqualified firmware 26.6.2
handoff"), so the panel stays on simpledrm.
Admit an internal T8132 DCP that the boot loader handed over with that
image (firmware version and compatibility 27.2.0) and with the
firmware-27 clock metadata (apple,clock-ids, from /arm-io/disp0) to the
firmware-27 backend with the 27.2 method table, before the M4 hw data is
looked at. Requiring the clocks keeps out a main DCP that a boot loader
leaves running idle without a handoff, as on the Mac mini.
It gets apple_dcp_hw_t8132_v27: 41-bit firmware DMA (apple,dma-range
<0x100 0 0x10 0> ends at 1 TiB + 64 GiB), no DPTX port service, and
adoption of the live session iBoot leaves running. No sleep support.
That the T8132 26B123 image numbers its IOMFB methods as the T6041 and
T8142 26B123 images do is the assumption the J773g dcpext admission
makes too.
Signed-off-by: Ryan Murray <[email protected]>
Build the real apple_t8132_dcp_v27_2() into the t6041-v27-admission unit (of_property_present() mocked for apple,clock-ids) and check that the internal processor handed over with the T8132 26B123 image and its firmware-27 clocks runs the 27.2 table on either firmware path, and that without the clocks, with the T6041 image, a missing UUID or another release it is the M4 backend's on its path and nobody's off it. Signed-off-by: Ryan Murray <[email protected]>
apple_dcp_usable() calls apple_t8132_firmware_path() and apple_t8132_dcpext_v27_2() for T8132 processors since the M4 backend was kept off firmware-27 ones. The readiness unit builds apple_dcp_usable() without linux/soc/apple/t8132.h and failed to compile. It has no T8132 node, so stub both as unreachable, as the T6030 and T6041 helpers are. Signed-off-by: Ryan Murray <[email protected]>
…ots like T6041's On the macOS 27.2 stub the M4 MacBook Air's internal display processor runs the 26B123 image and the firmware-27 backend. That backend DMAs through ordinary IOMMU domains: RTKit and IOMFB shared memory on SID23, PIODMA maps on SID16, scan-out on SID0. The borrowed J713 display path cannot serve it. It admits only the 26.6.2 layout, so the DCP is left without any IOMMU domain, and it reserves the whole SID23 window from generic DMA for the M4 backend's own allocators. When the internal DCP was handed over with the 27.2 image and its firmware-27 clocks (apple_t8132_dcp_v27_2()), do not borrow its two display DARTs. Give them the locked-root handling T6041's display DARTs get on firmware 27 (fw_mirror): the firmware's live slots are kept and Linux's mappings go into the rest. Refuse the DART if it is not locked as expected. Nothing changes for a DCP on its 26.6.2 handoff, or for a 27.2 one without the firmware-27 clocks (the default Stage 2 hands it over without them). Signed-off-by: Ryan Murray <[email protected]>
…s its leaves do On the J713's 27.2 handoff the internal display DARTs keep their firmware's locked roots (fw_mirror). A Linux table in a slot the firmware holds must then mirror the firmware's leaves exactly, protection included (apple_dart_fw_slot_mirrors()). The boot loader re-exports the firmware's own segments as iommu-addresses, and the core maps those read-write, and uncached for this non-coherent DCP. The live leaves differ: the firmware's text is read-only, and all of its segments are cacheable (SID23 dump on the 27.2 stub: __TEXT flags 0x5, __DATA and the four other segments 0x1). As it stood, the DCP's attach would refuse every segment and leave the processor without a domain. For such a DART, give each translated region the protection the live leaves give every one of its pages. A region whose pages are not mapped there, map elsewhere or disagree keeps its protection, and the attach then refuses it as before. Signed-off-by: Ryan Murray <[email protected]>
The firmware-27 DCP backend takes the internal connector type (eDP) and the backlight range from the DCP's apple,panel child. The M4 26.6.2 backend never needed one, so the J713 has none, and on the 27.2 stub its panel comes up as an 'Unknown' connector without a backlight device. Describe the panel as on the other Airs: 2560x1664 at 224 ppi, 64 notch rows above the desktop, and the published 500 nits maximum. Signed-off-by: Ryan Murray <[email protected]>
Split the region walk from its device lookup and test it on a fake locked root: read-only text pages and read-write data pages take the protection of the leaves that map them (cacheable), a region whose leaf maps another page keeps what it asked for, and nothing changes on a DART that is not a 27.2 J713 display DART. Signed-off-by: Ryan Murray <[email protected]>
…ke the J713's On the macOS 27.2 stub the M4 Mac mini's (J773g) dcpext0 runs the 26B123 image on the firmware-27 backend (apple_t8132_dcpext_v27_2()). Its firmware and display DARTs are not borrowed there (the T8132 firmware path is the Air's or 26.6.2's), so they take the plain locked path. The boot loader re-exports the processor's firmware segments into slots its firmware already holds, and on that path apple_dart_publish_root() refuses any Linux table in such a slot: the attach would fail and leave the processor without a domain. Give a locked DART that an available 27.2 T8132 dcpext names in its iommus, or in its PIODMA's, the locked-root handling the J713's internal display DARTs get on 27.2 (fw_mirror), and map its re-exported segments with their live leaves' protection (the flag is now fw_live_prot). An unlocked DART is left as it was. The Air's borrowed external DARTs are never selected. Signed-off-by: Ryan Murray <[email protected]>
…t its board apple_t8132_dcpext_v27_2() also required of_machine_is_compatible( "apple,j773g"). The firmware interface belongs to the coprocessor and the image it runs, and both are already checked: an apple,t8132-dcpext node with the T8132 27.2 (26B123) image UUID and firmware version and compatibility 27.2.0. What differs between T8132 boards (the J773g's fixed HDMI port, its LPDPTX PHY, converter rails and hot-plug line) is described in each board's device tree, and the driver takes it from there. RyanTheTide asked for this in the review of #2541. Drop the board check. The apple-dcp boot unit now asserts that the admission has no machine check and that a T8132 dcpext on the 27.2 image is admitted on either firmware path. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Diljit Singh <[email protected]>
apple_dcp_usable() calls apple_t8132_firmware_path() and apple_t8132_dcpext_v27_2() since this series, and the readiness unit extracts it without linux/soc/apple/t8132.h, so it no longer compiled. No scenario there has a T8132 node: stub both as unreachable, like the T6030 and T6041 helpers next to them. The patch is RyanTheTide's, from the review of #2541. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Diljit Singh <[email protected]>
A DCP whose device tree names its display power words but not its DART streams stops the streams its DARTs have enabled before its first power-down and enables them again at power-up. Let it read them: the first 32 streams of a T8110 DART, read while its domain is up. Signed-off-by: Ryan Murray <[email protected]>
…ry hw.s2r SoC The system-sleep stop ran with an active panel only where the power words are measured, or on the J813, so another SoC's internal DCP stayed running into a deep sleep unless DPMS had turned its panel off first, and the sleep was refused. A derived layout only survives probe with appledrm.s2r_untested set, which already decides it: drop the board check. Signed-off-by: Ryan Murray <[email protected]>
… power words from the device tree The M4 MacBook Air's internal DCP runs the firmware-27 backend on macOS 27.2 but has no firmware stop, so a deep sleep is refused with the processor still running, and DPMS off only darkens the backlight. Give it the hw.s2r stop the T8142 runs on 27.2: set_power_state(0), D572, the AP link's release (A550 in the 27.2 table), RTKit idle and the CPU stop, then the DCP DART's streams. It has no secure mailbox. Its power words are not a per-SoC table: a hw.s2r DCP without a layout in its hw data takes them from its device tree, the ones its deep sleep lowers. DISP_CPU is the first state of its power-domains, DISP_FE that state's parent and DISP_SYS theirs; the retention words are DISP_CPU's apple,retention-workaround, of which only the masked bits are written, the off value at power-off and the value read at probe at power-on; pmc-dcp counts it where the display-power node has that word; and the DART streams are the ones its DARTs have enabled before the first stop. Without those properties the firmware keeps running, as before. Signed-off-by: Ryan Murray <[email protected]>
The T8132's words are T8140's: pmc-dcp, the power manager's power states and its power gate block. Signed-off-by: Ryan Murray <[email protected]>
Name the power manager blocks the internal DCP's firmware-27 stop writes, the ones the deep sleep lowers (pmc-dcp, the power states and the power gate block), and the DCP DART's clock-protection slice (42 in the ADT's dart-dcp) as its gapf word: the stop clears it after the DART's power-down flush so that DISP_CPU's power state can be written. Signed-off-by: Ryan Murray <[email protected]>
…lt mode A USB-C monitor on the M4 MacBook Air enters DP alt mode (SVID 0xff01, pin assignment C/E) but gets no picture: phy-apple-atc logs 'DisplayPort is not available on this port: serving its USB only' and puts the port into USB2. The T8132 ATC PHY runs DP alt mode only on a port its board marks apple,dp-alt-mode; the J604 has it, the J713 never got it. Both J713 ports are wired for it (the ADT's dcpext0/1 dp-switch-ufp-port, the ATC display crossbars the tree already describes), and aura passes the PHYs their usb3-dp (AUX) calibration. Mark atcphy0 and atcphy1. Signed-off-by: Ryan Murray <[email protected]>
On the macOS 27.2 stub iBoot leaves the J713's dcpext0 and dcpext1 running the internal DCP's 26B123 image, as on the J773g. Admit them in apple_t8132_dcpext_v27_2() so they run the firmware-27 backend as pipes of the internal display's DRM device. The desktop external profile (the LPDPTX PHY and HDMI converter) stays the J773g's alone (apple_t8132_dcpext_hdmi_v27_2()); the Air's dcpexts drive the USB-C routes, with the DPTX endpoints the firmware advertises. Every Air is on the T8132 firmware path, so apple-dart takes their firmware and display DARTs for borrowed 26.6.2 ones. When a 27.2 dcpext names them, give them the J773g dcpext's locked-root handling instead, as the internal display DARTs get on 27.2, and refuse one that is not locked. Signed-off-by: Ryan Murray <[email protected]>
…2 dcpexts their Type-C routes On 27.2 aura fills each J713 dcpext's firmware memory (text, data and heap placeholders, as on the J773g) and writes no apple,t8132-dcpext-firmware-ready, so the 26.6.2 route gate leaves its Type-C routes disabled. Add the placeholders, and a gate that, once the internal handoff has enabled the display subsystem, enables the Type-C routes and the PIODMA child (disabled in the SoC tree) of every dcpext handed over with the 27.2 image and adds its display DART (its PIODMA's) to the display subsystem's iommus, in one changeset. Signed-off-by: Ryan Murray <[email protected]>
Signed-off-by: Ryan Murray <[email protected]>
|
Two board checks decide this path: The production form keys on the nodes: run the gate when the display-subsystem node is present and enabled, and admit the dcpext on its firmware image alone; a board whose display is not ready simply keeps those nodes disabled in its DTS. The test in |
… with its link On the M4 MacBook Air (J713) on macOS 27.2, a USB-C monitor's link training ran at every rate and lane count and never got past clock recovery: the monitor never asked for more than swing 0/pre-emphasis 0. The display crossbar's output stayed at 'clocks disabled' throughout. dcp_direct_crossbar_link() sends every firmware-27 pipe that is not a T6041 desktop dcpext to the T6050 path, which returns early for a processor without a fixed DP PHY. A 27.2 T8132 dcpext has the T8132 crossbar, which only routes on select and enables its clocks on link-up, as the M4 backend's T8132 dcpext does. Take that path for it too. Signed-off-by: Ryan Murray <[email protected]>
|
J713 exact-head row at Setup: one boot.
The #3555 (J713 reset when a deep sleep lands soon after boot) is fixed by this PR.
Afterwards: back on the saved fleet85 and Stage 2 CI: the failed jobs at this head are the hosted runners' Ubuntu mirror outage ( Still owed: a second-T8132 regression row (asked above: J773g / J715), and a lit-monitor recheck, which needs someone at the J713 with the MSI. The 11-27 lit rows (EDID, 3x DPMS, s2idle, cable pull) were at Evidence: @aurora-silicon-review, please re-review: the blocker (forward-merge |
There was a problem hiding this comment.
Verdict: HOLD at 525da01.
Checked: The new exact-head J713 27.2 row supplies the boot and sleep evidence, including three bound DCPs and four early deep wakes. It ran without an external monitor attached. The current-head lit-monitor comparison, older stub repeat or source-equivalence receipt, second T8132 peer result, and hosted CI reruns remain open.
|
Source-equivalence receipt: This answers the App's "older stub repeat or source-equivalence receipt" item.
Commands: run on the lab clone, output kept under |
|
Row: (Clarification on the tag: this unit is a J713 13" M4 Air on Setup
Requested outputs
Summary
Not tested in this single boot: unarmed |
|
Thanks @stango-git. Status of the App's HOLD items at
With that, the head has passed on both J713 stubs: on 27.2 in our lab, with the 27.2 handoff, s2idle and 4 early deep sleeps (#3555), and on 26.6.2 in stango's lab, with the handoff skipped cleanly and a lit external monitor. |
|
CI green at
App HOLD items at 10:32Z, now:
@aurora-silicon-review please re-review at On the J773g item, and correcting an earlier draft of this comment: the change is not J713-only.
So a J773g boot (HDMI path untouched, no regression) is a real check. @DjDeveloperr, one boot of |
There was a problem hiding this comment.
Verdict: HOLD at 525da017 for the second T8132 board row.
Checked: The successful Apple build/matrix and the companion hosted checks clear the CI items from my prior review. The J713 27.2 and lit-monitor 26.6.2 results, with the patch-equivalence receipt, clear the outstanding J713 coverage. J773g still exercises a different board and shared DCP/DART paths even though the Type-C selector skips its fixed HDMI route. Keep that row or an explicit maintainer disposition before landing.
Keep the cold T8152 display-isoc DART classification and the T8132 external DCP handoff state. Signed-off-by: DjDeveloperr <[email protected]>
There was a problem hiding this comment.
Verdict: HOLD at 9c353d74c51c
Blockers:
- Hosted CI at
9c353d74c51cis still queued (27queued,2passed) — wait forapple-build,kunit,dt-checks, andhost-teststo complete green. - Remaining second T8132 board hardware row (
J773gM4 Mac mini external display non-regression) carried over from525da017.
Checked:
- Verified
9c353d74c51cis a clean merge ofmainover previously audited525da017withMERGEABLEstatus and no functional regressions introduced by the merge.
Evidence
- Head:
9c353d74c51cdb0fcbced85e8aabce46b00f69d3(basemain,MERGEABLE). - Status checks at review time:
2passed,27queued,10skipped,0failed. - J713 M4 MacBook Air hardware verification was already satisfied at
525da017; only the second T8132 board row (J773g) and fresh CI at9c353d74c51cremain.
|
PASS: J773g (M4 Mac mini) at
|
|
Merged main into 9c353d7, keeping both the T8152 cold display-isoc classification and the T8132 external-display handoff. All five touched arm64 objects and the J713/J715 DTBs compiled. The DART source changed, so the display rows have to be run again on this head. J773g (M4 Mac mini) regression row at
Still owed before merge: the J713 row at this head (external displays over USB-C on 27.2), which is what this PR is for. |
There was a problem hiding this comment.
Verdict: MERGE at 9c353d74c51c
Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.
Checked: - Verified 9c353d74c51c is a clean merge of main over previously audited 525da017 with MERGEABLE status and no functional regressions introduced by the merge.
Follow-ups (not blocking): queued CI; J773g external display row (2nd board not required)
Thanks Dj. The three blockers from this review (at 3f8a2cc) are addressed at 9c353d7: (1) gate_t8132_dcpext_v27() leaves the Type-C routes disabled without CONFIG_DRM_APPLE_DCP_T8132 or under nomodeset (display-gate.c ~3604-3621); (2) the stack is on main and fleet91 (main + this head) drives USB-C external displays on the J713; (3) J713 26.6.2 lit-monitor row (stango-git) and your J773g 27.2 row at this exact head both pass. Dismissing this older review so the PR can merge; please reopen with the failing case if you still see one.
Conflict in drivers/gpu/drm/apple/dcp.c: the T8132 dcpext v27 hw data comment. Keep this branch's s2r_ext description, which matches the struct (main still describes it without sleep support). Signed-off-by: Ryan Murray <[email protected]>
What
External USB-C displays on the 13-inch M4 MacBook Air (J713) on the macOS 27.2 stub. The DT marks both ATC PHYs for DP alt mode and gives dcpext0/1 their firmware-memory placeholders. display-gate enables the dcpexts' Type-C routes and display DARTs once DRM can probe them, with nomodeset and config guards. A firmware-27
apple,t8132-dcpextis treated as a dcpext. apple-dart puts the locked display DARTs that such a dcpext names on the firmware-mirror path, and refuses unlocked ones. No board, chip or firmware-version gates.Fixes #3555: without this handoff, a deep sleep in the first ~22 s after boot resets the J713 (both dcpext probes still in their RTKit handshakes).
Stack: #2541 → #2818 → #2819 → this PR. #2710 and #2721 sit on top. On 11-25 the PR was rebuilt by merging #2819 (with #2818's review fix) into this branch. It's a fast-forward from b757478 with no force push, and the base has moved from the closed #2596 branch to #2819's.
Tested
T8132 external display DART: locked roots kept (mirror).firmware 27: DPTX controller on 0x24, ports on 0x2a (advertised).Risk
Not yet
Merge details (11-25)
apple_dart_selects_fw_mirror()(locked, no reserved-table handoff, not borrowed) and its leaf-protection hook. The oldfw_live_prot/j713_display_v27/t8132_dcpext_v27flags are gone. A DART named by an availableapple,t8132-dcpextwithapple,clock-ids(published by aura for every dcpext it hands over) qualifies; it used to be keyed on the image UUID and the 27.2 version. Unlocked DARTs, and DARTs with a reserved-table handoff, are refused with -EINVAL.dcp->dcpext = truefor a firmware-27 T8132 dcpext stays.gate_t8132_dcpext_v27()with its nomodeset/DRM guards.Previous description
Problem
A USB-C monitor on the 13-inch M4 MacBook Air (J713) enters DisplayPort alt mode and shows nothing. phy-apple-atc logs "DisplayPort is not available on this port: serving its USB only", because the J713 device tree never marked its ATC PHYs
apple,dp-alt-mode(the J604's are marked). Behind that there's a second gap. On the macOS 27.2 stub, iBoot leaves dcpext0 and dcpext1 running the same pinned 26B123 image as on the J773g, but nothing admits them on the Air. Also, apple-dart takes their DARTs for borrowed 26.6.2 ones, becauseapple_t8132_firmware_path()is true on every Air.Change
apple_t8132_dcpext_v27_2()admits a T8132 dcpext on what the loader handed over (the processor, the pinned 26B123 image and its 27.2 compat), on any board. The desktop HDMI profile is the dcpext whose node describes a DP-to-HDMI converter on its fixed PHY (hdmi-hpd-gpios, the J773g's dcpext0), so the Air's dcpexts drive their Type-C routes.apple_dpxbar_clocks_on_link()) brings that output up on link-up. It used to fall into the T6050 path, which returns early without a fixed DP PHY, so link training never got past clock recovery.Stacked on #2596 (which sits on #2590 and #2541). The DPTX endpoints come from #2526, which this branch now merges at its trailer-clean head 67f853f. The T8132 dcpext nodes have no
apple,dcpextfallback, so the branch also carries Diljit's commit from #2634 that marks a firmware-27 T8132 dcpext as a dcpext at probe. It's keyed on the firmware and the block compatible, not on a board. On the boot loader side it needs aurora-silicon/aura#440, which hands the M4 external display processors over from the ADT. Without it, the dcpexts are refused exactly as they are today.Testing
tools/asahi/run-host-tests.py444/444, including a newdcp-v27-dptx-layout-tests.pycheck that fails if a firmware-27 T8132 dcpext is not a dcpext; W=1 clean on drivers/gpu/drm/apple/. Earlier: apple-dcp host suite 89/89 (boot.py covers the T8132 admission without machine flags), W=1 clean on display-gate.o, dcp-fabric.o, dcp.o, apple_drv.o, apple-dart.o, apple-display-crossbar.o and the J713/J773g DTBs.dcp->dcpextline; Stage 2 = the aura lab branch. The display is now part of the J713 lab default.Still to run
dcp->dcpextline keyed onapple_t8132_dcpext_v27_2(); on the J713 both keys select the same two processors. The next default build takes this head instead.dpavservep_init()opens the DCPAV service on 0x28 whiledcpavserv_identity()accepts a wire-v2 service only on 0x2a, so its admission always fails there. The EDID still comes from the sink metadata path; that's for a follow-up.Reviewer detail
apple_t8132_dcpext_v27_2()no longer lists J773g/J713;apple_t8132_dcpext_hdmi_v27_2()keys onhdmi-hpd-gpios; the display gate's Type-C step no longer checksapple,j713. The gate is only reached on the M4 firmware path (apple_t8132_firmware_path()), so the J773g on 27.2 keeps its own HDMI chain (gate_t8132_j773g_run()), and the Type-C step skips dcpexts withouttypec-routeschildren. The J715 (same board design) takes the same path once its tree has the nodes.dcp_typec_xbar_clocks_on_link()asks the active direct route's crossbar output (route->active_xbar ?: route->xbar); an output brought up on that path (direct_xbar_up) is taken down the same way. Fixed-PHY pipes (no active Type-C route), tunnels and T8142-layout crossbars (T6050) keep the T6050 path. No chip or board check.apple_dart_probe():j713_dcpext/j713_dispext(borrowed, firmware-path based) are cleared whenapple_dart_serves_t8132_dcpext_v27()matches.t8132_dcpext_v27then selects fw_mirror, andj713_dcpext_v27 && !fw_mirrorreturns -EINVAL, as the internalj713_display_v27case does.apple,asc-memnodes. The boot loader points text at the internal handoff's shared asc-firmware node and may append more regions after them.27.2: Type-C routes and display DARTs enabled for 2 dcpext(s),T8132 external display DART on the 27.2 image: locked roots kept (mirror)x4,firmware 27: DPTX controller on 0x24, ports on 0x2a (advertised)x2,allocated Type-C DPTX PHY 1.