Repository navigation
dart: allow the locked DCP DART view on T600x, so desktop M1 Pro/Max/Ultra DCPs boot - #46
Conversation
On a Mac Studio M1 Max (J375c, T6001) the HDMI DCP never comes up under Linux and the desktop stays on 1080p simpledrm (omacom/linux-aurora#379). Stage 2 logs: dart: dart /arm-io/dart-dcp at 0x38b30c000 is a t6000 (locked) rtkit(dcp): booting with version 12 rtkit(dcp): failed to DART map (size 0x4000) dcp: failed to boot RTKit display: failed to initialize DCP 7e00d54 added a mutable view of a configuration-locked DCP DART for T8103 only. T600x has the same lock on a DART_T6000, so RTKit's buffer grant is refused, dcp_init() backs out and the DCP is left mid-handshake. Linux then gets no HELLO from it. Extend that view, and the FDT reservation of the L2 pages it publishes, to T6000, T6001 and T6002. The register layout is shared with DART_T8020; only the PTE offset field differs, which the existing params cover. Tested on J375c (T6001) with OS firmware 13.5 and system firmware 26.5: apple-drm binds both DCPs and HDMI runs 3840x2160@60 on the stock linux-aurora 7.2.11.aurora14-1 kernel. T6000 and T6002 are included by analogy and have not been booted. The T8103-only inherited-prefix block in kboot_prepare_dt() is not changed. A stage 1 carrying this change would need it. Add T600x cases to the display DART and legacy table lifetime host tests. They fail without the source change. Generated-by: LLM Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: riopierrefrancois <rio.pierrefrancois@gmail.com>
[Medium impact] The PR appears safe to merge within its stated stage 2 scope. SummaryExtends the locked display DART view to T6000, T6001, and T6002.
No actionable issues were found. Tests were not run during this review. riopierrefrancois explicitly deferred extending the inherited-prefix reservation in Reviews (1) · Last reviewed commit: "dart: allow the locked DCP DART view on ..." · Reviewed by Greptile |
|
Confirmed working on a third j375c (Mac Studio M1 Max, 2022), stock Result: Build note: a native aarch64 GCC 16.1.1 build works too ( Thanks @riopierrefrancois for tracking down the locked DCP DART and for the fix. A merged/rebased package would let other j375c owners get 4K without building. |
joshuaswarren
left a comment
There was a problem hiding this comment.
Tested on 16-inch M1 Max MacBook Pro (T6001), Omarchy, Studio Display over Thunderbolt.
Current m1n1 (v1.6.1-omarchy.aurora14 from integration/aurora) only handles T8103 for locked DCP DART. The PR extends this to T600x (T6000/T6001/T6002).
DCP initialization succeeds. Display comes up at 3840x2160@59 Hz. No "dart locked" or "failed to DART map" errors in dmesg. The T600x DCP DART is not locked on this hardware.
I didn't boot the PR build of m1n1.
The bug cannot be reproduced on this hardware. The fix is correct in principle (extending locked DCP DART support to T600x), but I cannot confirm it resolves a real issue here.
|
Follow-up with a real boot. I built this branch (a2218a9), put it into the boot image in place of the stock m1n1, and booted a 16-inch M1 Max MacBook Pro (T6001) with a Studio Display on Thunderbolt. What I saw on that boot:
What I did not check:
I'll add the stock-m1n1 comparison next. |
|
Rebase check for the current package source: this PR's commit cherry-picks cleanly onto The same locked-DART approach, extended to the T8110 dcpext DART (ytgconsulting's follow-up patch in omacom/linux-aurora#379), also fixes HDMI on the M2 Ultra Mac Studio (j475d / T6022, |
|
Fourth j375c confirming this PR, plus two results not yet reported on it: DisplayPort alt mode over Type-C, and the rear USB-C ports as USB hosts. Versions
The system firmware differs from the 26.5 and 26.6.2 reported by the other j375c testers in linux-aurora#379, while the failure and the fix are identical. So the locked-DART path does not appear to depend on the system firmware version. Before (stock aurora22)m1n1 stage 2 log, from a stock boot: and the kernel, as in linux-aurora#379: The desktop stayed on simpledrm After (
|
|
Confirmed on a 2022 M1 Max Mac Studio ( With patched stage 2 ( Omarchy’s updater rejects the custom stage‑2 image because it differs from the installed package. Is there an official test package we could validate through the normal update path? |
|
Follow-up on the same 2022 M1 Max Mac Studio (
|
On a Mac Studio M1 Max (J375c, T6001) the HDMI DCP never comes up under Linux and the desktop stays on 1080p simpledrm (omacom/linux-aurora#379). Stage 2 logs:
7e00d54 added a mutable view of a configuration-locked DCP DART, but only for T8103. T600x has the same lock on a DART_T6000, so RTKit's buffer grant is refused,
dcp_init()backs out, and the DCP is left mid-handshake. Linux then gets no HELLO.This extends that view, and the FDT reservation of the L2 pages it publishes, to T6000/T6001/T6002.
Tested: J375c (T6001), OS firmware 13.5, system firmware 26.5, stage 2 built from bc79acc with this change, stock linux-aurora 7.2.11.aurora14-1. apple-drm binds both DCPs and HDMI runs 3840x2160@60. The booted build also printed a line in
dart_reserve_legacy_tables(); that line is dropped here so the host test can still lift the function body.Not tested: T6000 and T6002 are included by analogy and have not been booted.
Not changed: the T8103-only inherited-prefix block in
kboot_prepare_dt(). A stage 1 carrying this change would need it; I left it out because it adds bail conditions I could not test.Tests: new T600x cases in
test_t8103_display_dart.pyandtest_legacy_table_lifetime.py. They fail without the source change. I ran those two files andtest_locked_dart_tables.pylocally, not the full suite.Maintainers are welcome to push to this branch or take the change over.
🤖 Generated with Claude Code