Skip to content

J873g: HDMI and USB-C displays in drm/apple (iBoot interface, T8152 Gen3 display DARTs, M6 Mac mini) - #1800

Merged
Acelogic merged 28 commits into
aurora-silicon:integration/aurorafrom
sithglan:thomas/j873-dcp
Nov 23, 2026
Merged

Acelogic merged 28 commits into
aurora-silicon:integration/aurorafrom
sithglan:thomas/j873-dcp

Conversation

@sithglan

@sithglan sithglan commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #1797 (aurora-wip merge for the J873g). Review the last 26 commits.

This drives the J873g's (Mac mini M6, T8152) three displays from drivers/gpu/drm/apple: HDMI and both rear USB-C ports, at once. The DCPs run through the firmware's iBoot display interface (disp0-service / dispext-service), with drm/apple's AFK and RTKit code. #2176's three-display work is folded in. There is no separate display driver any more.

Commits

  • RTKit: apple_rtkit_adopt_ep(), so that a client can start endpoints on a session it took over without the endpoint map.
  • Gen3 display DARTs (binding plus three driver commits):
    • The locked DARTs with live tables.
    • The TLBI in the EL1&0 regime on VHE.
    • Faults reported through the v2-style pending bitmap at 0x4000 and per-stream records at 0x8000.
  • Bindings:
    • apple,t8152-dcp-iboot: HDMI power states, apple,afk-active-endpoints, DCPEXT1 and the shared USB-C ports, and the HDMI cold start.
    • /chosen apple,dcp-rtkit-running.
  • drm/apple, generic capabilities. Each is selected by match data and changes nothing on other SoCs:
    • AFKv2 wire selection.
    • Starting endpoints on an adopted RTKit session.
    • Stopping the AFK endpoints a bootloader left running.
    • Commands without output sent without a reply buffer (the iBoot setters assert otherwise).
    • Services matched by their announced name.
    • Services without a handler opened anyway (DPAV needs all four).
    • A per-variant AFK timeout.
  • drm/apple, AFK: a wait queue per endpoint, woken once a service has opened, so that a caller waits for services instead of polling. Only the T8152 code waits on it.
  • drm/apple, iBoot commands in ibootep.c: op 1 SET_SURFACE, plus exported set_power, get_hpd, get_timing_modes, get_color_modes, set_mode and set_surface. The new flip path is SET_SURFACE, as you suggested.
  • drm/apple, the T8152 variant:
    • DCP_FIRMWARE_IBOOT, matched by apple,t8152-dcp-iboot.
    • iomfb_iboot.c for adopting or waking the session. It waits on the endpoints' wait queues for their services and for the iBoot service.
    • iboot_drm.c for KMS, one DRM device per DCP. Flips are CPU-copied and paced by an hrtimer, because changing the surface address between Linux buffers made later modesets crash the firmware.
  • Interim T8152 display hardware (t8152_atc.c, t8152_hdmi.c, t8152_aux.c, t8152_pd.c, t8152_dptx.c). Each file's header names what replaces it, in the order agreed on J873g: USB4 on the rear USB-C ports through tipd and atc.c (T8152 routers, PCIe-C, M6 Mac mini) #2178:
  • DT: the display DARTs as Gen3, and the J873g's HDMI and USB-C displays, DCPEXT1 and the HDMI cold start.
  • DART power domains (binding plus DT commit): the six display DARTs, and the coprocessor nodes, name their DCP's PMGR state (DISP_CPU, DISPEXT0_CPU, DISPEXT1_CPU). These are apple,firmware-owned: the coprocessor is started through its PSD service and its firmware runs the state, so the OS keeps the domain on and never reads or writes it, and the hand-off and HDMI cold start are unchanged. DISP_CPU is at PMGR offset 0x14000, so the PMGR node now spans the ADT's 0x1c000 window.
  • Config: asahi.config requests CONFIG_DRM_APPLE_DCP_T8152=y.

Loader requirements

The driver takes over the DCP sessions the loader leaves, so it needs:

Not included

Testing (M6, this tree)

The final tree is byte-identical to the one booted on the M6, apart from one code comment and the host-test fixtures.

  • All three displays come up through drm/apple: HDMI-A-1 at [email protected], DP-1 at [email protected], DP-2 at [email protected]. They have the same modes as with the separate driver before, and sway runs on all three.
  • DPMS off and on works on each output, and so does HDMI at 1920x1080 and back.
  • mpv runs fullscreen at 60 fps and drops no frame after the first five.
  • No AFK reply or timeout errors.
  • 12 DPMS off/on cycles, 4 on each output, with the DPTX calls and iBoot command errors traced: every output came back in its mode, and no SET_MODE failed, so its retry did not run.
  • Unbinding DCPEXT1 removes its DRM device without a warning (first run: a leaked connector, fixed). A new bind is refused with -EBUSY, because the retained session needs a reboot.
  • The Gen3 fault row on the J873g: an injected AVD DART fault raised one interrupt, the fault was acknowledged, and the decoder recovered bit-exact.
  • Every commit builds (Image, modules, DTBs, LLVM 22). Changed C files are clean with W=1. checkpatch --strict is clean apart from the MAINTAINERS hints on new files.
  • tools/asahi/run-host-tests.py: 427/427.
  • scripts/dtc/apple-dt-check.sh against Merge aurora-wip 210c8f6e into integration/aurora (J873g NVMe, 10GbE, power off, USB2, audio) #1797 (ec172bbcc1ed): 0 new and 0 removed warnings (137 DTBs). The three changed bindings pass.

Supersedes #1019 and #2176.

cc @Acelogic @RyanTheTide @DjDeveloperr @LiamRay10

Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Heads-up: this stack (#1798, #1799, #1800) now conflicts with integration/aurora in drivers/soc/apple/mailbox.c. The conflict comes in through #1797's merge commit a761a62, which brings aurora-wip's T8152 AOP and J873 ANS mailbox matches. It collides with 41c359d and 788441e on integration, which receive the T6050 GPU mailboxes by interrupt.

Could you refresh #1797 onto the current integration/aurora and rebase the three on it? When resolving, please keep those two commits' interrupt-driven receive path as it is. We'll review the listed commits once the stack is mergeable again.

@sithglan

Copy link
Copy Markdown
Contributor Author

Rebased onto the refreshed #1797 (ceade2e, on integration/aurora 292773f). The branch is now 23999b9 (was 6e7b0c6) and merges cleanly again.

git range-diff shows 13 of the 14 commits unchanged. In "iommu: apple-dart: support the locked Gen3 DARTs of T8152", only the context in struct apple_dart moved, because integration's DART sleep work added fields there. Its own hunks are the same.

The testing lines in the description are updated: apple-dt-check.sh against 292773f shows 0 new CHECK_DTBS warnings (8 fewer) and every changed binding passes, and the host tests pass 323/323, both with #1797 and all three J873g PRs. Not booted on the M6 at the new base yet.

@sithglan

Copy link
Copy Markdown
Contributor Author

Rebased onto the refreshed #1797 (d87e41e, on integration/aurora 514ae1f). The branch is now 2e0cefb (was 23999b9) and merges cleanly again.

  • One conflict, in rtkit.c. T6050 (M5 Pro, J714s): suspend to RAM #1963 added apple_rtkit_endpoint_started() and apple_rtkit_v27_rx_drained() where the first commit adds apple_rtkit_adopt_ep(). All three are kept, and in rtkit.h only the context moved. The other 13 commits are unchanged (git range-diff).
  • One new commit: arm64: configs: asahi: build the T8152 DCP display driver. arm64: asahi: enable all native hardware defaults and guard coverage #1939's hardware-defaults-tests requires every native driver option in asahi.config, and it failed on DRM_APPLE_DCPIB. defconfig plus asahi.config now resolves it to =m.

With #1797 and the three J873g PRs, at 514ae1f: Image, modules and the J873g DTB build, and rtkit.c builds with W=1 and no warnings. apple-dt-check.sh shows 0 new CHECK_DTBS warnings (8 fewer) and every changed binding passes, and the host tests pass 321/321. The description is updated. Not booted on the M6 at the new base yet.

@sithglan

Copy link
Copy Markdown
Contributor Author

Rebased onto the refreshed #1797 (bbfdefa, on integration/aurora 0abc2f3). The branch is now 4be1858 (was 2e0cefb) and merges cleanly again.

  • One conflict, in apple,dart.yaml. integration's dd8857e (T8142 DCP DART PS write-disable) added the ps-wr-dis reg and its description where "dt-bindings: iommu: apple,dart: add the T8152 Gen3 display DARTs" adds tlbi. Both are kept: reg-names is now [dapf, gapf, ps-wr-dis, auxiliary, tlbi], and the second reg's description names both.
  • One fix that the merge did not show. The same commit's else branch, for DARTs that are not T8152 Gen3, listed [dapf, gapf, auxiliary] as the second reg name, so apple-dt-check.sh flagged the J813's three ps-wr-dis DARTs. That branch now allows ps-wr-dis as well. The other 14 commits are unchanged (git range-diff).

Booted on the M6 with the rebased stack: HDMI and both USB-C displays at 60 Hz in sway. DT and host checks are as on #1797.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks for bringing HDMI and USB-C displays up on the M6, and for the clear write-up of the loader requirements.

Two structural points:

  • We avoid a second implementation of a mechanism the tree already has. drivers/gpu/drm/apple_dcpib/afk.c (about 765 lines of AFKEPV2 ring and service handling) and the RTKit endpoint setup in apple_dcpib/drv.c repeat what drivers/gpu/drm/apple (its afk.c and DCP RTKit code) already does. Please put the iBoot-interface path into the existing driver: a T8152 entry in its match data, using the shared AFK code, with only the iBoot SET_SURFACE flip path as new code.
  • Safety behaviour should be the same on every DART. drivers/iommu/apple-dart.c:5687-5691 leaves Gen3 DART faults "to the firmware for now" and claims no fault IRQ. A locked DART with live tables should still report faults; if acknowledging them differs on Gen3, please implement that acknowledge rather than leaving faults unhandled.

The stack also depends on #1797, so these would land after it. Once the DCP path is shared, we can run no-regression display rows on our M1 Pro / M2 / M4 Pro / A18 Pro.

@sithglan

Copy link
Copy Markdown
Contributor Author

Your second point is done: 8f6c8ed637b4 is a new commit at the end of this PR, and #2176/#2178 are restacked on it.

Gen3 DART faults ("iommu: apple-dart: report T8152 Gen3 DART faults"). A Gen3 DART turns out to report faults like a v2 DART: the pending-stream bitmap at 0x4000 and a record per stream at 0x8000 (status, address), acknowledged by writing the bitmap back. So Gen3 DARTs now request their interrupt and use apple_dart_t8110_v2_irq(). The only Gen3-specific case is the unlock after a lock-on-error exception, because it would go through the TLB command register, which serves translation queries on Gen3. A Gen3 DART with lock-on-error set reports that its stream stays stopped and does not touch that register. All the J873g's Gen3 DARTs have lock-on-error clear (diag 0).

Tested on the J873g with a TEST-only knob that cleared the AVD DART's SID 0 TTBR during an H.264 decode:

  • One interrupt: translation fault: SID:0 write TTBR invalid at 0x10fff000000 (status 0x00000100). The bitmap was acknowledged and the fault didn't repeat (IRQ count 1).
  • The decoder's recovery parked DMA and retired it.
  • After restoring the TTBR and reloading the decoder, the same file decoded bit-exact against the run before the fault.
  • None of the other eight Gen3 fault lines fired during the boot, including the locked display DARTs with three displays running.

On the first point, putting the iBoot-interface path into drivers/gpu/drm/apple: I agree, and it goes with the PD-controller convergence I described on #2178 (tipd for the ACE3s, then DP alt mode through the shared path). That rework is next.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks for 8f6c8ed. Reporting Gen3 DART faults through the v2-style bitmap and interrupt, with the lock-on-error case spelled out, covers the safety point, and the fault-injection run on the J873g (one interrupt, acknowledged, decoder recovered bit-exact) is convincing. Please keep the test-only TTBR knob out of the branch, as it is now.

That leaves the iBoot-interface path moving into drivers/gpu/drm/apple; the ordering you describe on #2178 works for us, and we will run the shared display no-regression rows once that version is up.

@sithglan sithglan changed the title J873g: HDMI and USB-C displays (apple_dcpib, T8152 Gen3 display DARTs, M6 Mac mini) J873g: HDMI and USB-C displays in drm/apple (iBoot interface, T8152 Gen3 display DARTs, M6 Mac mini) Nov 19, 2026
@sithglan

Copy link
Copy Markdown
Contributor Author

The iBoot interface path is now in drivers/gpu/drm/apple. The head is 6c7f31dead9f, on #1797, 25 commits. No commit adds a separate display driver. #2176's three-display work is folded in, so I'll close #2176.

What's shared now

  • AFK runs on drm/apple's afk.c. Seven small commits add what these DCPs need, each selected by match data:
    • the AFKv2 wire;
    • endpoints started on an adopted RTKit session (via apple_rtkit_adopt_ep());
    • live endpoints stopped first;
    • setters sent without a reply buffer;
    • services matched by announced name;
    • unhandled services opened (DPAV);
    • a per-variant timeout.
  • RTKit uses apple_rtkit_init_adopted() / apple_rtkit_adopt_running() and drm/apple's shared-memory hooks.
  • The iBoot commands are ibootep.c's. The new code there is op 1 SET_SURFACE, plus exported helpers for the existing ops.
  • The T8152 DCPs are a DCP_FIRMWARE_IBOOT match entry. iomfb_iboot.c takes the session over and iboot_drm.c is the KMS.

What is still T8152-specific, and why

Tested on the J873g (this tree)

  • HDMI-A-1 [email protected], DP-1 [email protected] and DP-2 [email protected], sway on all three.
  • DPMS off and on on each output, and HDMI at 1080p and back.
  • mpv at 60 fps.
  • Unbinding a DCPEXT is clean. A rebind is refused until reboot, since the session is retained.

Checks

  • Every commit builds, with W=1 clean.
  • run-host-tests 427/427.
  • apple-dt-check: 0 new warnings.

Once it's in, the no-regression rows on your M1 Pro / M2 / M4 Pro / A18 Pro would be welcome. Other SoCs only see the new match-data fields at zero.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks for 6c7f31d. Running the iBoot-interface DCPs on drm/apple's AFK and RTKit code, selected by match data, covers the duplication point, and the three-display and DPMS results are good to see.

One small follow-up in the new code: a few waits poll state that a firmware message already sets. iomfb_iboot.c:529-531 (services announced) and :570-571 (ibootep_is_ready()) could wait on a completion signalled from those handlers, and iboot_drm.c:710-715 retries SET_MODE five times every 200 ms on -EIO. If the firmware reports link-up, waiting for that would be better; if it does not, a comment saying so would cover it.

We will run the shared display no-regression rows once this is ready.

@sithglan

Copy link
Copy Markdown
Contributor Author

@RyanTheTide thanks, done. The head is now 41e4cb30ada4 (was 6c7f31dead9f), 26 commits.

The two waits in iomfb_iboot.c now sleep instead of polling:

  • New commit drm/apple: wake AFK waiters when a service opens. Each AFK endpoint gets a wait queue, woken once a service has opened and its init callback has run. That covers each path that opens one: compact, AFKv2, and the deferred AFKv2 open.
  • dcp_iboot_wait_services() and dcp_iboot_start_iboot() use wait_event_timeout() on that queue, with the same AFK timeout as before.
  • The iBoot service counts as ready once its init callback has published the query, so it is the same wake.
  • The three host-test fixtures that build AFK's open paths get the wait queue too.

The SET_MODE retry in iboot_drm.c: the firmware doesn't report link-up, so the retry stays and the comment now says so. I traced it on the M6 with dynamic debug: the DPTX calls the firmware makes and every iBoot command error status.

  • Each power on trains through the same calls: will-change-link-config, set lane count, set link rate, did-change-link-config, set lane count. None of them is a last step.
  • DP-1's sink was trained twice in a row in 2 of its 4 power ons, so a did-change can't mean "up" either.
  • SET_MODE itself waits out the training: the mode was set 76 to 229 ms after the power on.
  • In 12 DPMS off/on cycles, 4 on each output, no SET_MODE failed, so the retry didn't run. It is still needed for the case it was added for: SET_MODE sent while the firmware is still training answers with an error status (seen while bringing up display sleep).

Testing (M6, this tree):

  • Boot: the three DCPs start on the wait queue. HDMI-A-1 2560x1440, DP-1 2560x1440 and DP-2 1920x1200, sway on all three.
  • 12 of 12 DPMS cycles come back in their mode, with no iBoot command errors and no AFK timeouts.
  • tools/asahi/run-host-tests.py: 427/427.
  • checkpatch --strict is clean on both changed commits. drm/apple builds with W=1 clean, both at the new AFK commit and at the head.

The final tree is the booted one, apart from the comment and the fixtures. #2486 (4e0bf8f084d0) and #2178 (53fb54501609) are restacked on this head; their own commits are unchanged (git range-diff shows = for all of them).

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks for 41e4cb3. The AFK wait queue for the service waits, and the comment explaining that the firmware gives no link-up report for SET_MODE (with the training trace behind it), settle the last point. We will run the shared drm/apple no-regression rows on our M1 Pro, M2, M4 Pro and A18 Pro on this head (boot, internal and external display, DPMS) and post them here.

A T8152 Gen3 DART reports a fault as a v2 DART does: a bitmap of the
streams with a pending exception at 0x4000, a record per stream at
0x8000 (status, address), acknowledged by writing the bitmap back.
Request its interrupt and let apple_dart_t8110_v2_irq() report and
acknowledge its faults instead of leaving them to the firmware.

Only the unlock after a lock-on-error exception differs: a Gen3 DART's
TLB command register serves translation queries, so it is not used to
unlock. A Gen3 DART with lock-on-error set says that its stream stays
stopped. The J873g's Gen3 DARTs have it clear.

Tested on the J873g by clearing the AVD DART's SID 0 TTBR during an
H.264 decode: one interrupt, "translation fault: SID:0 write TTBR invalid
at 0x10fff000000 (status 0x00000100)", the bitmap acknowledged with no
repeat, and the decoder retired by its recovery path. After the TTBR was
restored and the decoder reloaded, the same file decoded bit-exact
again. None of the other eight Gen3 DART fault lines fired, including
those of the locked display DARTs with three displays running.

Signed-off-by: Thomas Glanzmann <[email protected]>
afk_init() picks the AFKv2 wire for firmware 27 and for the T8122
external processor on 26.x, both recognised by their IOMFB interface.
The T8152 DCP firmware speaks AFKv2 on every endpoint of its iBoot
interface (the display service, the DPAV controller services and the
DPTX port services), and drm/apple drives no IOMFB interface of it that
a version could key on.

Add hw.afk_v2, which selects AFKv2 for all endpoints of a processor.
No match entry sets it yet.

Signed-off-by: Thomas Glanzmann <[email protected]>
The T8152 DCP does not acknowledge AP QUIESCED, and an IOP INIT while
its AP power is still on panics the firmware ("Invalid AP power: 32").
A session the bootloader leaves running can only be taken over as it
runs, with apple_rtkit_init_adopted(), without the HELLO/EPMAP
handshake: the endpoint map went to the bootloader, and
apple_rtkit_start_ep() refuses an endpoint RTKit does not know.

Add hw.afk_adopt_endpoints. With it afk_start() registers the endpoint
with apple_rtkit_adopt_ep() before it sends anything to it, so its
START_EP goes out and its replies are not taken for an unknown
endpoint's. No match entry sets it yet.

Signed-off-by: Thomas Glanzmann <[email protected]>
A bootloader that drives the display through the DCP firmware can leave
AFK endpoints running with its scanout when it hands over, as the T8152
loader does with the iBoot interface's endpoints. An AFK INIT on a live
endpoint asserts in the firmware.

Add dcp->afk_live_endpoints, bit N for endpoint 0x20 + N, which a
processor's probe fills from such a hand-off (the T8152 loader's
apple,afk-active-endpoints). afk_start() sends an endpoint whose bit is
set a SHUTDOWN and waits for its acknowledgment before START_EP and INIT,
after registering it with an adopted RTKit session so that the
acknowledgment is not taken for an unknown endpoint's. The old session's
ring stays the bootloader's, which keeps it reserved. The mask is zero on
every processor that sets nothing, so their start is unchanged.

The stop of the live endpoints is based on a change by Acelogic for the
T8152 hand-off.

Signed-off-by: Thomas Glanzmann <[email protected]>
afk_send_command() allocates a reply buffer of the output length and
names it in the command, even for a length of zero. The AFKv2 setters
of the T8152 DCP firmware's iBoot interface (SET_POWER, SET_MODE,
SET_SURFACE) answer with a transport status alone. Given a reply
buffer, the firmware copies an empty reply into it and asserts.

Give a command without output no reply buffer: its descriptor carries
address and length zero, which the AFKv2 codec already accepts and
checks the reply against. Every current caller passes an output
length, so none of them changes.

Signed-off-by: Thomas Glanzmann <[email protected]>
afk_recv_handle_init() parses the properties that follow a service's
announced name whenever there are any, and matches the service by the
EPIC provider class found there. Which keys it accepts depends on the
firmware interface version. The T8152 DCP firmware's iBoot service
(disp0-service, dispext-service) is announced by name alone, and the
properties of its DPTX and DPAV services are not needed to drive it:
a property set the parser rejects would leave such a service unopened.

Add hw.afk_announced_names. With it the properties are not parsed, the
service is matched by its announced name, and that name is what its
handler gets as the EPIC name. No match entry sets it yet.

The startup host test's and the apple-dcp service rebind test's
processors gain the flag, and the latter kstrdup(). The provider
admission test looks for the announcement's OPEN in the first 7000
bytes of afk_recv_handle_init() instead of 6500, which no longer reach
it.

Signed-off-by: Thomas Glanzmann <[email protected]>
An announced service that no entry of its endpoint's ops table names
is left unopened, apart from two firmware-specific exceptions that
bind it to the endpoint's first entry. The T8152 DCP firmware's DPAV
controller endpoint announces four services and expects all of them to
be opened, among them dcpav-video-interface, whose opening starts the
firmware's idle power off timer for the display. None of them takes
commands from the host.

Add ep->unmatched_ops, bound to every announced service that no entry
of the endpoint's ops table matches, which is then opened and
initialised like a matched one. It is NULL on every existing endpoint,
whose unmatched services stay unopened as before.

The startup host test's and the apple-dcp service rebind test's
endpoints gain the field.

Signed-off-by: Thomas Glanzmann <[email protected]>
AFK waits one second for an endpoint to start or stop and for a
command or service call to be answered. The T8152 DCP firmware's iBoot
display commands answer only once the DisplayPort work they start is
done: SET_POWER and SET_MODE wait for the link training, during which
the firmware calls into the AP for the PHY. The T8152 displays have
been run on the hardware with three seconds for each of these.

Add hw.afk_timeout_ms, the time afk_start(), afk_shutdown(), the
inherited endpoint stop, afk_send_command(), afk_service_call() and
afk_service_call_len() wait. Zero keeps one second, so every processor
that sets nothing waits as before. Callers that pass their own timeout,
and the legacy reply-length calls, are unchanged.

Signed-off-by: Thomas Glanzmann <[email protected]>
ibootep.c sends the iBoot interface's display commands only for the
T6030 external role's first-pixel diagnostic: the queries and setters
are reachable from its sysfs file and pattern path alone, gated on
dcp->external, and the surface is set through the swap operations
15/16/18/19. The T8152 DCP firmware is driven through this interface
alone and sets its surface with operation 1, SET_SURFACE.

- Add DCP_FIRMWARE_IBOOT, a DCP driven through the iBoot interface
  alone, and dcp_is_iboot(). No match entry selects it yet.
- Build SET_SURFACE (operation 1, one 164-byte layer) and the three
  queries in iboot_build_pattern_request().
- Export ibootep_set_power(), ibootep_get_hpd(),
  ibootep_get_timing_modes(), ibootep_get_color_modes(),
  ibootep_set_mode() and ibootep_set_surface(), with the mode records
  in ibootep.h. On AFKv2 the setters go out without a reply buffer, as
  the firmware asserts on one, and a reply is checked against the
  length the transport reports, through the new afk_send_command_len().
  SET_SURFACE scans out one linear BGRA plane in colour space 2, as the
  bootloader sets it on T8152.
- Open the service for a DCP_FIRMWARE_IBOOT processor under either of
  its names (disp0-service on the main DCP, dispext-service on the
  external ones), without the manual query file: its display driver
  sends every command.

The T6030 external role keeps its gate, its service name, its sysfs
file and its pattern and frame commands as they were.

Signed-off-by: Thomas Glanzmann <[email protected]>
The T8152 (Mac mini J873g) DCPs drive their displays through hardware
no subsystem driver covers yet: the rear USB-C ports' ATC PHYs have no
DisplayPort mode in drivers/phy/apple/atc.c for T8152, the HDMI port's
DisplayPort PHY has no T8152 type in drivers/phy/apple/dptx.c (its
lanes are 0x2800 apart from 0x4500), the PS190 DisplayPort-to-HDMI
converter behind it is powered through the SMC, the ports' ACE3 PD
controllers do not report to the Type-C route layer, and the DCP
firmware's iBoot interface does not hand out the sink's EDID.

Add the T8152 code for them as separate files, each marked interim
until atc.c's DisplayPort mode, tipd and the Type-C route layer take
over. The bootloader trains the displays before Linux starts; the PHYs
keep its setup and reprogram what a link training changes, as the DCP
firmware calls into the AP for them.

t8152_atc.c, the USB-C ports:
- The three DCPs share the three rear ports through the one display
  crossbar. A DCP claims a free ATC under a mutex and gives it up on
  unplug; a monitor stays with its DCP while userspace blanks it. The
  crossbar's upstream reset, clock and enable fields are indexed by DCP
  endpoint * 2 + DPTX port, independently of the downstream DFP0 mux
  fields, which select that endpoint.
- Each ATC has its own PMGR DP clock divider, at 0x300020044 + 8 * n.
- The ATC's DP clock switch (PHY CFG block + 0x14 select, + 0x18 enable,
  + 0x1c status) chooses where each DP pixel clock comes from. PCLK1 is
  switched to PMGR DP clock 0 (select field 1, enable and status bit 1)
  after the divider for the link rate is written, and switched off the
  same way. With source 0 selected the stream clock never followed the
  divider: modes above about 165 MHz pixel clock, and 640x480, stayed
  black while the link trained and the firmware set the mode.
- A monitor that also carries USB3 negotiates pin assignment D (data
  status bit 5): two DisplayPort lanes, and only the PMA that carries
  them is set up. GET_MAX_LANE_COUNT reports the route's lanes.
- A cold start powers the ATC's dependencies (USB AON, the common PSD,
  both DP power states), the common block and AUX, and starts the lanes
  at HBR at once: from cold, AUX only works with the DP PLL and PMAs
  running. A power down undoes what it powered up.
- The EDID is read through the AP AUX controller aux0, which the three
  DCPs share and take in turn; its output select for an ATC port is the
  ATC instance * 3 + its local DFP.

t8152_hdmi.c, the HDMI port:
- The bootloader wires the HDMI PHY (source select, APB 0x10) to the
  main DCP (0) when no USB-C display is attached at boot, and then never
  starts DCPEXT0; next to a USB-C display it wires DCPEXT0 (1). The
  source select is read only while the PHY's PMGR power state is
  requested and active: a USB-C-only boot leaves the PHY off, and a read
  of its registers then raises an SError.
- When the bootloader left HDMI off (no monitor at boot leaves its PLL
  unlocked), the HDMI port becomes one of the shared ports. A DCP that
  drives no USB-C display takes it when the HPD line goes high, starts
  the PHY from cold (PMGR and PSD power, the PS190, source select, PLL,
  AUX and PHY power, the tunables, PLL and PHY activation, four lanes,
  impedance calibration), keeps the link up across display off, and
  gives the port back once the sink is gone. The source select takes
  every DCP's crossbar endpoint, DCPEXT1's 2 included, so DCPEXT1 takes
  the port while the other two drive USB-C monitors. The HPD line is
  requested once for all of them.
- The PS190 is powered through the SMC when the port is set up, before
  anything reads HPD or an EDID: it drives the HPD line only while it is
  powered, and while it is off every AUX request on the USB-C ports
  ends with channel status 2 as well. Without the SMC bound yet, the
  setup is deferred.

t8152_aux.c: the AUX controllers' request framing. Bits 21:8 of the
retry register are a 14-bit reply timeout, set to 3200; read as a
three-bit delay, the EDID through a USB-C to HDMI adapter timed out. A
sink left in D3 is woken before DDC.

t8152_pd.c: the ACE3 plug, orientation, DP alt mode and HPD state over
SPMI, read through the logical register window under the SPMI device's
lock, which the USB4 port monitor takes as well. A controller in power
state 7 enters alt mode only after SSPS 0. A sink that stopped answering
AUX after a monitor's deep sleep comes back after a reset (Gaid) and
SSPS 0.

t8152_dptx.c: the DPTX port service's calls into the AP apply link
rate, lanes and drive settings to these PHYs and read the drive
settings back as they were set; an unsupported GET_DRIVE_SETTINGS was
followed by a firmware crash. The port's release is group 8 command 7,
and its HPD call (group 8 command 8) carries a status in its reply's
first word. dptxep.c serves the same calls for PHY framework PHYs, the
crossbar mux and Thunderbolt tunnels; its connect and display request,
its call numbers and its port records are used here.

The HDMI PHY's power state check is based on a change by Acelogic.

The files are built with the new DRM_APPLE_DCP_T8152, enabled in
asahi.config, and nothing uses them yet. A MAINTAINERS entry for the
T8152 display covers them and the binding.

Signed-off-by: Thomas Glanzmann <[email protected]>
A caller that needs an endpoint's services, or the state one of their
init callbacks sets up, can only poll for them. Give each endpoint a
wait queue that is woken once a service has opened and its init
callback has run, on each path that opens one: compact, AFKv2 and a
deferred AFKv2 open. The host-test fixtures that build those paths get
the wait queue too.

Signed-off-by: Thomas Glanzmann <[email protected]>
The T8152 (Mac mini J873g) DCP firmware offers a small display service,
disp0-service on the main DCP and dispext-service on the DCPEXTs, next
to its IOMFB interface. The bootloader drives the J873g displays through
it, with the DPTX port service that the firmware calls into the AP for
the PHY and the DPAV controller services it expects to be opened, all
over AFKv2. Add these DCPs to drm/apple as the DCP_FIRMWARE_IBOOT
variant, matched by apple,t8152-dcp-iboot, with the shared AFK code and
the iBoot commands of ibootep.c. The match data selects AFKv2 on every
endpoint, endpoints registered with an RTKit session taken without its
map, services matched by their announced name and a three-second AFK
timeout. dcp_platform_probe() hands such a DCP to iomfb_iboot.c.

Taking the session over:
- A running session is adopted without the RTKit handshake
  (apple_rtkit_init_adopted(), apple_rtkit_adopt_running()): the DCP
  does not acknowledge AP QUIESCED, and an IOP INIT while its AP power
  is on panics it. A session the loader quiesced after a failed display
  setup (/chosen apple,dcp-rtkit-running = 0; the older J873 loader
  build v0.1.0-259-ga30a589a predates the property and is recognised by
  its 640x1136 placeholder framebuffer) is woken instead, and so is an
  unused DCPEXT the loader marks apple,rtkit-wake, once its PSD reads
  powered (a read of the coprocessor while it is gated hangs the
  machine) and its CPU runs.
- The loader's AFK endpoint hand-off (apple,afk-active-endpoints) is
  required and fills dcp->afk_live_endpoints, so afk_start() stops each
  endpoint the loader left running: an AFK INIT on a live endpoint
  asserts in the firmware. Without the property there is no telling
  whether an endpoint is live, and the DCP is not taken over.
- A woken DCPEXT's oslog endpoint offers a 0x5ff8-byte ring at
  0x100033cc000, the log segment of its own firmware addressed with the
  coprocessor's DRAM tag in bit 40, which only the firmware's retained
  DART tables map. With that buffer request failed, RTKit rejected the
  firmware's write counters as invalid instead of acknowledging them,
  which the firmware waits for before AP power transitions. The ring is
  taken as the firmware's, without a CPU mapping; the other buffers go
  through drm/apple's RTKit shared memory hooks. The surface log lines
  go to the debug level.
- Once the session is taken it is retained until reboot like the other
  live sessions (dcp_retain_live_session(), split out of
  dcp_pin_live_session()). A failed start stops the endpoint work,
  detaches RTKit with its buffers kept and leaves the device bound, so
  nothing retries over a partly started session.

Starting the display:
- A new iBoot session has no surface, and a pipe that still runs then
  fetches from a null base (IOMFB axi_rd_err, firmware NMI): the display
  is powered off at once and powered on only after a SET_SURFACE.
- The DPAV controller endpoint's four services are opened without a
  handler. Opening dcpav-video-interface starts the firmware's idle
  power off timer: a powered display without a following SET_MODE
  counts as idle, and the firmware takes the link down 30 s later, as
  it did with HDMI 30 s after boot while the compositor still had the
  output on. SET_MODE is sent again a second after that interface
  opens, from a work outside the AFK receive queues.
- The DPTX port services are bound in the order they are announced. On
  USB-C the inherited DPTX link is released before the first connection.
- The DCP fetches through dart-dcp and the display pipe scans out
  through dart-disp0; both are locked, with live roots of their own. One
  domain over both would publish dart-dcp's root into dart-disp0 and
  drop the bootloader's scanout mappings, so the scanout stream is a
  child device with a domain of its own. Scanout buffers are mapped
  there at their DCP address, cacheable, since the pipe faults on
  entries with the DART's no-cache bit, and below any range the
  firmware already maps there (a buffer mapped over one flickered).
  They are written through a write-combined mapping: the pipe does not
  snoop the CPU caches.
- The bootloader's simple-framebuffer is taken over.

KMS (iboot_drm.c), one DRM device per DCP:
- Changing the surface between Linux buffers made later SET_MODEs crash
  the firmware. Three scanout buffers of at least 3840x2160 are
  allocated at probe; a frame's damage is copied by the CPU into one that
  is not on screen, which SET_SURFACE then shows, at most once per
  refresh by an hrtimer: there is no vblank interrupt, and several swaps
  within one refresh let an older frame stay on screen. The pitch is
  64-byte aligned, as the firmware refuses an unaligned one.
- The firmware takes a mode as width, height and a 16.16 refresh rate
  and picks the timing itself. The modes are the sink's EDID modes the
  firmware also lists, or the firmware's list with CVT timings. A DRM
  mode is matched to the firmware mode nearest by the exact refresh
  rate, within 1 Hz: next to an EIZO EV2780's [email protected]
  (241.5 MHz) the firmware lists a 60.000 Hz standard mode of its own
  (byte 0 bit 6), which it drives at 312.25 MHz and the monitor does
  not take.
- The EDID is read through the AP's DisplayPort AUX controllers while
  the firmware does no AUX itself, since the iBoot interface does not
  hand it out.
- A mode must fit the lanes the route may train, as GET_MAX_LANE_COUNT
  reports them, not those of the last training: a monitor that drops
  and reasserts HPD while the display is off is trained without a
  stream on a single lane, and 2560x1440@60 then failed the atomic check
  when the outputs came back on.
- Right after power on the firmware still trains the link and fails
  SET_MODE; it takes the mode once the link is up, so SET_MODE is
  retried. The colour mode is the deepest valid one up to 32 bpp, as
  SET_MODE refuses the deeper ones the HDMI converter offers.
- USB-C hotplug is polled from the PD controllers every 250 ms, HDMI
  from the converter's HPD line. An unplug releases DPTX and powers the
  PHY down, a sink that no longer answers after a monitor's deep sleep
  gets a fresh DP alt mode entry at most once a minute, and a quick
  reconnect restores a CRTC that was enabled.
- drm/apple's per-DCP DRM device of dcpext_drm.c and dcpext_scanout.c
  does not fit: it is the T6030 external role's diagnostic, with one
  fixed 3840x2160 mode and the swap operations instead of SET_SURFACE.
  The DRM driver is named "apple-dcpib" (DCP iBoot interface), apart
  from the display subsystem's "apple"; appledrm.iboot_buffered=0 copies
  frames into the buffer on screen instead.

Removal, shutdown and system sleep leave the firmware session alone. An
unbind unplugs the DRM device, releases its committed state without
touching the firmware, and detaches RTKit; the session stays retained,
and a new bind is refused until reboot.

The live endpoint hand-off and the retained failed start are based on
changes by Acelogic.

Tested on the J873g with HDMI and two rear USB-C monitors: all three
come up, HDMI-A-1 at [email protected], DP-1 at [email protected] and
DP-2 at [email protected]. DPMS off and on works on each output, and so
does HDMI at 1920x1080 and back. mpv runs fullscreen at 60 fps with no
dropped frame after the first five. Unbinding DCPEXT1 removes its DRM
device without a warning, and a new bind is refused with -EBUSY.
Earlier runs of the same display code on the J873g: booted without
HDMI, a monitor plugged in later is taken by a free DCP (DCPEXT0, and in
another run DCPEXT1 with source select 2), which starts the PHY from
cold and runs 2560x1440@60 at HBR3, DCPEXT0 within 0.6 s; with the
bootloader's DCP start failing on purpose, HDMI and both USB-C monitors
come up at their EDID modes; woken DCPEXTs log no buffer error.

Signed-off-by: Thomas Glanzmann <[email protected]>
The DARTs of the main DCP and of DCPEXT0, and those of their display
pipes (ADT dart-dcp, dart-disp0, dart-dcpext0 and dart-dispext0), belong
to the SPTM, and the bootloader hands them over locked. Their TLB is
invalidated through the SoC's TLB invalidation aperture
(dart-tlbi-aperture), not through the T8110 TLB command register.

Describe them as apple,t8152-dart-gen3 with their windows in the
aperture (ADT tlbi-aperture-offset 0x400 and 0x480). The second register
window of the display pipe DARTs, their SMMU instance, is not used and
is dropped. The other display DARTs keep their description until
something uses them.

Signed-off-by: Thomas Glanzmann <[email protected]>
The bootloader trains the J873g displays through the DCP firmware's iBoot
interface and hands both DCPs over with their RTKit sessions running:
the main DCP drives a USB-C display on one of the rear ports, or HDMI
when no USB-C display is attached at boot, and DCPEXT0 drives the HDMI
port next to a USB-C display.

Add both DCPs with their post-office mailboxes and enable their Gen3
DARTs, with the DMA window in the upper half of the firmware's 64 GiB
window, above the firmware's and the bootloader's mappings. The main DCP
lists the three rear USB-C ports with their ATC PHY, PMGR power states,
tunables and PD controllers on nub-spmi-a0. DCPEXT0 has the HDMI PHY,
the read-only PMGR power states of the PHY and of its CPU, and the HPD
line of the DP-to-HDMI converter on the AOP's GPIO controller, which is
polled since its interrupts belong to the AOP. Each DCP has the AP
DisplayPort AUX controller that reads the sink's EDID.

Resources are from the 26A434 ADT.

Signed-off-by: Thomas Glanzmann <[email protected]>
Describe DCPEXT1 (ADT dcpext1: ASC at 0x502e00000, post-office
mailbox 7, IRQs 306/266, DARTs dart-dcpext1 SID 23 and dart-dispext1
SID 0) with its PMGR2 PSD admission register. Give each controller its
crossbar source, let DCPEXT0 and DCPEXT1 use the main DCP's USB-C port
children, and widen dp-clock to the PMGR ATC DP clock dividers of all
ATCs.

Signed-off-by: Thomas Glanzmann <[email protected]>
Give the HDMI node the dptx-phy's PSD service (5), the SMC writes that
power the PS190 (ADT dp2hdmi-gpio0 function-dp2hdmi_pwr_en and
function-hdmi_pwr_en, SMC key pcIO) and the dptx-phy tunables from the
ADT, so that the DCP driver can start HDMI without the bootloader.

Signed-off-by: Thomas Glanzmann <[email protected]>
The display coprocessor has a power state of its own, which its DARTs
follow. Allow the node to name it.

Signed-off-by: Thomas Glanzmann <[email protected]>
Every enabled DART must name the power state of the engine it serves
(scripts/dtc/apple-dart-pd-check.py). The six J873g display DARTs named
none.

Their engines are the display coprocessors, whose PMGR states are
DISP_CPU (dcp), DISPEXT0_CPU (dcpext0) and DISPEXT1_CPU (dcpext1) in the
26A434 ADT. The AP does not switch those: a coprocessor is started
through its PSD service (coproc-psd), and its firmware runs the state;
Linux only reads DISPEXT0_CPU (coproc-ps). So they are described as
firmware-owned: the OS keeps them on and never reads or writes them,
which leaves the display hand-off and the HDMI cold start as they are.
The coprocessor nodes name the same state as their DARTs.

DISP_CPU sits at PMGR offset 0x14000 (it reads 0x0f0000ff on J873g, as
DISPEXT0/1_CPU do), past the 0x14000 the PMGR node described, so the
node now spans the ADT's 0x1c000 PMGR window.

Signed-off-by: Thomas Glanzmann <[email protected]>
@sithglan

Copy link
Copy Markdown
Contributor Author

A finding from tonight's M6 rows, fixed in #2873 (stacked on this PR, draft). With nothing on the back-right USB-C port at boot, iBoot lights no display and leaves its 640x1136 placeholder. The main DCP then starts cold, and its SET_POWER never completes, on HDMI and on USB-C. HDMI stays black, on this driver and on apple_dcpib alike. Because the main DCP probes first, it is also the only candidate for the shared HDMI port. #2873 keeps the main DCP unbound in that case, as dcp_iboot_probe() already does for DCPEXT0, so the DCPEXTs drive HDMI and the USB-C display. It changes nothing when iBoot lit a display.

Assisted-by: LLM (Claude:Opus 5.5)

@sithglan

Copy link
Copy Markdown
Contributor Author

#1797 has merged with its trailer-free head a7907d9. This branch still carried #1797's earlier commits, including 17cb996 with the Co-Authored-By: trailer Ryan asked to drop. I replaced them with the merged ones.

  • This is a message-only remap: 9ba4245 → 680a085, and the tree is identical (e51721d8e520).
  • This PR's own 28 commits keep the same patches, authors, dates and messages. GitHub now lists only those commits.
  • It merges cleanly into integration/aurora daa9e2d.

Assisted-by: LLM (Claude:Opus 5.5)

@Acelogic

Copy link
Copy Markdown
Member

I reviewed and tested display PR head 680a085f482f5b45faa5bd6360134ecacfbc487a with public Linux 5701541b5cd5 on our physical J873g Mac mini M6. The integrated build tree was 57bbd18b2efdd50da5ba1d48154de58025f480f4. The kernel had the T8152 display driver built in and booted from RAM through public aura 4a6a093d.

Our connected output passed a 4K KMS test. The main DCP registered as apple-dcpib. The test selected the preferred 3840×2160 mode, checked the CRTC and framebuffer readback, completed 60 page-flip events with alternating framebuffers, disabled and re-enabled the output, and completed another flip. All 12 CPUs stayed online, kernel taint stayed at zero, and this run logged no DCP firmware crash, DART translation fault, or failed mode/surface swap. DCPEXT1 registered a disconnected DP connector. The local DCPEXT startup and parity checks also passed. All eight GitHub checks on the PR head were green.

The loader handoff mattered. Our first RAM-boot harness skipped aura's normal DCP_HANDOFF step. The main DCP crashed and the display DART recorded two translation faults. Using aura's normal handoff cleared both, but our stock prepared DT omitted apple,afk-active-endpoints on the main DCP and DCPEXT0. Linux declined both. For the 4K run we read the main DCP's live mask from aura before and after its successful handoff (0x418 → 0) and published that measured zero on the main node in RAM. The kernel image and on-disk board DTB were identical in all three runs. DCPEXT0 still lacked its handoff and declined probe. An explicit zero in the prepared DT remains a loader integration gap for this setup.

For simultaneous HDMI and both rear USB-C outputs, I relied on sithglan's physical J873g testing. He reported all three active in sway, per-output power cycles, and the display DARTs bound. Ryan accepted the fixed waits and power-domain changes. The separate cold-HDMI case with no rear-right display is tracked in #2873. Author’s three-display results · Reviewer’s follow-up · Cold-HDMI report

@Acelogic
Acelogic marked this pull request as ready for review November 23, 2026 04:17
@Acelogic
Acelogic merged commit e8e852d into aurora-silicon:integration/aurora Nov 23, 2026
8 checks passed
@RyanTheTide

Copy link
Copy Markdown
Contributor

Post-merge review of #1800 and #2139 (merge commits e8e852d and b10280c on integration/aurora), looking only at the shared code that also runs on the Macs we test: T8103/T6000, T8112, T6040, T8140, T8122 and T8132.

I found no change in behaviour on those Macs. The new DART, AFK, DCP, RTKit and AVD paths are all selected by the T8152 block compatibles or by the match data those select. With those absent, they do nothing. The changes that do run everywhere are an AFK service waitqueue wake with no waiters, a NULL fallback for unmatched services, and skipping the reply buffer for commands without output (no existing caller sends one). The AVD probe also allocates its empty domain later and cleans up better on errors. The host-test subsets for DART, DCP/AFK, RTKit, bcm4377 and AVD pass on the merged tip. Hardware rows on the exact tip will follow from the merge train.

There are a few points for follow-up on the T8152 side, none of which affects the other Macs:

  1. dcp_iboot_handoff_quiesced() in iomfb_iboot.c falls back to an exact asahi,m1n1-stage2-version string and a 640x1136 framebuffer when /chosen apple,dcp-rtkit-running is absent. That is a loader-version gate. Could it require the property (aura#301) and drop the fallback?
  2. Cold Gen3 init in apple-dart.c accepts only version == 0x300 with 16 streams on the apple,t8152-avd-dart instance. If that exact match is needed, please say why in the commit message, or key it on a property.
  3. The comment above apple,tunable-phy in t8152-j873-dcp.dtsi names a macOS driver method as the source of the tunable order. Could it say how the order was established (for example a macOS MMIO trace), or just "ADT order"?
  4. The AVD probe error path now frees empty_domain but does not detach it when DMA is parked, as avd_remove() does. It is unreachable today; a one-line mirror would make it robust.
  5. appledrm.iboot_buffered is a new module parameter. It defaults on and is inert elsewhere. Is it still needed, or can the buffered path be the only one?
  6. apple_dart_hw_gen3 uses apple_dart_t8110_irq, while the probe comment refers to apple_dart_t8110_v2_irq(). Please confirm the dispatch for version 0x300.
Per-file details (shared paths)

Line numbers are at b10280c.

  • drivers/iommu/apple-dart.c
    • hw->gen3 is set only in apple_dart_hw_gen3, and cold_gen3 only for apple,t8152-avd-dart.
    • Gated on them: the Gen3 TLBI invalidate (l.2024), the unlock refusal (l.2238), the cold reset (l.2665), the flush-range branch, which comes before the unchanged chain (l.2823), the IAS 36 window (l.3408), the IRQ arm (l.5733), the TLBI aperture probe (l.5994) and the skipped stale-exception drain (l.6167).
    • Locked-root and retain-translation handling, page-table setup, bypass and stream handling for t8020/t8110/t6000 are unchanged.
    • The binding's else branch keeps the previous reg-names rule.
  • drivers/soc/apple/rtkit.c: only the new apple_rtkit_adopt_ep(). Its one caller sits behind hw.afk_adopt_endpoints (T8152 match data). No change to the handshake or message handling for other co-processors.
  • drivers/gpu/drm/apple/afk.c
    • Gated on T8152 match data: afk_v2, afk_adopt_endpoints, afk_announced_names and afk_timeout_ms (0 keeps 1000 ms).
    • afk_stop_live() returns early unless afk_live_endpoints is set, which only iomfb_iboot.c does.
    • Runs everywhere, but changes nothing: wake_up_all(&ep->service_wq) (the waitqueue is set up in afk_ep_init_state()) and the unmatched_ops fallback (NULL).
    • output_len == 0 without an rxbuf: every existing caller passes a non-zero output length.
  • drivers/gpu/drm/apple/dcp.c: DCP_FIRMWARE_IBOOT dispatch in probe, plus early returns in remove/shutdown/PM for dcp_is_iboot(). Every of_match entry has match data, and the PM callbacks already dereferenced dcp. Splitting dcp_pin_live_session() keeps its logic.
  • drivers/gpu/drm/apple/ibootep.c: the request builder now also accepts ops 1 and 3-5. Existing callers pass fixed ops, and the sysfs query takes a bool. The new exported helpers are only used by the T8152 code.
  • drivers/media/platform/apple/avd
    • AVD_QUIRK_KOPSIA (only apple,t8152-avd) gates the reset, IRQ, backend and probe-failure changes.
    • The IRQ handler split keeps its semantics.
    • empty_domain is now allocated right before avd_pm_enable(). It is only used by recovery and remove, which run later.
  • arch/arm64/configs/asahi.config: CONFIG_DRM_APPLE_DCP_T8152=y. Its dependencies (SPMI, MFD_MACSMC) and APERTURE_HELPERS were already enabled. It adds the T8152 objects and one inert module parameter to appledrm.ko.

Host tests on b10280c, tools/asahi/run-host-tests.py --only <subset> --jobs 8:

Subset Passed
apple-dart 10/10
dcpext26 22/22
edid 1/1
bcm4377 12/12
avd 12/12
afk 2/2
apple-dcp 1/1
rtkit 15/15

Planned exact-tip rows on each Mac:

  • boot log with no Gen3/inherited-endpoint lines and the same AFK service matches as the base;
  • IOMMU group count unchanged;
  • panel or external display with DPMS off/on;
  • short s2idle rtc wakes;
  • H.264/HEVC frame-hash decode with AVD runtime PM;
  • NVMe, SMC and AOP up with no unknown-endpoint messages.

Assisted-by: LLM (Claude:Opus 5.5)

RyanTheTide added a commit that referenced this pull request Nov 27, 2026
Resolve the conflicts with #1800 (T8152 iBoot display), which now uses
the iBoot interface through iboot_command() and ibootep_set_surface():
keep the shared iBoot structs (iboot_plane, iboot_layer,
iboot_swap_layer_v13_3), the request builder, the mode query and the
exported ibootep_* commands; remove only the T6030 manual pattern and
frame path (ibootep_present_pattern(), ibootep_rearm_pattern(),
ibootep_present_frame() and their helpers). The mode query's 3840x2160
selection keeps its size as literals, since dcpext_scanout.h goes away.

Signed-off-by: Ryan Murray <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants