Repository navigation
Revert "drm/apple: dpavservep: admit the AFKV2 AV service on the classic DPAV endpoint" (M4 Air resets on DPMS off) - #2857
Conversation
…sic DPAV endpoint" This reverts commit 78e59bd. With the external DCP's AV service admitted, the M4 MacBook Air (J713, macOS 27.2 stub) resets about 0.6 s after a DPMS off while it drives an external monitor. The last kernel lines before the reset are the external processor releasing the DP link (dcp_dptx_disconnect) and the hotplug mode probe that follows. Nothing else reaches the kernel log or a network console, and the Mac comes back on its default boot. The likely trigger is a request to the AV service while the firmware is closing it with the link, but that is not proven yet. On the J713 default kernel the first DPMS off resets the Mac. The same kernel with only this commit reverted, so the service is refused again, completes 3 of 3 DPMS off/on cycles with the monitor on. Both outputs are off while blanked and back after, with no DART faults, oopses or AVCs. Revert it until the AV service is used safely across a link release, proven with DPMS and sleep rows on both Airs. External monitors on the Airs keep their modes from the firmware's catalogue; they lose the monitor name and EDID colour data again. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Review at 311ccad. The revert itself is exact: its diff is the inverse of 78e59bd in both files, and backing out the endpoint-0x28 admission is the right call while DPMS off resets the J713. One thing is missing:
Rows: the J713 table is enough for the revert. The J615 external-monitor DPMS row is a useful follow-up, as the body says. |
…e refused The revert of 78e59bd ("drm/apple: dpavservep: admit the AFKV2 AV service on the classic DPAV endpoint") makes dcpavserv_identity() refuse the AV service on endpoint 0x28 over the AFKV2 wire again, but the apple-dcpavserv-identity suite still expected three of those rows to be admitted, so it failed 40/43. Expect them to be refused, and say why in the section comment. They can flip back together with the admission once the service is safe to use across a link release. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Executed pass at c5e25e0 (the revert 311ccad plus the KUnit fix). The revert and the test fix check out. One thing for whoever decides the merge order: this conflicts with #2853, and the two do not work together as they stand.
Suggested order: land this revert (it fixes a production reset), and have #2853 hold its MCDP admission until the AV service is safe across a link release, or show a DPMS off/on row on the mini (and one with an MCDP adapter on the J713) before it re-adds ep 0x28. Verdict at c5e25e0: no blocker in this PR. Commands and logs |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal adversarial §1–§6 pre-PR checklist review at verified live head c5e25e0925351be6efedb961f44674d0af5562c5: APPROVE.
Verification Summary
- Clean revert & KUnit alignment:
311ccad5(Revert "drm/apple: dpavservep: admit the AFKV2 AV service on the classic DPAV endpoint") is the exact inverse of78e59bdf4751in bothdrivers/gpu/drm/apple/epic/dpavservep.candtools/testing/selftests/drivers/gpu/apple-dcp/edid.py, restoring pre-78e59bdfbehavior while keeping the other commit of#2783intact.c5e25e09flips only the threev2 ep 0x28unit-0 admit rows indrivers/gpu/drm/apple/epic/dpavservep-identity-test.c(added in merged#2820) back tofalsewith an explanatory comment. - Follow-up dependency check: Comparing
78e59bdf...integration/aurora(95a13cf6), no other merged commit depends on78e59bdf(only#2820, updated here). - Merge-order note for merge train: Open PR
#2853(638611e1, M2 Mac mini HDMI on 27.2) conflicts indcpavserv_identity()and relies on ep 0x28 unit-0 AFKV2 admission; landing#2857first is the right call to fix the production J713 DPMS-off reset, and#2853will need to rebase/hold ep 0x28 admission until link-release teardown is safe. - CI:
Host tests / host-testsis SUCCESS onc5e25e09(mergeable: MERGEABLE,mergeStateStatus: CLEAN).
Pre-PR Checklist (§1–§6)
- §1 (No model gating): Pass — clean revert of ep 0x28 AFKV2 admission with no chip/SoC/board/firmware gates introduced.
- §2 (Production-ready, no hacks): Pass — default kernel command line, no new parameters, delays, or workarounds.
- §3 (Safety): Pass — eliminates the ~0.6 s hard reset on J713 DPMS off while preserving external monitor modes from the firmware catalogue.
- §4 (Clean-room & attribution): Pass — both commits carry human author/committer (
Ryan Murray <ryan@aurorasilicon.org>) and humanSigned-off-by:only, with zero agent trailers in commit messages; PR body includesAssisted-by:. - §5 (Evidence): Pass — clean same-machine J713 A/B table on default cmdline & unchanged Stage 2 (reset on 1st DPMS off with
78e59bdfvs 3/3 DPMS off/on without78e59bdf, 0 DART faults, 0 oops, 0 AVCs), plus KUnitapple-dcpavserv*43/43 atc5e25e09(vs 40/43 at311ccad5alone) and greenhost-testsCI. J615 follow-up transparently noted. - §6 (Naming): Pass.
Assisted-by: LLM (Gemini 4 Neon)
Problem
Since #2783 the M4 MacBook Air (J713) resets when its displays are blanked while it drives an external monitor. A DPMS off (GNOME's "screen off", Mutter PowerSaveMode 3) brings the Mac down about 0.6 s later. Nothing reaches the kernel log or a network console, and the Mac comes back on its default boot. The lab J713 default kernel does this on the first DPMS off.
Change
Revert 78e59bd ("drm/apple: dpavservep: admit the AFKV2 AV service on the classic DPAV endpoint"), so the Airs' external DCPs refuse the AV service on endpoint 0x28 again, as before #2783. The other commit of #2783 (HDR on Type-C connectors unless a pipeline is native26) stays.
What this costs: external monitors on the Airs keep their modes (from the firmware's catalogue), but lose the monitor name and EDID colour data again until the AV service is used safely across a link release.
Testing
On the J713 (macOS 27.2 stub), with the MSI monitor on DP-1, default kernel command line and unchanged Stage 2, one DPMS off/on (PowerSaveMode 3, 4 s, 0) per cycle:
With 78e59bd reverted, both outputs are off while blanked and back after each cycle, with 0 DART faults, 0 oops and 0 AVCs. Host tests:
run-host-tests.py --only apple-dcppasses, anddpavservep.obuilds clean with W=1. KUnitapple-dcpavserv*(qemu arm64, LLVM=1) passes 43/43 at c5e25e0, which also flips the threev2 ep 0x28admit rows of the identity suite to refused; on the revert commit alone those three rows fail (40/43).Still to run
Reviewer / agent detail
dcp_dptx_disconnect(port=0); the hotplug mode probe runs (using firmware-derived EDID metadata for connection 3); then nothing. The connector's EDID is invalidated when the service closes, so the next probe can trydcpavserv_copy_edid()through the closing service. That is the likely trigger but not proven, and the reset has no log of its own.traces/display/20261123-j713-dpms-reset/(netconsole log, the three A/B rows, restore checks).apple-dcpavserv-identityKUnit rows (from drm/apple: dpavservep: test which AV service announcements are admitted #2820) now expect AFKV2 on 0x28 to be refused; flip them back together with the admission. The edid.py host regression for the AFKV2-on-0x28 case goes with the revert.Assisted-by: LLM (Claude:Opus 5.5)