Repository navigation
drm/sysfb: report eDP for framebuffer panels - #1688
joshuaswarren wants to merge 5 commits into
Conversation
67e63a5 to
667f644
Compare
|
GREEN on 667f644 Checked the split against the diff and the body against both commits. The PR touches exactly the three claimed files - simpledrm.c, the J714c dts hunk carried inside commit 1, and the simple-framebuffer binding - with no K114/K116 dtsi present, matching the split-out claim. Commit 1's provenance is stated the right way: carried unchanged from omacom/linux-aurora (cherry-pick sha recorded), the J714c hunk rebased onto the current framebuffer node and disclosed, no Signed-off-by from ed claimed, and the J714c test result attributed to ed rather than restated as this PR's own validation. The Validated-on section keeps the same discipline: build-only on the M1 at this head, the CHECK_DTBS counts attributed to the earlier body on another machine and explicitly not repeated, the K114c eDP observation attributed to an earlier tree, and the lid test named as not run with its slot plan. The binding commit closes the CHECK_DTBS warning the property would otherwise raise - the right order given #2009 depends on it. |
|
GREEN on 667f644 Independent review. No blocking items. I did not boot anything, so the lid behaviour is not something I can confirm. What I checked:
What I could not run: a full Non-blocking notes:
|
667f644 to
4b92610
Compare
|
GREEN on 4b92610 Tree identity confirmed independently: both heads resolve to tree 4b96fb09bcfcb9438a4d31939cb6175439610dc1, the compare shows the binding commit rewritten with only the yaml in the reword, so nothing but the commit message changed. The reworded message and body attribute the evidence correctly for the split: the J714c node carries apple,internal-panel from the previous commit, the K114c/K114s/K116c/K116s nodes get it in #2009 which lands after, and the CHECK_DTBS numbers are attributed to an earlier form on another machine and not repeated at this head. My previous verdict on the code carries unchanged. |
|
GREEN on 4b92610 The tree is unchanged from my review of 667f644. Both heads have tree The reworded binding commit message is accurate. It says only the J714c node carries the property in the previous commit, and that the K114c, K114s, K116c and K116s nodes get it in a later device-tree change that fails CHECK_DTBS without this binding. I confirmed that last point earlier: a framebuffer node with |
The K114c and K116c panel is a simpledrm framebuffer until DCP drives it, and its connector shows up as Unknown-1. Omarchy treats a connector that is not eDP, LVDS or DSI as an external monitor and holds a block inhibitor on handle-lid-switch, so closing the lid never suspends. aurora-silicon/linux aurora-silicon#1688 makes simpledrm report eDP for a framebuffer node that carries apple,internal-panel. Put the property on the shared K114/K116 framebuffer node, as the J714c node already has it. Compile check only: the K114c dtb builds and dtc shows the property on framebuffer@0; simpledrm.o builds. Not booted on a K114c yet. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
|
Thanks for splitting this out, and to ed for the original. One design point. The binding already has a Could simpledrm report eDP when the framebuffer node has a ed's Signed-off-by on the first commit is needed before merge. Row: K114c or J714c booted without the DCP handoff. After that, we can run a no-regression row on our M1 Pro. |
|
[Joshua's agent] The design point is right and we will rework the PR along those lines: report eDP when the framebuffer node carries the One dependency shapes the order: the phandle needs a panel node to point at. The panel nodes are still open (#2183 for the K114c panel, the K114/K116 set in #2009), so the rework stacks behind them. The driver change itself (phandle implies eDP) is independent and lands with the rework. ed's Signed-off-by will be on the carried commit before merge - we will ask him to confirm it (here or in the team chat), not add it on his behalf. The requested row (booted without the DCP handoff: |
|
Thanks for taking the
Once that is up, we will run a no-regression row on our M1 Pro, which already has |
|
e65fe26 makes simpledrm report eDP when the existing The J714c DTB resolves The no-DCP eDP and lid row, and ed's own sign-off, remain open. The M1 Pro regression row can follow when the same head is ready. |
|
Thanks, e65fe26 is the shape we hoped for. simpledrm reports eDP when the Before review:
This changes the connector type on every Apple laptop tree with |
Report eDP when the framebuffer node points to a panel. Leave the connector type unchanged when the panel phandle does not resolve. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
e65fe26 to
02d7b6c
Compare
|
Thanks, 8da6768 and 02d7b6c are the clean two-commit history we asked for, and the title and body match. Two small things:
Still owed, as you say: the no-DCP-handoff row with |
|
The J714c panel now sits under I'll add the |
|
Thanks, b1cb83a puts the J714c panel under One small thing: b1cb83a only moves the node that 02d7b6c added. Please fold it into 02d7b6c when you add the Nothing else from us at this head. As you say, the no-handoff hardware row is still owed ( |
Link the boot framebuffer to the panel under DCP. Keep the panel in one place so the boot framebuffer and a later DCP handoff can use the same description. The dimensions come from J714s. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
b1cb83a to
971e41f
Compare
|
I’ll add the |
|
On 110861f, simpledrm still registers its connector as DRM_MODE_CONNECTOR_Unknown and the J714c framebuffer has no panel phandle, so neither commit is on the tip. Both commits (8da6768, 971e41f) apply cleanly on 110861f. @joshuaswarren, two things are still open: the Suggested-by trailer for ed on 8da6768, and the row without the DCP handoff (card0-eDP-1, no handle-lid-switch inhibitor, lid suspend and resume in the journal, and the 302 x 196 mm size confirmed). #2009 depends on this PR. Build check of 110861f plus this change (arm64, LLVM=1, Image, dtbs and every directory it touches, Fedora config plus asahi.config): builds, no warnings in the files it touches; CHECK_DTBS over every Apple DTB: no new warnings against the tip. |
|
@joshuaswarren checking open drafts today. To come out of draft, this still needs:
If it's no longer needed, say so here and we'll close it. Otherwise it stays open as a draft until these are done. |
|
Tested on J716s (16-inch M5 Pro, 27.3 beta stub) at 971e41f, with the J716s framebuffer linked to its panel the same
|
Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
|
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 0e6e26779dd8
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: - drivers/gpu/drm/sysfb/simpledrm.c: clean 3-line change selecting DRM_MODE_CONNECTOR_eDP only when of_parse_phandle(of_node, "panel", 0) resolves, keeping DRM_MODE_CONNECTOR_Unknown otherwise (no board/SoC gate).
arch/arm64/boot/dts/apple/t6050-j714c.dts: adds&dcppanelnode and linksframebuffer0viapanel = <&panel>;;0e6e2677cleanly mergesmain(844781f1b56b).- Checked for Apple material, tool attribution, and private serials: clean;
MERGEABLEonmain.
Follow-ups (not blocking): queued CI; exact-head simpledrm eDP row, J714c panel dimensions
DjDeveloperr
left a comment
There was a problem hiding this comment.
The simpledrm change is right: eDP only when the panel phandle resolves, Unknown otherwise.
One blocker, the same one as on #2009. arch/arm64/boot/dts/apple/t6050-j714c.dts:49: panel is a fw_devlink supplier property and &panel sits under &dcp. On the J714c the DCP is still disabled, so nothing shows today, but rolotrealanis98's J716s run at this head shows what happens as soon as the DCP is handed over: simpledrm only probes after apple-drm, so the session gets two eDP connectors, and without apple-drm it never probes. Upstream pairs the phandle with post-init-providers (t600x-j314-j316.dtsi:74-75), which keeps the size lookup and drops the probe ordering. Fix below.
Still owed after that, as in Ryan's list: the Suggested-by: for ed on 8da6768, the J714c row without the DCP handoff (card0-eDP-1, no handle-lid-switch inhibitor, lid suspend/resume, 302 x 196 mm confirmed), and a no-regression row on an older laptop, since every tree with panel = <&panel> now gets an eDP connector from simpledrm.
| /* Scanned out by the internal DCP, handed off or not. */ | ||
| display = <&dcp>; | ||
| status = "disabled"; | ||
| panel = <&panel>; |
There was a problem hiding this comment.
| panel = <&panel>; | |
| panel = <&panel>; | |
| post-init-providers = <&panel>; |
`panel` is a fw_devlink supplier property, and the panel node sits under the DCP. Once the DCP is handed over, simpledrm waits for apple-drm to probe first, so it is never kicked out and the session gets two eDP connectors. Without apple-drm it never probes at all. List the panel as a post-init provider next to the phandle, as the t600x laptops do. simpledrm keeps the panel size lookup, and the probe order no longer depends on it. Signed-off-by: DjDeveloperr <hey@djdev.me>
|
Pushed the fix for this morning's blocker as Check: Still owed before merge:
|
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: MERGE at 2aa0ef41, after the hardware rows below.
Blockers: none. My earlier blocker is fixed. The J714c framebuffer now lists the panel in post-init-providers next to panel, so fw_devlink no longer holds simpledrm's probe until the DCP probes.
Checked: simpledrm reports eDP only when the panel phandle resolves and keeps Unknown otherwise, with no gate. Every Apple tree on main that links panel on its framebuffer already pairs it with post-init-providers. So none of the laptops that now get an eDP connector from simpledrm picks up the probe-order problem. Built against current main, the J714c DTB gains only the panel node under the DCP and the framebuffer's two properties, and dtc reports the same warnings. CI is green.
Still owed before merge:
- J714c without the DCP handoff:
card0-eDP-1from simpledrm, nohandle-lid-switchinhibitor, one lid suspend/resume in the journal, and the 302 x 196 mm size confirmed. - A no-regression boot on an older laptop that already links
panel(a J414s, for example): one DRM device once apple-drm takes over, no second eDP connector, and a lid suspend/resume.
I added ed's credit and the post-init-providers note to the body.
Evidence
- I built J714c with cpp and dtc and compared the
dtc -strees:0e6e2677to2aa0ef41adds onlypost-init-providers; main to main plus this PR addspanel,post-init-providersandpanel: panelunder&dcp. - Trees on main with
panel = <&panel>on framebuffer0: t600x-j314-j316, t602x-j414-j416, t6030/t6031/t6034 J514/J516, t8103 J293/J313/J456/J457, t8112 J413/J415/J493, t8122 J504/jxxx, t8140 J700. Each haspost-init-providers = <&panel>. 0e6e2677matches a clean merge of its parents.
There was a problem hiding this comment.
Verdict: MERGE at 2aa0ef4
Checked: The only new change pairs the panel phandle with post-init-providers on the J714c boot framebuffer. This follows the existing Apple framebuffer pattern and avoids a driver-link probe dependency on the display coprocessor. The loader still controls framebuffer enablement and simpledrm still falls back to an unknown connector with no panel phandle. Exact-head DT checks passed.
|
M1 Pro (J316s) boot half at exact head B = one-shot kernel built from
Restored afterwards: saved |
simpledrm's connector keeps its eDP number until the last reference to the removed device goes away, which can be an open file. The driver taking over also creates its own connector before it removes simpledrm: apple-drm does so in apple_drm_init_dcp(), because a takeover it has to refuse must leave the boot framebuffer on the screen. On an M1 Pro (J316s) apple-drm's panel connector therefore changed from eDP-1 to eDP-2. Compositor settings, video=eDP-1 and scripts use that name. Report eDP only if the display hardware that the framebuffer's display phandle names is disabled. No driver takes over then and simpledrm's connector is the one userspace keeps, as on a J714c without the DCP handoff. The connector stays Unknown, as before this series, if the display hardware is enabled or if the framebuffer does not name it. Fixes: 8da6768 ("drm/sysfb: report the framebuffer panel as eDP") Signed-off-by: DjDeveloperr <hey@djdev.me>
|
Pushed Cause: apple-drm creates its panel connector before it removes simpledrm, because a takeover it has to refuse must leave the boot framebuffer on screen. simpledrm also keeps its eDP number until the last open file on it closes. So reordering apple-drm or freeing the number at unplug would not be enough on its own. Change: simpledrm reports eDP only if the display hardware named by the framebuffer's Checked: the object builds with W=1 and no warnings, and checkpatch --strict has no errors. The drm KUnit suites pass on UML (635 passed, 1 skipped, including a throwaway test of the new condition). No Mac has booted this head yet. Rows owed at this head (earlier ones were at
|
J700 (MacBook Neo, T8140) at
|
| Check | Result |
|---|---|
| eDP connector name | eDP-1 on both boots, the same as main 4c6f0f70 on the #3342 base boot of 12-02. An eDP-2 would mean simpledrm held the name |
| KMS devices and drivers | card1 aurora, card2 apple-drm with DP-1 and eDP-1, no Unknown connectors. Lid holder PowerDevil, same as the stock boot |
| DRM boot lines against the #3342 base boot (findings, not judged) | no line only here, none only there |
| Sleeps (3 × s2idle, 1 × mem), kernel log, watchdog | PASS, 0 WARN, BUG, Oops or fault lines |
Not covered: the connector type before takeover can't be read on the J700, a lid-inhibitor difference against main's kernel wasn't measured, and the physical lid half and the J714c half weren't run.
DjDeveloperr
left a comment
There was a problem hiding this comment.
Reviewed 28b045c00687 on the clean merge with dc4d6f065001 (tree c2bff0581ee1). The eDP type now requires both a panel and a display phandle that points to a disabled node. A missing or enabled display keeps the mainline connector type. The display reference is released on every path, and panel dimensions, orientation and the J714c post-init-providers entry are unchanged by this commit. The extracted helper passed all three phandle controls, the J714c DTB built with the same existing warning as main, checkpatch was clean, and the earlier failing apple/pmgr-inherited host fixture passed.
The J700 PASS covers the eDP-1 name after apple-drm takeover. The changed eDP path is the one with no DCP handoff, so the J714c row still gates merge. Boot this head without a DCP handoff and check simpledrm eDP-1, 302 × 196 mm, no handle-lid-switch inhibitor, and one physical lid suspend/resume.
RyanTheTide
left a comment
There was a problem hiding this comment.
The connector type changes only when both the panel phandle and a disabled display node are present. The helper releases its reference and preserves the default connector type when DCP owns the panel. The J714c no-handoff row still needs to exercise the changed path.
What
When the boot framebuffer points to an internal panel, simpledrm reports an eDP connector instead of Unknown, but only if the node named by the framebuffer's
displayphandle is disabled. With the DCP enabled, or without adisplayphandle (J316s, J700), it stays Unknown as on main: simpledrm holds eDP index 1 until after the DCP driver makes its connector, which would turn the panel intoeDP-2.The J714c framebuffer links to the panel with the existing
panelbinding and lists it inpost-init-providers, as the other Apple laptop trees do, so fw_devlink does not hold simpledrm's probe behind the DCP. The loader still controls enabling the framebuffer. The 302 by 196 mm size comes from J714s and is unconfirmed on J714c.Thanks to ed, whose earlier patch first reported the built-in panel as eDP.
Tested
CI passes at the PR head (dt-checks, host-tests, pr-text). Built against current main, the J714c DTB gains only the panel node under the DCP and the framebuffer's
panelandpost-init-providersproperties, with the same dtc warnings as main. No Mac has booted it yet.Risk
two-way · Apple Silicon Macs using simpledrm boot framebuffers (J714c and any board whose
framebuffer0has both apanelphandle and a disableddisplaynode).Not yet
No boot without a DCP handoff has been run yet to confirm
card0-eDP-1, nohandle-lid-switchinhibitor, and suspend/resume in the journal. No-regression boots on older laptops that already linkpanel(M1 Pro, M2, M2 Pro) and the J714c panel-size confirmation are also pending.