Repository navigation
drm/apple: let a docked M1 deep-sleep with its external display lit - #3655
Conversation
A DCP's system suspend settles its IOMFB queue first and refuses the sleep
when that times out ("display updates still pending, refusing sleep"). The
refusal does not say what the queue is waiting for: an active transaction,
queued ones, a present the firmware has not finished, or a call or an ACK
still outstanding on one of the channels.
Report that state, rate-limited, from the settle's last pass when it
times out. The queue state is read under the IOMFB lock. The channel
depths, ACK count and callback count change outside that lock, so the
report labels them as samples.
Signed-off-by: Erik Bourget <erik@ebourget.net>
On the J313 (M1, firmware 27.2.1 DCP), deep sleep with a lit external display on a USB4 dock is refused every time. The display then stays dark until a reboot: dcpext: setPowerState(0) timeout 1000 ms dcpext: display updates still pending, refusing sleep dcpext: PM: failed to suspend: error -16 ... dcpext: IOMFB transaction timed out: ... present=1 accepted=1 The dock's port is torn down at PM_SUSPEND_PREPARE, while userspace is still running. The firmware acts on the display's unplug by powering the external pipe off, then reports the unplug through its hotplug callback. The compositor then turns the CRTC off, with the mode still valid. The power-off sends the clear swap. The firmware accepts it but never completes it on a pipe it has powered off. The present stays in flight, because the CRTC-off path cancelled the swap watchdog. The IOMFB queue holds the abort_swaps and setPowerState(0) calls behind it, and they never reach the firmware. setPowerState(0) times out, the DCP's suspend cannot settle the queue and refuses the sleep, and ten seconds later the queue's timeout declares the coprocessor crashed. Record the firmware's own reports of a Type-C display, after the reports that are not display changes have been filtered out. One word holds the number of unplugs reported and whether the last report had a display, so it is always read whole. The CRTC notes that number, with the mux's count, wherever it claims its display: at its power-on, and at a mode set that succeeds with the CRTC kept on. The display of the CRTC's session is gone, and its pipe with it, once both of these have happened since the claim: the Type-C mux has announced the unplug, and the firmware has reported one. They come in either order. The USB4 port's teardown at the sleep takes the display away, and the firmware reports it, before the mux announces it. A display's unplug that the firmware never reported does not stand in for the next display's. The desktop hears of the unplug from the mux. When the CRTC of such a display turns off before the firmware's report, the power-off waits for the report, bounded by a named limit; firmware without the queue does not wait. Without the report it powers the pipe off as before. On firmware with the queue, the swap watchdog now also watches the clear swap, so one the pipe swallows is retired a second later rather than holding the power-off until the queue's timeout declares the coprocessor crashed. That covers any panel-less output, such as a fixed HDMI port whose display drops off at DPMS off, with the watchdog's usual retrain. An unplug report also has the watchdog retire a present the pipe had accepted, should the CRTC not turn off. Once the firmware has reported the unplug, on firmware with the IOMFB queue, the departing session's present ends. A reply still on its way lands first: a reply now wakes the channel waiters once its callback has run. A present the firmware accepted for a display that went is retired, as the swap watchdog would retire it, with its framebuffers kept until a later present completes, and only its own commit's flip is finished as failed. Each present notes the firmware's unplug count when it is begun, on the same receive path as the reports, so a present begun before the last unplug report is the departed display's, while one begun for a display reported on the pipe since is left to complete. Presents still queued are not sent: the connector is disconnected. The pipe is then sent nothing, since no scanout of ours is left to stop. Two cases still get the full power-off, which the old present no longer holds up: a display the firmware reported on the pipe since, and a pair, which stops through its own sequence. A present that cannot be retired leaves the swap watchdog armed, and nothing is sent behind it unless another display needs its power-off. A system sleep can come before the compositor turns the CRTC off. Its suspend cancels the watchdog too, so it ends the unplugged session the same way before settling the queue, waiting first for the firmware's report of an unplug the mux has announced, as the power-off does. The decision is passed to the power-off as an argument. Firmware without the IOMFB queue powers the pipe off as before. Signed-off-by: Erik Bourget <erik@ebourget.net>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: MERGE at 4261e69d
Blockers: None (wait for the queued hosted CI checks at 4261e69d — apple-build, host-tests, readiness, and KUnit matrix jobs — to finish green; kunit and pr-text have already passed).
Checked:
- Audited both commits (
b934f2d0and4261e69d, DCO present on both) across all 5 files (dcp-internal.h,dcp.c,iomfb.c,iomfb_template.c,dcp_dropped_swap_test.c):iomfb_queue_report_locked()(iomfb.c:912-924): assertsdcp->iomfb.lock, rate-limits reporting to the final expired pass ofiomfb_queue_settle(), and reads lockless channel/ACK/callback counters withREAD_ONCE()/atomic_read().dcp_typec_fw_hotplug()/dcp_typec_claim()/dcp_typec_fw_display()(dcp.c:137-188,iomfb_template.c:3281): packs the 31-bit unplug counter and connected bit into a singleu32written only on the RTKit receive path after filtering out non-display-change hotplug callbacks (typec_crtc_off,t6040_relinking,dcp_typec_relink). Bothdcp_poweron()anddcp_crtc_atomic_modeset()claim the session; either mux-first or firmware-first unplug order is handled without leaking an unreported unplug across sessions.iomfb_end_unplugged_session_h17p()(iomfb.c:1092-1172): waits up toIOMFB_UNPLUG_REPLY_MS(500 ms) onchannels_idle_wq(now woken after callback execution indcpep_handle_ack()), re-verifies!iomfb_present_unanswered(dcp)underdcp->iomfb.lock, distinguishes departed vs replacement presents viapresent_fw_unplugs(recorded on the same RX path indcp_present_begin()), retires accepted presents via sharediomfb_retire_present_locked()while retaining framebuffers, cancelsswap_watchdog_wqwithout_syncunderiomfb.lockbeforeiomfb_queue_advance(), and finishesdcp_drm_crtc_flip_lost()+drm_crtc_commit_put()outside the lock (no ref leak or lock inversion). Paired DCPs (peer_frames.active) and replaced displays (DCP_TYPEC_FW_REPLACED) still perform full pipe power-off.dcp_swap_cleared()(iomfb_template.c:2446-2454):else ifattaches cleanly toif (status)so an accepted clear swap (status == 0) on queued H17P/V27 firmware armsdcp_swap_watchdog_arm(dcp).dcp_s2r_ext_suspend()(dcp.c:10389): invokesdcp_typec_end_unplugged_for_sleep(dcp)after pausing presentation and beforeiomfb_queue_settle().
- Verified hardware evidence across three generations: exact-head J313 (M1, T8103, DCP 27.2.1, TS5 dock) before/after (
1/1baseline refused ->6/6deep sleeps + awake unplug/replug PASS,0failed units), plus J713 (M4, T8132) and J716c (M5 Max, T6050 paired DCPs) regression rows; arm64 QEMU KUnit340/340(apple-dcp-dropped-swap28/28, 15 new cases, 6/6 mutations killed) andcheckpatch.pl --strictclean.
Evidence
drivers/gpu/drm/apple/dcp.c:5777-5889(dcp_typec_fw_*,dcp_typec_end_unplugged_for_sleep),:5961-5972(dcp_poweroff),:10389(dcp_s2r_ext_suspend).drivers/gpu/drm/apple/iomfb.c:912-949(iomfb_queue_report_locked,iomfb_queue_settle),:2359-2363(dcpep_handle_ack),:4506-4564(iomfb_retire_present_locked),:4766-4917(iomfb_end_unplugged_session_h17p,iomfb_watch_unplugged_present_h17p).drivers/gpu/drm/apple/iomfb_template.c:2319-2332(dcp_present_begin),:2434-2454(dcp_swap_cleared),:3250-3282(dcpep_cb_hotplug).drivers/gpu/drm/apple/dcp_dropped_swap_test.c: 15 new KUnit cases covering all unplug/replace/sleep/late-report/held-present/unqueued branches.
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at |
|
The two patches worked together on the J313 (T8103) daily build
The combined run supports carrying both fixes in the J313 daily. |
…g tracking Tracking firmware Type-C unplug reports updated dcpep_cb_hotplug(), dcp_poweron(), dcp_poweroff(), and dcp_crtc_atomic_modeset() to call dcp_typec_fw_hotplug(), dcp_typec_claim(), and dcp_typec_fw_unplug_wait(), added the pipe_unplugged argument to _dcp_poweroff(), and placed iomfb_end_unplugged_session_h17p() ahead of iomfb_queue_atomic(). Update the four host-test harnesses that extract those functions: - rate.py (publication-hpd): stub dcp_typec_fw_hotplug(). - lifecycle.py (stale-crtc-poweroff): verify dcp_typec_claim() via dcp_crtc_atomic_modeset(), stub dcp_typec_fw_unplug_wait(), and accept pipe_unplugged in _dcp_poweroff(). - dcpext26-queue-tests.py: end the iomfb.c slice at iomfb_atomic_release() and append iomfb_queue_atomic() explicitly. - backlight-coldboot-tests.py: stub dcp_typec_claim(). Signed-off-by: Erik Bourget <erik@ebourget.net>
Signed-off-by: Erik Bourget <erik@ebourget.net>
|
Fixed the Changes (
Forward merge of Checks at
Hardware rows / PR body: Scrubbed internal build names from the PR description and updated |
|
The merge with |
|
This needs a merge of |
Combine the Type-C unplug present-retirement path with main's shared iomfb_retire_present_locked_h17p() helper (from #3305): - Return an explicit iomfb_retire_result (none, full, done) from iomfb_retire_present_locked_h17p() so watchdog, paired-stop, and unplug callers all share the same retirement, framebuffer-retention, watchdog-cancel (before iomfb_queue_advance()), and peer retired-ID recording path while preserving each caller's admission checks (deadline vs channels-idle) and full-table handling. - Preserve paired-stop teardown when a firmware-27 paired transition is in flight (peer_transition_active) as well as when peer_frames.active is set. - Keep both iomfb_pause_peer() and iomfb_queue_report_locked() in iomfb.c and both declarations in dcp-internal.h. Signed-off-by: Erik Bourget <erik@ebourget.net>
Add KUnit coverage in apple-dcp-dropped-swap for the combined iomfb_retire_present_locked_h17p() paths: - verify iomfb_retire_stalled_present_h17p() returns false when the retired-present table is full; - verify iomfb_end_unplugged_session_h17p() holds the present and re-arms the watchdog while channels are busy, cancels the watchdog without resetting retrain tracking when retiring, retains dropped scanout buffers, and falls through to paired power-off while a firmware-27 paired transition is active. Signed-off-by: Erik Bourget <erik@ebourget.net>
|
We carry this PR in our J313 (M1 Air, T8103) daily kernel alongside #3523 (now on When deep-sleeping a docked J313 with an external firmware-27 display lit (or unplugging under a lit CRTC), USB4 teardown caused firmware to power off the pipe before CRTC power-off sent its clear swap; firmware swallowed that swap, stalling Running smoothly in our J313 daily kernel for docked deep sleep and external display reconnect. |
|
@DjDeveloperr @RyanTheTide Merged Combined
Checks & J313 hardware row at
Updated the PR body with the |
RyanTheTide
left a comment
There was a problem hiding this comment.
Reviewed the #3305 merge resolution and guard tests at 7afbc15. The watchdog keeps its deadline gate. Paired stop and unplug still require idle channels, and a full retired table leaves the pending present and references untouched. Successful unplug retirement keeps the dropped buffers and lets the paired stop run during a transition. The exact-head dropped-swap suite reports 30/30 with lock proving enabled.
DjDeveloperr
left a comment
There was a problem hiding this comment.
drivers/gpu/drm/apple/iomfb.c:4637 drops #3305’s 100 ms follow-up settle when the retired table is full. The caller in dcp-peer-runtime-v27.inc:359 uses the return value to decide whether to wait again. A full table leaves the accepted present in flight, and a later completion still clears the retired entries. In a host reproduction using both versions of the helper and a completion at 550 ms, main settled successfully, while this head returned -EBUSY at 500 ms. Returning res != IOMFB_RETIRE_NONE restored the retry in the same reproduction. Please keep peer-ID recording and vblank limited to IOMFB_RETIRE_DONE, preserve the retry for IOMFB_RETIRE_FULL, and update the regression test to cover a late completion.
…s full In iomfb_retire_stalled_present_h17p(), returning res == IOMFB_RETIRE_DONE dropped the 100 ms follow-up iomfb_queue_settle() in dcp_peer_stop_v27_once() whenever the retired-present table was full (IOMFB_RETIRE_FULL). Because a full table leaves the accepted present in flight, a late completion arriving during that window still finishes the present and clears the retired entries. Keep dcp_peer_record_retired_v27() and dcp_drm_crtc_vblank() gated on IOMFB_RETIRE_DONE so an unretired present is neither recorded as retired on the peer nor prematurely signalled, while returning res != IOMFB_RETIRE_NONE to preserve the follow-up settle retry. Update stalled_present_retired_test to verify peer retired-ID recording and vblank gating on full vs retired states, and add stalled_present_full_late_completion_test covering a late completion settling the queue during the follow-up window. Signed-off-by: Erik Bourget <erik@ebourget.net>
|
Good catch — fixed in
Updated Verified at
|
RyanTheTide
left a comment
There was a problem hiding this comment.
Rechecked the full-table case at d95defac. FULL now takes the caller’s 100 ms follow-up settle, while peer retirement recording and vblank remain DONE-only. The new KUnit case exercises the late completion and checks the queue settles, the retired table clears, and framebuffer references remain correct. The author reports 31/31 dropped-swap tests and a clean exact-head docked J313 boot.
DjDeveloperr
left a comment
There was a problem hiding this comment.
Rechecked d95defac. A full retired-present table now preserves the 100 ms follow-up settle, and only a successful retirement records the peer ID and signals vblank. The late-completion test covers the reported failure, including clearing the retired table and retaining the right framebuffer references. The author reports 31/31 dropped-swap tests passing. Hosted CI and a docked J313 sleep and reconnect run on this head remain pending.
|
Merging at |
Reconcile the #3273 dock-display present-retirement, Type-C release, and host-test changes with main (c948713, including #2673, #3655, and #3939): - drivers/gpu/drm/apple/dcp.c, dcp-internal.h: drop the removed dcpext_scanout_* hooks from dcp_dptx_connect_raw() and dcp_dptx_release_locked(), keep release_owed and the AFK release ticket, retain both dcp_swap_watchdog_keep() and dcp_swap_watchdog_cancel(), and keep main's dcp_typec_fw_unplug_wait() + _dcp_poweroff(dcp, pipe_unplugged) in dcp_poweroff() alongside iomfb_present_lost(dcp, true). - drivers/gpu/drm/apple/iomfb.c: combine iomfb_retire_dropped_present_h17p() attachment reporting with main's shared iomfb_retire_present_locked_h17p() helper while keeping iomfb_present_begun_h17p() and iomfb_present_lost(). - drivers/gpu/drm/apple/iomfb_template.c, dcp_dropped_swap_test.c: record both iomfb_present_begun_h17p() attachment and present_fw_unplugs in dcp_present_begin() and dropped_test_start(). - tools/testing/selftests/drivers/gpu/apple-dcp/edid.py, lifecycle.py, tools/asahi/dock-display-replug-tests.py: keep both the AFK ticket fields in struct epic_cmd_info / apple_dcp_afkep and main's T6030 firmware 27.2 sleep stub (j516s_panel_service) in edid.py, and reconcile poweroff_replug / dock-display-replug mocks with _dcp_poweroff(), dcp_swap_watchdog_cancel(), and iomfb_retire_present_locked_h17p(). Signed-off-by: Erik Bourget <erik@ebourget.net>
What: On firmware-27 external display processors, a Type-C display unplugged under a lit CRTC is left powered off by the firmware. The power-off therefore no longer sends the clear swap and teardown, which the firmware swallows. On the M1 MacBook Air that swallowed clear swap held the IOMFB queue: every docked deep sleep with a lit external display was refused, and the dcpext was declared crashed, dark until a reboot. A second commit reports what an unsettled IOMFB queue is still waiting for.
Tested: At
7afbc1520a85(forward merge oforigin/maind148fbda6dcaincluding#3305at7f3f64a9e359, folding unplug retirement intoiomfb_retire_present_locked_h17p(), plus combined KUnit guards at7afbc1520a85):3840x2160@120on271c00000.dcp) at7afbc1520a85: clean boot (0failed units,eDP-12560x1600@60+DP-23840x2160@120+ TS5 EthernetenP1p3s0UP,0new kernel errors);DP-2DPMS off/on PASS (0errors); docked deep-sleep attempt (rtcwake -d /dev/rtc1 -m mem -s 15,func dcp_poweroff +p): external271c00000.dcpPASS — took#3655's combined unplugged-session retirement path (CRTC off after its display was unplugged: leaving the current connection alone, and the pipe the unplug powered off),0IOMFB/setPowerState(0)timeouts,0crashes, and cleanly restoreddpin0,DP-23840x2160@120, andenP1p3s0. Full sleep entry onmain(645b086d9989..d148fbda6dca) is currently aborted by an unrelated internal panel231c00000.dcpcrash onset_power_state(0)(-16), which reproduces identically on plainorigin/main645b086d9989without#3655.7afbc1520a85: full J313 arm64 LLVM=1 kernel build (0warnings indrivers/gpu/drm/apple/); arm64 QEMU KUnit (topology.kunitconfig233/234with1skipped andapple-dcp-dropped-swap30/30includingstalled_present_retired_testandunplugged_combined_retire_guards_test;PROVE_LOCKING=yapple-dcp-dropped-swap30/30;display.kunitconfig201/202with1skipped;tests/.kunitconfig117/117);dcpext26-queue-tests(+--drop-v27-close)2/2,dcp-peer-shown-tests(+--always-shown,--owner-only)3/3,backlight-coldboot-tests(+--negative-controls)2/2, andapple-dcp(publication-hpd,stale-crtc-poweroff,dropped-swap-teardown,connected-irq-hpd-to-firmware,dcp-sink-irq-fallback,displaypass; 14 unrelated fixtures hit Clang 23-Wunused-but-set-global);checkpatch.pl --stricton7afbc1520a85clean (0errors,0warnings).4261e69d1e9a: J313 M1 Air passed 6/6 sleeps in one boot (docked lit 3/3, docked DPMS-off, unplug while awake, undocked sleep, replug + docked sleep) while controlmaind02c84abc8derefused docked sleep and crashed271c00000.dcp; J713 M4 Air (two docked 4K60 displays on its daily + these commits) passed 3/4 docked deep sleeps + DPMS; J716c M5 Max (two docked 4K240 paired displays on its daily + these commits) passed DPMS, docked s2idle, and unplug while awake. Details in Evidence.Risk: two-way door · Macs whose external DCP uses the firmware-27 / H17P IOMFB queue (M1 on firmware 27, M4 and M5 dcpexts); others unchanged
Not yet: Full docked deep-sleep completion on J313 at
7afbc1520a85is currently gated by the unrelatedorigin/maininternal231c00000.dcpset_power_state(0)crash (reproduced identically on plainmain645b086d9989;271c00000.dcpitself passes cleanly at7afbc1520a85); M4 and M5 rows onmainitself (maincannot drive the M4's dock without#3273, and the M5 rows ran on its daily, which carries open DCP PRs; deep sleep on the M5 resets on every kernel, including the default).Details
The failure. At
PM_SUSPEND_PREPAREthe USB4 port is torn down while userspace still runs. The firmware loses the DisplayPort sink, powers the external pipe off and reports the unplug. The Type-C mux announces the unplug too (dcp_dptx_disconnect_oob()), and the compositor turns the CRTC off with the mode still valid. The power-off sends the clear swap. The firmware accepts it but never completes it on a pipe it has powered off. The swap watchdog had been cancelled by the CRTC-off path, so the present stays in flight.abort_swapsandsetPowerState(0)wait behind it in the queue,setPowerState(0)times out, the DCP suspend cannot settle the queue and refuses the sleep, and ten seconds later the queue timeout declares the coprocessor crashed.The change.
dcpep_cb_hotplug(). The CRTC notes the count, with the mux's count, wherever it claims its display: at its power-on, and at a mode set that succeeds with the CRTC kept on (dcp_typec_claim()).DCP_TYPEC_FW_UNPLUG_MS. Without it, the power-off runs as before.iomfb_end_unplugged_session_h17p()sends nothing:iomfb_retire_present_locked_h17p()helper (shared with the swap watchdog and#3305's paired-stop stalled-present path): its framebuffers are kept until a later present completes, its swap watchdog is cancelled viadcp_swap_watchdog_cancel()beforeiomfb_queue_advance(), and any retired paired swap ID is recorded on the peer outsidedcp->iomfb.lockviadcp_peer_record_retired_v27(). Each present notes the firmware's unplug count when it is begun, on the same receive path as the reports, so one begun for a display reported on the pipe since is left to complete;dcp_drm_crtc_flip_lost().iomfb_atomic_start()).peer_transition_activeorpeer_frames.active), which stops through its own sequence.Combined retirement with
#3305(7f3f64a9e359,7afbc1520a85).iomfb_retire_present_locked_h17p()returns a 3-stateenum iomfb_retire_result(IOMFB_RETIRE_NONE,IOMFB_RETIRE_FULL,IOMFB_RETIRE_DONE) and takes explicitcheck_deadline,check_channels_idle, andcancel_watchdogflags.iomfb_retire_dropped_present_h17p()) checks deadline only and returnstrueonIOMFB_RETIRE_FULLso the watchdog stops re-arming.iomfb_retire_stalled_present_h17p()) checksiomfb_channels_idle(), cancels the watchdog viadcp_swap_watchdog_cancel()beforeiomfb_queue_advance(), records retired peer IDs outsidedcp->iomfb.lock, and returnsfalseonIOMFB_RETIRE_FULLinstead of spuriously waking vblank and retrying a 100 ms settle that can only time out.iomfb_end_unplugged_session_h17p()) uses the same channels-idle + watchdog-cancel + peer-retire path, keepsdrm_crtc_commitreference handling balanced across retired and held paths, and checkspeer_transition_activealongsidepeer_frames.activeso an unplug racing a firmware-27 paired transition falls through to paired power-off.Known limits.
Overlap with #3273. #3273 (T8132 firmware-27 dock displays) also retires a present whose display went: it keys each present to the Type-C attachment it was begun for and lets the swap watchdog retire it. This PR retires such a present at once, from the power-off and the sleep paths, through the shared retirement helper (
iomfb_retire_present_locked_h17p()). They touch the same functions. Whichever lands second folds the two into one mechanism. The M4 row below merges both and runs them together.Diagnostic commit. When a queue settle times out, the IOMFB queue's state is reported, rate-limited: the active transaction, queued ones, the present in flight, plus channel depths, ACKs and callbacks sampled outside the lock. This names the cause of a refused sleep.
Host-test harness fix (
be574d3b3b94). Updates the four host-test extractors that pulldcpep_cb_hotplug(),dcp_poweron(),dcp_poweroff(),dcp_crtc_atomic_modeset(), andiomfb_queue_atomic()out of the driver: stubsdcp_typec_fw_hotplug()inrate.py(publication-hpd), checksdcp_typec_claim()viadcp_crtc_atomic_modeset()and stubsdcp_typec_fw_unplug_wait()/_dcp_poweroff(..., pipe_unplugged)inlifecycle.py(stale-crtc-poweroff), stops theiomfb.cslice atiomfb_atomic_release()and appendsiomfb_queue_atomic()indcpext26-queue-tests.py, and stubsdcp_typec_claim()inbacklight-coldboot-tests.py.Evidence
J313 (M1 Air, T8103), DCP firmware 27.2.1, CalDigit TS5, external
3840x2160@120on271c00000.dcp— refreshed row at7afbc1520a85(origin/maind148fbda6dca+#3655combined with#3305): Default command line, one-shot trial kernel.0failed units,eDP-12560x1600@60+DP-23840x2160@120+ TS5 EthernetenP1p3s0UP,0new kernel errors.DP-2(271c00000.dcp) DPMS off/on: PASS (dpmsStatus: 0 -> 1,3840x2160@120 Hz,0errors).rtcwake -d /dev/rtc1 -m mem -s 15, fresh boot,func dcp_poweroff +p):271c00000.dcpPASS:0IOMFB/setPowerState(0)timeouts,0271c00000.dcpcrashes;DP-2restored at3840x2160@120 Hz(dpmsStatus: 1) and TS5 Ethernet (enP1p3s0) UP.231c00000.dcpcrashed onset_power_state(0)(RTKit: co-processor has crashed,no reply to set_power_state(0): -110,PM: failed to suspend: error -16), aborting deep sleep. A matched control run on plainorigin/main(645b086d9989, without#3655) reproduces the identical internal231c00000.dcpcrash (ESR=0x96000061, FAR=0xffffffff1018c014,error -16) on both docked sleep andeDP-1DPMS-off.Prior J313 (M1 Air, T8103) matrix at
4261e69d1e9a(pre-regressionmaind02c84abc8de): Kernel config: the J313 daily config. Default command line;rtcwake -d rtc1 -m mem -s 30in a systemd unit.271c00000.dcp-16, thenIOMFB transaction timed out ... present=1 accepted=1, connector brokenThen a replug while awake on
4261e69d1e9a: DP-2 back at 3840x2160, followed by one more docked deep sleep on the new path, for 6/6 sleeps in that boot.J713 (M4 Air, T8132), at
4261e69d1e9amerged into its daily (main219311530ef0+ #3273 and other open PRs; the conflicts were in the shared retirement helper and the older base's lack ofchannels_idle_wq). Two lit 3840x2160@60 displays on the TS5, with the dcpexts 286e00000 / 48ae00000 on firmware 27:Type-C DPTX reconnect failed after 1 retries: -116)The trial boot has no kernel error lines that the J713 daily boot lacks. The one reset left nothing in the journal past the test marker. The displays not returning after a docked wake on the J713 daily is separate from this change.
J716c (M5 Max, T6050), at
4261e69d1e9amerged into its daily (basea812cfe477e2). That daily carries a third retirement variant,iomfb_retire_stalled_present_h17p(), which the merge keeps. Two lit 3840x2160@240 displays on the TS5, each on a paired DCP. The trial was one boot of a chained trial Stage 2 under the watchdog dead-man:a812cfe477e2)DP tunnel clock N stopped30 s laterNo kernel error lines that the default boot lacks. Deep sleep can't be judged on this M5: it resets about 6 s in on every kernel, and an RTC alarm doesn't wake it from s2idle on either kernel.
KUnit at
7afbc1520a85(qemu arm64,LLVM=1,drivers/gpu/drm/apple/tests):topology.kunitconfig:233 passed / 1 skipped(apple_g17_rx_util_min_test, needsCONFIG_UCLAMP_TASK,234total;apple-dcp-dropped-swap30/30passed, includingstalled_present_retired_testfull-table check andunplugged_combined_retire_guards_test).PROVE_LOCKING=ywithDRM_APPLE_KUNIT_TEST=y:apple-dcp-dropped-swap30/30passed.display.kunitconfig:201 passed / 1 skipped(202total).tests/.kunitconfig:117/117passed.Host builds & tests at
7afbc1520a85:0errors,0warnings indrivers/gpu/drm/apple/.dcpext26-queue-testsanddcpext26-queue-tests --drop-v27-close(negative control killed):2/2pass.dcp-peer-shown-tests(+--always-shown,--owner-only):3/3pass.backlight-coldboot-testsandbacklight-coldboot-tests --negative-controls:2/2pass.apple-dcp(publication-hpd,stale-crtc-poweroff,dropped-swap-teardown,connected-irq-hpd-to-firmware,dcp-sink-irq-fallback,displaypass; 14 unrelated fixtures hit Clang 23-Wunused-but-set-globalunder-Wall -Werror).checkpatch.pl --strict --git 7f3f64a9e359..7afbc1520a85:0 errors, 0 warnings, 0 checks.git diff --check origin/main...7afbc1520a85clean.