Repository navigation
J613 (M3 MacBook Air): external DisplayPort over USB-C, and T8122 PMP record requests - #114
Merged
Merged
Conversation
On T8122, PTD request bit N names soc-device record N of the apple,tunable-soc-device table, not soc-device ID N + 1. The report driver assumes ID N + 1. That is the same thing on T6030, whose records are in ID order, but not on T8122. On J613 the table is ordered DCS, AMCC, IOA0, IOA1, SOC-AON, SOC-REST, EACC0, PACC0, AGX, ANE0, ISP, DISP, DISPEXT, ..., SCODEC, LTR, ANS, so DISP (ID 8) is record 11, DISPEXT (ID 9) record 12 and ANS (ID 18) record 19. The seeded request 0x20080 (bits 7 and 17) therefore names PACC0 and SCODEC on J613, not DISP and ANS. On J613, requesting bits 11 and 12 (the DISP and DISPEXT records) makes the PMP acknowledge DISP and DISPEXT. With bits 7 and 8 it does not. With DISP not requested, internal display performance votes have no effect. The panel only needs the lowest state, so nothing shows today. DISPEXT has the same problem: without its request, the first external modeset never completes. Let a report entry say that it is requested by soc-device record (apple,soc-device-record). Its reg stays the soc-device ID - 1, so entries keep their names and lookups by reg keep working; the driver looks up the record that holds that ID in the PMP's table and uses its index as the PTD request and acknowledge bit. An ID that is missing or appears twice, or a bit that two entries would share, refuses the PMP start. Record bits are checked against their record's acknowledge flag, the others by ID as before. Looking the ID up keeps this right on another T8122 board whose table is ordered differently. Mark the T8122 DISP entry, so DISP is requested on bit 11 on J613. The ANS entry stays on bit 17 (record 17, SCODEC on J613) for now: ANS is not acknowledged, and asking for ANS instead of SCODEC changes what the PMP does for storage, which has not been tested. An equivalent opt-in version was tested on J613 (MacBook Air M3, 14.7 firmware): request 0x21800 (DISP and DISPEXT by record, ANS unchanged), acknowledged 0x218f0; panel, GPU and the external display work. Assisted-by: Claude:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Marius Gehrmann <[email protected]> [Chris Kearney: rebased onto integration/aurora 1bf7fff; message and comments reworded to describe the request-bit interface and the tested behaviour; the stale request-bit comment in apple_pmp_report_wait_t8122_14() fixed; Claude-Session trailer dropped] Signed-off-by: Chris Kearney <[email protected]>
Describe the external display coprocessor (dcpext) and what it needs: the dispext0 and dcpext DARTs, the dcpext mailbox, the dispext0 clock, the bw-scratch cell count on pmgr_dcp for the dcpext's bandwidth scratch page, and the display crossbars of ATC0 and ATC1 that route a display pipe to the ATC's DisplayPort PHY (at the ATC base + 0x4c000, in the ATC's USB power domain; atc0-dpxbar and atc1-dpxbar in the ADT, T6020-compatible). The dcpext, its DARTs, its mailbox and the crossbars are all disabled. A board adds the dcpext's Type-C display routes; the display gate enables the dcpext and what it needs only when the boot loader has marked it. The dispext0 fixed clock and pmgr_dcp (no compatible) are inert on their own. The values come from the T8122 ADT; the node layout follows the dcpext description used with asahi-wip-7.2 and AsahiLinux#607 and AsahiLinux#608 on this SoC. Link: AsahiLinux#607 Link: AsahiLinux#608 Assisted-by: Claude:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Marius Gehrmann <[email protected]> [Chris Kearney: rebased onto integration/aurora 1bf7fff; comments say that the display gate enables the DARTs, mailbox and crossbars; the bandwidth page named by its function; Claude-Session trailer dropped] Signed-off-by: Chris Kearney <[email protected]>
Add the dcpext alias (the boot loader finds the node through it), and give dcpext a Type-C display route to each USB-C port in the typec-routes model: - route@0, left-back: ATC0's DP PHY and crossbar as typec0, DPTX target 0; - route@1, left-front: ATC1's DP PHY and crossbar as typec1, DPTX target 1 (the ADT's DFP index of atc1, as in the M1/M2 dcpext routes); both with crossbar state 2 (dispext1,0: one display pipe behind either ATC's crossbar) and port@3 on the connector. dcpext, its routes, its DARTs, its mailbox and both crossbars stay disabled here, and the ATC power states are left as they are. The boot loader reserves the dcpext firmware and marks the node; the display gate then enables all of it once the internal display has been handed over, and keeps the common power state of both ATCs on, as for DP alt mode on the M1/M2 laptops. A kernel or boot loader without dcpext support therefore sees nothing new, and the USB-C ports do not wait for a mode switch that never registers. The 25G83 J613 device tree includes this file and gets the same disabled nodes; its path never runs the dcpext gate. dcpext has one DPTX link, so one external display at a time: the display fabric gives the pipeline to the first port that asks, and a DP partner on the other port gets USB only. dcpext carries apple,sync-syslog-ack, the RTKit behaviour its firmware needs (AsahiLinux#607). Link: AsahiLinux#607 Assisted-by: Claude:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Marius Gehrmann <[email protected]> [Chris Kearney: rebased onto integration/aurora 1bf7fff; the DARTs, mailbox and crossbars stay disabled and the ATC common power states are no longer always-on in the device tree: the display gate does both, only with the boot loader's marker; Claude-Session trailer dropped] Signed-off-by: Chris Kearney <[email protected]>
Aurora drives 14.7 firmware through its own DCPLink session and dropped the 14.7 layouts from the classic IOMFB template. The T8122 dcpext, which Linux starts itself, speaks the classic dcpep protocol with 14.7 firmware, as in asahi-wip-7.2 and AsahiLinux#607. Restore the 14.7 dcp_swap and swap_submit_req layouts and the 14.7 nits property id. The 14.7 backlight update flag keeps the bl_unk name, so that the shared code needs no change. The 12.3 and 13.x layouts are unchanged. Link: AsahiLinux#607 Assisted-by: Claude:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Marius Gehrmann <[email protected]> [Chris Kearney: rebased onto integration/aurora 1bf7fff; Claude-Session trailer dropped] Signed-off-by: Chris Kearney <[email protected]>
The T8122 dcpext has apple,bw-scratch and no apple,bw-doorbell, and asks to map the PMGR bandwidth page through map_reg. With that MMIO page mapped, the DART reports a write fault when the display powers off, the DCP crashes, and the display does not come back after the first blank. For the T8122 dcpext only (the 14.7 template), hand it a RAM page instead: a device-managed coherent page of the range's size. The T8122 dcpext keeps apple,bw-scratch = <&pmgr_dcp 0 5 0x910>. The RAM page is compiled into the 14.7 template instance only, which only apple,t8122-dcpext uses. The 12.3 and 13.x instances keep mapping the MMIO page through dma_map_resource(), so the M2 and the M1/M2 Pro/Max/Ultra DCPs, which also have bw-scratch without bw-doorbell, are unchanged. Assisted-by: Claude:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Marius Gehrmann <[email protected]> [Chris Kearney: rebased onto integration/aurora 1bf7fff; the RAM page limited to the 14.7 template instance (DCP_FW_VER >= 14.7.0) in a helper, so the 13.3 instance used by M2 and M1/M2 Pro/Max is unchanged; subject, message and comment reworded; Claude-Session trailer dropped] Signed-off-by: Chris Kearney <[email protected]>
Aurora accepts 14.7 firmware only for processors that the boot loader hands over (T6030, the J613 panel) and drives them through its DCPLink session. The T8122 dcpext is not handed over: Linux starts it, as on M1/M2. asahi-wip-7.2 with AsahiLinux#607 drives this dcpext with 14.7 firmware through the classic IOMFB template. Add that path, for apple,t8122-dcpext only: - iomfb_v14_7_tpl.c: the asahi-wip-7.2 14.7 method and callback tables around the shared template (symbols *_v14_7_0, no clash with Aurora's iomfb_v14_7_*); - DCP_FIRMWARE_V_14_7_TEMPLATE, selected by dcp_check_firmware_version() for apple,t8122-dcpext with firmware-compat 14.7.0, and dispatched like 12.3/13.5 (component bind, RTKit boot, dcp_start endpoints, template modeset/flush/power), so that every path that tests DCP_FIRMWARE_V_14_7 (the DCPLink session, T6030) is left alone; - dcp_fw_is_14_7() for the firmware protocol of the AFK, DPTX and DPAV endpoints, which both paths share; external backlight levels stay off on 14.7 either way; - the plane id as surface id in swaps, as asahi-wip-7.2 does for 14.7; - an apple,t8122-dcpext match entry (2 DPTX ports, as generic dcpext); - AFK: after START_ENDPOINT give the firmware 10 ms to set the endpoint up, and poll the mailbox while waiting for the init acknowledgment, because the mailbox of a freshly booted processor can leave messages queued without another interrupt. The internal panel (apple,t8122-dcp, DCP_FIRMWARE_V_14_7) and every other processor are unchanged. Link: AsahiLinux#607 Assisted-by: Claude:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-developed-by: Ramzi Abdiche <[email protected]> Signed-off-by: Ramzi Abdiche <[email protected]> Signed-off-by: Marius Gehrmann <[email protected]> [Chris Kearney: rebased onto integration/aurora 1bf7fff; Co-developed-by and Signed-off-by added for Ramzi Abdiche, whose AsahiLinux#607 commits this ports (AFK start polling, the 14.7 tiling callback slots); one comment and one message line reworded; Claude-Session trailer dropped] Signed-off-by: Chris Kearney <[email protected]>
apple_drv adds every available apple,dcpext node as a component of the panel's DRM device. If the dcpext does not register its component (probe failure) or fails its bind (RTKit boot), the device never binds or fails as a whole, and the internal panel stays on the boot framebuffer. The dcpext's Type-C route is also a mode switch that the USB-C port controller waits for. For apple,t8122-dcpext only: - probe runs in a devres group. -EPROBE_DEFER is passed on while driver_deferred_probe_check_state() still defers (bounded by the deferred probe timeout). Any other failure releases the group, and the device joins as an unusable pipe (ext_dead): a minimal component whose bind does nothing, with its Type-C routes disabled in the live tree so that the port controller stops waiting for them. A failure after a route was registered keeps the pipe in place instead (a consumer may already hold the mux) and marks it unusable. - a bind failure marks the pipe unusable and returns 0. - an unusable pipe gets no CRTC (apple_drm_init_dcp() skips it), its port gets no connector instead of failing apple_probe_typec_ports(), its route ignores mode changes, its RTKit messages are dropped, and unbind/suspend/resume skip it. Other DCPs, the internal panel's included, are unchanged. Assisted-by: Claude:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Marius Gehrmann <[email protected]> [Chris Kearney: rebased onto integration/aurora 1bf7fff; Claude-Session trailer dropped] Signed-off-by: Chris Kearney <[email protected]>
Port the RTKit part of AsahiLinux#607, which the T8122 dcpext firmware needs (its J613 device tree node carries apple,sync-syslog-ack): - acknowledge syslog log messages and ioreport notifications (types 0x8 and 0xc) right away, ahead of the other receive work; - start the kdebug endpoint and hand out its two buffers; - poll the mailbox while waiting for the boot handshake and power-state acknowledgments; - leave OSLOG_LOG notifications unacknowledged, as AsahiLinux#607 does. The firmware then sends one and keeps its log to itself. AsahiLinux#607 sends those acknowledgments from the receive path with an atomic mailbox send, which can spin for up to the 500 ms TX timeout in hard IRQ context under the mailbox locks if the FIFO is full. Here the receive path only puts them on a small ring, and a work item on the high priority system workqueue sends them from process context. If the ring is full, the message takes the ordinary path, which acknowledges it too. A failed acknowledgment is logged. The kdebug buffers and the other shared buffers now use one allocation helper. Aurora's RTKit already returns start_ep errors, which AsahiLinux#607 also adds. Unlike AsahiLinux#607, all of this is gated on the property, so every other co-processor (the internal DCP's adopted session, SMC, ANS, ...) behaves exactly as before. AsahiLinux#607's mailbox change (I2A FIFO enable) is for apple,t6030-asc-mailbox and is not needed on T8122. Link: AsahiLinux#607 Assisted-by: Claude:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-developed-by: Ramzi Abdiche <[email protected]> Signed-off-by: Ramzi Abdiche <[email protected]> Signed-off-by: Marius Gehrmann <[email protected]> [Chris Kearney: rebased onto integration/aurora 1bf7fff; Co-developed-by and Signed-off-by added for Ramzi Abdiche, whose AsahiLinux#607 commits this ports (kdebug buffers, mailbox polling during waits, synchronous log acknowledgments); Claude-Session trailer dropped] Signed-off-by: Chris Kearney <[email protected]>
…doff The T8122 dcpext must only become available when something drives it: apple_drv makes every available dcpext a component of the panel's DRM device, and an available Type-C route is a mode switch that the USB-C port controller waits for. The node and its routes therefore stay disabled in the device tree, and so do its DARTs, its mailbox and the display crossbars of its routes, so that kernels without dcpext support, and boot loaders that do not reserve its firmware, see nothing new. Enable them here, as for the T6030 processors, once the internal display was handed over and only if the boot loader marked the node apple,t8122-dcpext-firmware-ready = <1> (firmware reserved, version set), the firmware is 14.7.0, and its DARTs, its mailbox and the crossbars its routes switch (mux-controls) are described and still disabled. One changeset enables the node, its Type-C routes, both DARTs, the mailbox and the crossbars, sets apple,always-on on the common power state of each crossbar's ATC (as the M1/M2 laptops have for DP alt mode across suspend), appends <&dispext0_dart 0> to the display subsystem's iommus (the gate requires exactly one entry there when it checks the panel handoff, so it cannot be in the device tree), and sets an active floor on the dispext_cpu power state, as on T6030, because the PMP runs. If the PMP was added, the changeset also enables its DISPEXT request and points the dcpext at it (apple,pmp-report), as T6030 does: once the PMP runs it owns the SoC power and performance states and keeps a block up only if that block's request bit was set when it started. On T8122 the DISPEXT entry (soc-device ID 9) is requested by soc-device record, which is bit 12 on J613. A missing DISPEXT acknowledgment does not hold up the PMP start or the panel (apple,defer-startup-ack). Without the marker the gate changes nothing and logs one line. The 25G83 J613 path returns before the gate runs. apple_t8122_display.dcpext=0 keeps the dcpext disabled. Assisted-by: Claude:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Marius Gehrmann <[email protected]> [Chris Kearney: rebased onto integration/aurora 1bf7fff; the gate now requires the dcpext DARTs, mailbox and crossbars to be described and disabled and enables them in its changeset, together with apple,always-on on the ATC common power states, only when the boot loader's marker is present; one overlay comment reworded; Claude-Session trailer dropped] Signed-off-by: Chris Kearney <[email protected]>
Three things the T8122 dcpext firmware (14.7, classic IOMFB template) needs and the shared paths do differently; each applies to DCP_FIRMWARE_V_14_7_TEMPLATE only. PMP: the display gate gives the dcpext a PMP DISPEXT request (apple,pmp-report) when the PMP runs. As T6030 does for its dcpext (dcpext_check_power()), run the processor only once the PMP has acknowledged that request, in the bind before the CPU RUN bit is set and RTKit is woken. Without it the first modeset hangs. The internal display has started the PMP long before, so the wait is short; apple_pmp_report_wait_ready() reads the acknowledgment once after the PMP start, so poll it (20 ms) for up to 3 s while it returns -EIO. On any failure, or without a PMP, the processor is started anyway, with one log line saying so. EDID: dcpavserv_copy_edid() sends Aurora's T6030 "open" call (DPAV service group 4, command 6) before the first EDID read. The dcpext never answers it: copy_edid times out, the firmware drops and retrains the link, and the connector flaps every ~4 s. AsahiLinux#607 reads the EDID with group 1, command 7 directly; send the open call only on Aurora's DCPLink session (DCP_FIRMWARE_V_14_7), as before. DPTX connect: the fabric validates the target (group 0, cmd 12), connects with the supports-HPD attribute, answers GET_SUPPORTS_HPD with 1, asserts HPD right after request_display and acknowledges SetTiledDisplayHints with 1. AsahiLinux#607 does none of that: it connects with 0, answers 0, asserts HPD only after the link-configuration wait (that HPD starts link training) and acknowledges the hints with 0. Do it the AsahiLinux#607 way; a link-configuration timeout before the late HPD is expected and not an error. Tested on J613 with the rest of the series: rear and front USB-C port, hotplug, DPMS, 1920x1080@60 and 3440x1440@100. Link: AsahiLinux#607 Assisted-by: Claude:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Marius Gehrmann <[email protected]> [Chris Kearney: rebased onto integration/aurora 1bf7fff; Claude-Session trailer dropped] Signed-off-by: Chris Kearney <[email protected]>
…ers off When a Type-C display is unplugged while another port waits for the pipeline (the T8122 dcpext drives one display, a second one waits with -EBUSY), dcp_typec_pipeline_freed() hands the pipeline to the waiting port at once, and its connection starts before the desktop has turned the old display's CRTC off. That power-off then drops HPD and disconnects the DPTX port, which by now belongs to the new display: the firmware reports the new sink inactive and the display stays dark. Whether it works depends on who is faster, the desktop or the fabric; on J613 (display on the front port unplugged, a display on the rear port waiting) both orders were seen. Count the Type-C unplugs (dcp_dptx_disconnect_oob(), which already releases the link of the display that went) and, on the T8122 dcpext, remember the count when the CRTC is powered on. If a display was unplugged since, the power-off only powers IOMFB off and leaves the current connection, its reconnect work and its HPD completion alone. DPMS off of a display that is still attached is unchanged. Only the T8122 dcpext (ext_failsafe) takes the new path; it is the only pipeline this was run on. Every other Type-C output releases its connection at CRTC power-off exactly as before, including the M1/M2 dcpext routes and the M3 Pro's split (tiled) second port and external retry. Assisted-by: Claude:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Marius Gehrmann <[email protected]> [Chris Kearney: rebased onto integration/aurora 1bf7fff; the new power-on snapshot and power-off path limited to the T8122 dcpext (dcp->ext_failsafe), so other Type-C outputs keep the old release; Claude-Session trailer dropped] Signed-off-by: Chris Kearney <[email protected]>
When every pipeline that could drive a DP-alt display drives another one (the T8122 dcpext drives a single display), the route returns -EBUSY and the display stays dark. The only trace is the port controller's "failed to configure Type-C connection: -16", which says nothing a user could act on. Log one line per plug, with the connector's label, that says what is going on and what to do: display on USB-C Left-front waits for an external display pipeline: it drives another display; to switch, unplug that one, then plug this one in again Desktop helpers can turn it into a notification. Plugging in again is what reliably works on J613: when the other display goes, a waiting display whose port runs four-lane DP is not brought up by the fabric alone. Assisted-by: Claude:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Marius Gehrmann <[email protected]> [Chris Kearney: rebased onto integration/aurora 1bf7fff; Claude-Session trailer dropped] Signed-off-by: Chris Kearney <[email protected]>
GehrmannSolutions
added a commit
to GehrmannSolutions/omarchy-m3-air
that referenced
this pull request
Oct 14, 2026
… and Bluetooth notes The daily kernel 7.1.12-fay-v2 now carries patches/ + patches-clamshell/ + patches-local/0003. The maintainer carries the 12-patch series as draft omacom/linux-aurora#114 (gated on the m1n1 marker); both requested test boots passed. New criteria K17 (brightness keys, Aurora #32) and K18 (Bluetooth timeouts on suspend entry). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017YMqWu7A3VwEYtHaA1TusK
GehrmannSolutions
added a commit
to GehrmannSolutions/omarchy-m3-air
that referenced
this pull request
Oct 14, 2026
…on v2 kernels too On the v2 series (and omacom/linux-aurora#114) the kernel line still says "to switch, unplug that one, then plug this one in again", but the waiting display came up by itself every time the other one was unplugged (tested 2026-10-14 on #114, both directions). Say so in the hint; keep the replug text only for older kernels that log just the -EBUSY. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017YMqWu7A3VwEYtHaA1TusK
GehrmannSolutions
added a commit
to GehrmannSolutions/omarchy-m3-air
that referenced
this pull request
Oct 14, 2026
…1 marker patch The eleven experimental patches 0013-0023 are replaced by six patches on top of omacom/linux-aurora#114, the maintainer's version of our series: same behaviour, split by idea, the gate and device tree in #114's style (the new route disabled in the DT and enabled only by the gate, behind the boot loader's marker). Signed off; the full test round was repeated on this kernel on 2026-10-14. boot/: the m1n1 patch is now the one we run since 2026-10-13 (dcpext left disabled, apple,t8122-dcpext-firmware-ready set), and the scripts for the current boot.bin (m1n1 + DTBs from #114 + patches-clamshell) are added. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017YMqWu7A3VwEYtHaA1TusK
…request Three refusals in the T8122 dcpext gate, checked before its changeset: - No display driver: CONFIG_DRM_APPLE not built, or nomodeset on the command line. The gate enables the Type-C routes along with the dcpext, and a port controller with an enabled route waits for the display driver's mode switch. On a J613 those are both of its ports, so with the marker set and no display driver, USB on both would wait for good. - No usable PMP DISPEXT request. The first external mode set does not complete without it. The gate used to go on and only log that the request was missing; it now refuses, as the T6030 path does. - A mux-controls entry whose argument is not the crossbar's one mux. The dcpext comment in t8122-dcp.dtsi said the boot loader enables the node. It leaves the node disabled and only marks it apple,t8122-dcpext-firmware-ready; the gate skips a dcpext that is already enabled. The Kconfig help for T8122 said the gate never enables anything there; it describes what it does now. Without the marker nothing changes: the dcpext and its routes stay disabled, as before. Signed-off-by: Chris Kearney <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…pipe Three fixes on the T8122 dcpext paths only: - Probe looks up each route's DP PHY and display crossbar while it registers the routes, one at a time. If the second route's supplier was not there yet, the first route was already registered and could not be taken back, so the dcpext was given up for the boot instead of deferring. Probe now checks that every route's suppliers are there before it registers any, and defers until they are (bounded by the deferred probe timeout, as before). - A dcpext given up after its firmware was started can still report a crash. dcp_rtk_crashed() then completed start_done, which is set up only in dcp_start(), which a given-up pipe never reaches. It now marks the pipe crashed and returns. - The polled AFK start wait reported a timeout when the endpoint acknowledged after the last 10 ms wait but before the deadline check. It takes that acknowledgement. Signed-off-by: Chris Kearney <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two fixes to the apple,sync-syslog-ack paths, which only the J613 dcpext node uses: - The kdebug buffer size comes from a firmware message: an entry count, times 32 bytes. Nothing bounded it, so a bad count could make the kernel allocate and pin gigabytes. Refuse more than 4 MiB; the request is then logged and left unanswered, as for any failed kdebug request, and the firmware runs without kdebug. - The polled wait reported -ETIME when the completion arrived after the last 10 ms wait but before the deadline check. It takes it. Signed-off-by: Chris Kearney <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The log line for a DP display that gets no pipeline told the user to unplug the other display and then plug this one in again. No replug is needed: when a display goes, dcp_typec_pipeline_freed() hands the freed pipeline to a waiting display, and the J613 tester saw the waiting display come up a few seconds after the unplug, in both directions. - The line now says the display lights up on its own when one of the other displays is unplugged. - On the path that takes the lowest free pipeline (the J613, M1 and M2), it is logged only with the display's HPD up, not for an adapter with no display. - A port that got a pipeline reports a later wait again. Only the log changes; the route still returns -EBUSY as before. Reported-by: Marius Gehrmann <[email protected]> Link: #103 Signed-off-by: Chris Kearney <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Carries GehrmannSolutions' J613 external display series (refs #102, #103) with review fixes.
Authorship and sign-offs are kept. Each commit says what changed in a
[Chris Kearney: ...]line.What it does
soc-device record, and the records are not in ID order. A report entry can now be requested
by record (
apple,soc-device-record). The driver looks the record up in the PMP'ssoc-device table. The T8122 DISP entry uses it, so on J613 DISP is requested on bit 11.
and the ATC0/ATC1 display crossbars, all disabled. On J613, Type-C display routes to both
USB-C ports, also disabled.
apple,sync-syslog-ack(prompt syslog and ioreport acks, kdebug buffers, mailboxpolling while waiting). Only the J613 dcpext node has it.
the boot loader has marked it
apple,t8122-dcpext-firmware-ready. One changeset enables:apple,always-onon the ATC common power states;Default state
its mailbox and the crossbars stay disabled, and the ATC power states are unchanged. The boot
loader part is not in this PR.
fix for T8122 PMP: request bits are soc-device record indices, so the DISP/ANS requests (bits 7/17) reach PACC0/SCODEC #102.
Other Macs
apple,t8122-dcpextuses.gate KUnit suites pass, and no device tree changes.
Testing
nodes;
pmp_records_t8122passing.a372a728eexactly (GehrmannSolutions, J613, 14.7 firmware; #103 report):Review fixes after the hardware test
Four commits on top. Each one changes only refusal paths, error paths or a log line on T8122:
CONFIG_DRM_APPLEnot built, ornomodeset): enabled routes would otherwise hold USB on both J613 ports waiting for a mode switch;mux-controlsargument;start_done;Merged without an M3 Pro lab boot
The lab M3 Pro is busy, so two independent adversarial reviews checked every shared-code claim line by line. Results:
apple,t8122-dcpext.ext_failsafe.apple,sync-syslog-ack, which only the J613 dcpext node has.Local, on this branch merged onto
integration/aurora:Image modules dtbsbuild: KUnit ran 225 tests and 223 passed. The one failure (parser_route_programming_guard) and the one skip are the same as on base. Both gate suites andpmp_records_t8122pass. The build is rc=0, with no warnings in any touched file;Co-Authored-Byform and spelling warnings.Follow-ups, not in this PR:
-EINVALinstead of the start error when the PMP fails its startup check.Credits
Co-developed-by:andSigned-off-by:forRamzi Abdiche: AFK start polling, the 14.7 tiling callback slots, and the RTKit kdebug,
polling and acknowledgment changes.
🤖 Generated with Claude Code