Repository navigation
j613: second external display with the lid closed (review) - #2
Open
GehrmannSolutions wants to merge 10000 commits into
Open
GehrmannSolutions wants to merge 10000 commits into
GehrmannSolutions wants to merge 10000 commits into
Conversation
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.
Review-only PR inside this fork (not proposed to omacom/linux-aurora yet). Base
review-base/integration-54f78d60c= omacom integration/aurora 54f78d6. Updated after the review (head 5bafd20).Follow-up to omacom#114 / omacom#103, as suggested in omacom#103: the lid-closed dual-display set on top of the merged J613 dcpext series.
What
On the J613 (MacBook Air 13" M3) with the lid open, one external display runs on dcpext and a second one waits (the log line and takeover from omacom#114). macOS does more with the lid closed: the panel is off, so the internal DCP's pipe drives a second external display on the left-front USB-C port (
IOMFBIntDcpUsedForExtWhenLidClose). This series does the same:typec-routescontainer with no enabled route no longer takes the internal panel down, for every DCP except the external ones. A route that fails to register on the panel's DCP is disabled, and the panel goes on without it; so is the route of a panel DCP whose probe fails for good, so the left-front port never waits for it. Needed because patch 2 adds a route that stays disabled when the gate does not enable dcpext.dispext0,0, from the J613 ADT), DPTX target 1, and a second endpoint on the front connector.the display on USB-C Left-front takes over this pipeline.Other machines and a J613 without the new route (no marker,
apple_t8122_display.dcpext=0, older DT) are unchanged. Like omacom#114, the series needs the boot loader to setapple,t8122-dcpext-firmware-ready(the m1n1 half in omacom#103).Tested
Kernel: this branch on integration/aurora
54f78d60c. W=1 build of every commit with no new warnings in drm/apple and soc/apple (the review fixes: compile-checked per commit, full W=1 build of the head); checkpatch clean apart from the trailers. DTB built from this branch, m1n1 with the marker. Test setup: a 3440x1440 monitor (through its USB-C hub) on the left-back port, a 1080p portable on the left-front port, and Hyprland.Failed to resumeany more. Before the fixes (same branch): 2 runs, see the notes below.Review
I ran a Claude Code review over the series (in the fork, linked above). Fixed in the patches they belong to: the lid work could run during resume, before DRM restored its state, which made
drm_mode_config_helper_resumefail with -22 for every CRTC (that was the error we had taken as harmless); the lid-close black frame could race a commit's swap over which framebuffer is on screen; a Type-C display on the internal pipe had the panel's framebuffer-size rule instead of the external one; a failing panel-DCP probe left the route enabled; any SW_LID device (also uinput) set the lid state; a refused panel power-on was only logged at info level. Left for a follow-up:phys/mux-controlssit on the static dcp node even while the route is disabled (fw_devlink then makes the panel wait forphy-apple-atc, which is loaded on J613 anyway for USB), and some duplicated route helpers in dcp-fabric.c.Known, not changed here
DCPDPServiceinstead ofDCPDP13Service, without link training, with a shortTimingElements(48 kB instead of 281 kB) and no usable mode. The driver rejected it (failed to parse modes) and the firmware dropped the display. After that dcpext could not light it again, even after a replug (the link went down in the middle of the mode set), until a reboot. The same run on the series before the rebase passed right after. That resume also ran into the -22 restore failure fixed above, so the dcpext display was not restored by DRM and was set up again from scratch; that may well have been the trigger. Not seen since the fix (2 runs), and I collect the rejected description if it happens again.(Code, tests and this text by TARS, my Claude Code agent, with me plugging displays and reviewing; Signed-off-by is mine.)
🤖 Generated with Claude Code
https://claude.ai/code/session_017YMqWu7A3VwEYtHaA1TusK