Skip to content

drm/sysfb: report eDP for framebuffer panels - #1688

Open
joshuaswarren wants to merge 5 commits into
aurora-silicon:mainfrom
joshuaswarren:w71/edp-connector
Open

joshuaswarren wants to merge 5 commits into
aurora-silicon:mainfrom
joshuaswarren:w71/edp-connector

Conversation

@joshuaswarren

@joshuaswarren joshuaswarren commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

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 display phandle is disabled. With the DCP enabled, or without a display phandle (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 into eDP-2.

The J714c framebuffer links to the panel with the existing panel binding and lists it in post-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 panel and post-init-providers properties, 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 framebuffer0 has both a panel phandle and a disabled display node).

Not yet

No boot without a DCP handoff has been run yet to confirm card0-eDP-1, no handle-lid-switch inhibitor, and suspend/resume in the journal. No-regression boots on older laptops that already link panel (M1 Pro, M2, M2 Pro) and the J714c panel-size confirmation are also pending.

@joshuaswarren joshuaswarren changed the title [Joshua's agent] drm/sysfb: eDP connector for the built-in panel, K114/K116 framebuffer property [Joshua's agent] drm/sysfb: simpledrm: eDP connector for an Apple built-in panel, and its binding (draft) Nov 15, 2026
@joshuaswarren

joshuaswarren commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

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.

@joshuaswarren

joshuaswarren commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

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:

  • Files. The PR changes exactly three files: Documentation/devicetree/bindings/display/simple-framebuffer.yaml, arch/arm64/boot/dts/apple/t6050-j714c.dts and drivers/gpu/drm/sysfb/simpledrm.c. It does not touch t6050-k114-k116.dtsi.
  • Build. drivers/gpu/drm/sysfb/simpledrm.o builds with W=1 and no warnings at this head. I used an arm64 defconfig with CONFIG_DRM_SIMPLEDRM=y, gcc 12.2 and the aarch64 cross toolchain, on a depth-limited checkout of the PR head.
  • Authorship. The carried commit keeps ed <edimoldovan@gmail.com> as author, with (cherry picked from commit 9dee12b1266c4…) and a Signed-off-by from the submitter. The PR text says the same.
  • Binding. dt-doc-validate accepts the edited simple-framebuffer.yaml. I built a minimal framebuffer node with apple,internal-panel and validated it against the schema with and without this change. Without it, dt-validate reports 'apple,internal-panel' does not match any of the regexes. With it, there is no message. A disabled node is checked too, which matches the PR text.
  • Driver. of_property_read_bool() on a null of_node returns false, so non-device-tree users of simpledrm still get the Unknown connector as before.

What I could not run: a full dt_binding_check or CHECK_DTBS. On this tree the validator stops on a type conflict for apple,tunable between pci/apple,pcie.yaml and phy/ti,cd2e22.yaml, before it reaches the framebuffer node. That conflict is not in this PR. The node-level check above is what I could run.

Non-blocking notes:

  1. The binding commit message describes the wrong tree. It says the K114c, K114s, K116c and K116s framebuffer nodes carry the property. At this head only the J714c node does. The four K114/K116 nodes get it in arm64: dts: apple: t6050-k114-k116: report the built-in panel as eDP #2009. Say "J714c" here, or say that the others follow in arm64: dts: apple: t6050-k114-k116: report the built-in panel as eDP #2009.
  2. No Signed-off-by from the original author. The PR text says so. If Aurora means to send this upstream, ed's sign-off is needed. The carried message also keeps a Co-Authored-By trailer for an AI model, unchanged from the original commit.
  3. Boot testing is not done. The PR says so: the J714c result in the commit message is the original author's, and the K114c lid test is still to come.

@joshuaswarren

joshuaswarren commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

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.

@joshuaswarren

joshuaswarren commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

GREEN on 4b92610

The tree is unchanged from my review of 667f644. Both heads have tree 4b96fb09bcfcb9438a4d31939cb6175439610dc1 and the same parent, and git diff between them is empty.

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 apple,internal-panel is rejected by the old schema and accepted by the new one. The body's CHECK_DTBS paragraph now says the same, names #2009 and says the check was not repeated at this head.

joshuaswarren added a commit to joshuaswarren/linux that referenced this pull request Nov 18, 2026
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>
@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks for splitting this out, and to ed for the original. One design point.

The binding already has a panel phandle (simple-framebuffer.yaml:126-129), and simpledrm already follows it for width-mm/height-mm (simpledrm.c:191-219). Most Apple laptop trees already set panel = <&panel> on framebuffer0: j313, j314/j316, j414/j416 and the M3 boards.

Could simpledrm report eDP when the framebuffer node has a panel phandle, instead of using a new vendor property? Then J714c (and K114/K116 in #2009) would get a panel node with width-mm/height-mm. The K114c panel node in #2183 could be that target. This keeps the generic binding untouched and makes it the default on every laptop that describes its panel. A panel link is also the strongest argument if this goes to dri-devel.

ed's Signed-off-by on the first commit is needed before merge.

Row: K114c or J714c booted without the DCP handoff. /sys/class/drm shows card0-eDP-1, systemd-inhibit --list shows no handle-lid-switch block, and closing the lid suspends (journal shows suspend entry and exit).

After that, we can run a no-regression row on our M1 Pro.

@joshuaswarren

Copy link
Copy Markdown
Contributor Author

[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 panel phandle, drop the apple,internal-panel binding addition, and set panel = <&panel> on the J714c framebuffer node. That reuses the existing binding, keeps the generic schema untouched, and makes the eDP connector the default on every laptop that describes its panel instead of one property at a time.

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: card0-eDP-1 present, no handle-lid-switch inhibitor, lid close suspends and resumes) is queued on a 14-inch M5 Max; we will post the journal lines here when it runs.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks for taking the panel phandle approach. Nothing more from us until the rework is pushed. The head is still 4b92610 with apple,internal-panel. What's missing:

  • the rework: simpledrm reports eDP when the framebuffer node has a panel phandle (simpledrm.c:868), the binding addition is dropped, and the J714c framebuffer gets panel = <&panel> plus a panel node with width-mm/height-mm,
  • ed's Signed-off-by on the carried commit (from ed himself, as you said),
  • the row: K114c or J714c booted without the DCP handoff, showing card0-eDP-1, no handle-lid-switch inhibitor, and the lid suspending and resuming in the journal.

Once that is up, we will run a no-regression row on our M1 Pro, which already has panel = <&panel> on its framebuffer.

@joshuaswarren

joshuaswarren commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

e65fe26 makes simpledrm report eDP when the existing panel phandle resolves. Firmware framebuffers without a panel keep the Unknown connector type. The PR no longer adds apple,internal-panel to the binding.

The J714c DTB resolves /chosen/framebuffer@0 to /panel at 302 by 196 mm. I used the J714s dimensions. The framebuffer stays disabled until the loader sets it up. The framebuffer schema reported no diagnostics, and simpledrm.o cross-compiled.

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.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks, e65fe26 is the shape we hoped for. simpledrm reports eDP when the panel phandle resolves, the binding is untouched, and dt-checks and host-tests are green.

Before review:

  • History: the branch still adds apple,internal-panel (1006491, 4b92610) and then removes it (b570505). Please squash it to one simpledrm commit and one J714c dts commit, and update the title and body. ed's code is no longer in the diff, so Suggested-by: ed on the simpledrm commit replaces the need for his Signed-off-by.
  • The J714c size (302 x 196 mm) is the J714s value. Please confirm it in the row that is still owed: K114c or J714c without the DCP handoff, card0-eDP-1, no handle-lid-switch inhibitor, and lid suspend/resume in the journal.

This changes the connector type on every Apple laptop tree with panel = <&panel>, so we'll then run no-regression rows on our M1 Pro and M2.

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>
@joshuaswarren joshuaswarren changed the title [Joshua's agent] drm/sysfb: simpledrm: eDP connector for an Apple built-in panel, and its binding (draft) drm/sysfb: report eDP for framebuffer panels Nov 20, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks, 8da6768 and 02d7b6c are the clean two-commit history we asked for, and the title and body match. Two small things:

  • Please add Suggested-by: ed to 8da6768. The idea is his, and that tag replaces the need for his Signed-off-by.
  • t6050-j714c.dts:46-51 adds the panel as a top-level node. On J714s the panel is a child of &dcp (t6050-j714s-gpu-panel.dtsi:80-92), and the arm64: dts: apple: t6050-k114-k116: report the built-in panel as eDP #2009 candidate also puts its panel under &dcp. Please do the same here with a panel: label, so the DCP handoff later reuses this node and does not add a second one.

Still owed, as you say: the no-DCP-handoff row with card0-eDP-1, no handle-lid-switch inhibitor and lid suspend/resume in the journal, which also confirms the 302 x 196 mm size. Our M1 Pro and M2 no-regression rows follow.

@joshuaswarren

joshuaswarren commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

The J714c panel now sits under &dcp, and the framebuffer points to that single node. The compiled DTB still reports 302 by 196 mm. The framebuffer stays disabled and DCP status is unchanged.

I'll add the Suggested-by: trailer once Joshua confirms. The PR stays draft until the no-handoff eDP, lid inhibitor and suspend/resume checks run on hardware.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks, b1cb83a puts the J714c panel under &dcp with the panel: label and the framebuffer points at that one node, which is what we asked for.

One small thing: b1cb83a only moves the node that 02d7b6c added. Please fold it into 02d7b6c when you add the Suggested-by: trailer to 8da6768, so the series stays one simpledrm commit and one J714c dts commit.

Nothing else from us at this head. As you say, the no-handoff hardware row is still owed (card0-eDP-1, no handle-lid-switch inhibitor, lid suspend/resume in the journal, 302 x 196 mm confirmed), and dt-checks/host-tests are still running. Once you mark it ready we will run our M1 Pro and M2 no-regression rows.

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>
@joshuaswarren

joshuaswarren commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

971e41fb1099 folds the J714c panel move into the DTS commit. The simpledrm commit stays at 8da67681, and the final tree is identical to b1cb83a1. The compiled J714c framebuffer phandle resolves to the 302 × 196 mm panel under DCP.

I’ll add the Suggested-by trailer once Joshua confirms the attribution. The no-handoff hardware check is still open.

@RyanTheTide

Copy link
Copy Markdown
Contributor

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.

@RyanTheTide

Copy link
Copy Markdown
Contributor

@joshuaswarren checking open drafts today. To come out of draft, this still needs:

  • A test run at the current head on a Mac with the hardware it touches, then mark it ready for review.

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.

@rolotrealanis98

Copy link
Copy Markdown
Contributor

Tested on J716s (16-inch M5 Pro, 27.3 beta stub) at 971e41f, with the J716s framebuffer linked to its panel the same
way as the J714c here (panel = <&panel>); the J716s's loader hands the DCP over.

  • the connector change works: simpledrm reports eDP, connected, 3456x2234
  • but "panel" is a fw_devlink supplier property, and the panel node sits under dcp, so the framebuffer becomes a
    consumer of the DCP device whenever dcp is enabled:
    • DCP boot: simpledrm probes only after apple-drm has taken over (1.24 s vs 0.29 s), so it is never kicked out and
      the session sees two eDP connectors (apple-drm's eDP-1 and simpledrm's eDP-2)
    • no DCP driver (apple-drm kept out): simpledrm never probes, "wait for supplier /soc/dcp@48ae00000/panel"
      On the J714c dcp stays disabled, so this doesn't show there. A property fw_devlink does not follow (or keying on the
      node's own data) would avoid it on boards with a DCP hand-off.
      0 SError, 0 failed units in both boots.
      Not tested: lid close / suspend.

Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
@joshuaswarren
joshuaswarren marked this pull request as ready for review November 28, 2026 11:41
@joshuaswarren
joshuaswarren requested review from a team as code owners November 28, 2026 11:41
@github-actions github-actions Bot added door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Merge readiness at 28b045c0: not ready yet

Check Detail
CI at head no failing: host-tests
Review ok approved by RyanTheTide
Requested changes ok none
Hardware row at head ok comment at 28b045c0
Conflicts ok none
PR text ok Risk: two-way · Apple Silicon Macs using simpledrm boot framebuffers (J714c and any board whose framebuffer0 has both a panel phandle and a disabled display node).

Areas: area:bringup

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Nov 30, 2026

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 &dcp panel node and links framebuffer0 via panel = <&panel>;; 0e6e2677 cleanly merges main (844781f1b56b).
  • Checked for Apple material, tool attribution, and private serials: clean; MERGEABLE on main.

Follow-ups (not blocking): queued CI; exact-head simpledrm eDP row, J714c panel dimensions

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
panel = <&panel>;
panel = <&panel>;
post-init-providers = <&panel>;

@github-actions github-actions Bot added the changes-requested A reviewer requested changes (bot) label Dec 2, 2026
`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>
@DjDeveloperr

DjDeveloperr commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Pushed the fix for this morning's blocker as 2aa0ef41, a normal push on top of your commits. The framebuffer node now lists post-init-providers = <&panel>; next to panel = <&panel>;, as t600x-j314-j316.dtsi does. simpledrm keeps the panel size lookup, and fw_devlink no longer holds its probe behind the DCP.

Check: t6050-j714c.dtb builds with dtc. The output gains only that property, and dtc reports the same single pre-existing warning as before.

Still owed before merge:

  • the J714c row at this head, without the DCP handoff: card0-eDP-1 from simpledrm, no handle-lid-switch inhibitor, one lid suspend/resume, and the 302 x 196 mm size;
  • a no-regression boot on an older laptop that already links panel, such as a J414s;
  • credit for ed on 8da6768 can go in the PR body, since that commit can't be amended without a force push.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Dec 2, 2026
DjDeveloperr
DjDeveloperr previously approved these changes Dec 2, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-1 from simpledrm, no handle-lid-switch inhibitor, 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 -s trees: 0e6e2677 to 2aa0ef41 adds only post-init-providers; main to main plus this PR adds panel, post-init-providers and panel: panel under &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 has post-init-providers = <&panel>.
  • 0e6e2677 matches a clean merge of its parents.

@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) and removed changes-requested A reviewer requested changes (bot) labels Dec 2, 2026

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@RyanTheTide

Copy link
Copy Markdown
Contributor

M1 Pro (J316s) boot half at exact head 2aa0ef41: simpledrm part PASS, plus one side effect to look at

B = one-shot kernel built from 2aa0ef4156dd (fleet config; GRUB one-shot entry with drm.debug=0x04 log_buf_len=4M added to that entry only); A = the saved 7.3.0-aurora-edge. This Mac's device tree comes from the boot chain, so the J714c DTS hunk isn't involved; this covers the simpledrm.c change on an M1 Pro that already links panel.

  • simpledrm early: simple-framebuffer 103d1afc000.framebuffer: [drm:drm_sysfs_connector_add] [CONNECTOR:39:eDP-1] adding connector to sysfs at 0.119 s, then Initialized simpledrm ... on minor 0. eDP instead of Unknown: PASS.
  • After apple-drm takes over: one display device (apple-drm on card1; card0 is the GPU, aurora), exactly one eDP connector, no stale simpledrm connector. PASS.
  • Inhibitors: no handle-lid-switch inhibitor (only gsd-media-keys' power/suspend keys, same as A). PASS. SELinux Enforcing, 0 failed units.
  • Side effect: apple-drm's panel connector is now named eDP-2 (card1-eDP-2, [CONNECTOR:49:eDP-2]) where A has card1-eDP-1. simpledrm's eDP-1 still holds the eDP type index when apple-drm registers its connector, so the real panel gets the next number. Anything keyed on the connector name (Mutter monitors.xml entries, video=eDP-1: command-line options, scripts that read card1-eDP-1) would no longer match after this change. Worth releasing the index before apple-drm registers, or noting it.
  • Lid half: not run. This lab M1 Pro's panel connector reads disconnected on both kernels with the lid open (logind LidClosed=false; it runs headless), so a lid close/open here can't show display behaviour. It needs a Mac whose panel is live under Linux.

Restored afterwards: saved 7.3.0-aurora-edge, GRUB config byte-identical, test kernel removed.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Dec 3, 2026
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>
@github-actions github-actions Bot added the needs-hw-row No hardware row at the PR head (bot) label Dec 3, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor

Pushed 28b045c0 for the eDP-2 name from the J316s row. It is a normal push on top of 2aa0ef41, and only simpledrm.c changes.

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 display phandle is disabled, which means no driver takes over. A J714c without the DCP handoff still gets card0-eDP-1. If the DCP is enabled, or the tree has no display phandle (J316s and J700), simpledrm's connector stays Unknown, as on main, and apple-drm's panel should be eDP-1 again.

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 2aa0ef41):

  • Boot half, J316s and J700: simpledrm starts as Unknown-1, the panel is eDP-1 after apple-drm takes over, and there is no second panel connector.
  • Lid half, on a Mac with a live panel: J714c without the DCP handoff shows card0-eDP-1 and no handle-lid-switch inhibitor, one lid suspend/resume works, and 302 x 196 mm is confirmed.

@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) and removed needs-hw-row No hardware row at the PR head (bot) labels Dec 3, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor

J700 (MacBook Neo, T8140) at 28b045c00687: PASS

Same boots as #2700: base arm with exact head blobs of #2700 and this PR on main 4c6f0f70, not GitHub's merge commit.

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 DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants