Skip to content

iommu/apple-dart: revert the stream-window intersection that crashes the J613 display - #3270

Open
scottjones wants to merge 1 commit into
aurora-silicon:mainfrom
scottjones:upstream/revert-dart-stream-intersect
Open

scottjones wants to merge 1 commit into
aurora-silicon:mainfrom
scottjones:upstream/revert-dart-stream-intersect

Conversation

@scottjones

Copy link
Copy Markdown
Contributor

What: Revert 7e60426 ("iommu/apple-dart: intersect consumer apertures with each stream window", from #2145). On main it brings back the J613 display crash: the DCP DART faults inside the narrowed display window and the display co-processor crashes about 2.7 s into boot. 6245efd, which fixes the J613 display on its own, stays.
Tested: J613 M3 Air (macOS 14.7 stub) at 2fd96d2: display lit with Hyprland, 0 DART faults, no DCP crash, brightness reads back, s2idle 1/1, Wi-Fi 5/5, 0 failed units; GPU unchanged (M3 firmware ready, Hyprland on Apple M3). Plain main 859e8a2 on the same Mac: DART faults and a DCP crash, no active display, s2idle fails.
Risk: two-way door · M3 Macs whose display DART uses the stream window (J613 tested); other DARTs unaffected by this revert, untested here
Not yet: a proper fix for the stream intersection that keeps the J613 working; other M3 boards not run.

Details

7e60426 narrows the J613 display stream window to 0x10000000000..0x10ffffeffff. The first fault is inside that range, so the excluded top 64 KiB isn't the cause, and the real interaction isn't understood yet. This reverts only that commit so main stops breaking the J613 while the intersection is reworked.

Before the merge, on main 8b0a3832, the #2145 series without 7e60426 (a02fd54e, 6245efd7, 36a5f137, f3c1254b) booted the J613 clean, and adding 7e60426 brought the crash back. Results are in the comment on #2145.

Evidence

Both kernels with the fleet config (DRM_ASAHI_M3_T8122=y), default fleet command line, one-shot boot, then restored to the stock kernel.

Check main 859e8a29 + this revert (2fd96d2d) plain main 859e8a29
DART 28d304000 NO PMD / NO PTE 0 / 0 3 / 86 (first NO PMD at 0x10006800000, 2.67 s)
DCP RTKit crash none at 2.68 s
Panel lit, Hyprland active display yes no
Brightness read-back 140 → 125 → 140 unreadable
s2idle 1/1 0/1 (apple-drm -EIO)
Wi-Fi ping 5/5 before and after sleep 5/5
Failed units 0 0 at boot, systemd-suspend.service after sleep
Kernel error kinds 12, none new vs the stock kernel 77
GPU T8122 identity admitted, M3 firmware ready, Hyprland renderer Apple M3 (G15G C0) same

apple-dart KUnit (arm64 QEMU, LLVM=1): this branch 29 tests, 28 passed, 1 skipped; main 30 tests, 29 passed, 1 skipped. The difference is apple_dart_test_disjoint_consumer_window, which goes with the reverted commit. The skip on both is apple_dart_test_independent_remap_roots (needs 16 KiB kernel pages).

…am window"

This reverts commit 7e60426.

On the J613 (13-inch M3 Air, macOS 14.7 stub) the display co-processor
crashes about 3 s into boot with that commit applied. The DCP DART logs
NO PMD FOR IOVA at 0x10007800000, then RTKit reports the co-processor
crashed and IOMFB reports axi_rd_err. The panel stays on the boot splash,
brightness can't be read back and s2idle fails.

The fault address is inside the window 7e60426 narrows the J613 display
stream to (0x10000000000..0x10ffffeffff), so the excluded top 64 KiB is
not the cause, and the real interaction isn't understood yet. On main
8b0a383, the series without this commit (a02fd54, 6245efd, 36a5f13,
f3c1254) boots the J613 with the display lit and no DART faults; adding
7e60426 brings the crash back.

Revert it until the stream intersection can be redone without breaking
the J613. 6245efd, which fixes the J613 display on its own, stays.

Fixes: 7e60426 ("iommu/apple-dart: intersect consumer apertures with each stream window")
Signed-off-by: Scott Jones <[email protected]>
@scottjones
scottjones marked this pull request as ready for review November 27, 2026 03:43
@scottjones
scottjones force-pushed the upstream/revert-dart-stream-intersect branch from 2fd96d2 to 8f0376d Compare November 27, 2026 03:43
@scottjones
scottjones requested review from a team as code owners November 27, 2026 03:43
@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) 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 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Merge readiness at 8f0376d5: not ready yet

Check Detail
CI at head ok 18 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok the PR body at 2fd96d2d; the changed files are byte-identical at 8f0376d5
Conflicts ok none
PR text ok Risk: two-way · M3 Macs whose display DART uses the stream window (J613 tested); other DARTs unaffected by this revert, untested here

Areas: area:platform

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

@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: FINISH at 8f0376d510cb

The J613 control shows a real display regression. The proposed fix changes every DART consumer with apple,dma-range: apple_dart_parse_dma_window() now returns the consumer interval even when it is disjoint from an explicit five-cell stream window, and domain allocation can use the same override. The removed KUnit case already checks this case. Please keep rejecting disjoint explicit windows and fix the J613 alias or its stream description without weakening the common constraint. If the intended alias contract differs, document it and show why all affected consumers remain confined to usable regions. Re-run the target/peer rows at the landing head. The posted host job died at apt setup with HTTP 403 before running fixtures.

@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Nov 28, 2026
satchlj pushed a commit to satchlj/linux that referenced this pull request Nov 29, 2026
Hosted Ubuntu 24.04 runners pre-install third-party apt sources such as
packages.microsoft.com under /etc/apt/sources.list.d/. Workflows that
pass -o APT::Update::Error-Mode=any abort with exit code 100 whenever
one of those unused repositories returns a transient 403/5xx (observed
on PR aurora-silicon#3270 and PR aurora-silicon#2603).

Drop non-ubuntu.sources files from /etc/apt/sources.list.d/ before
apt-get update and pass -o Acquire::Retries=3 to apt-get update/install
across the Ubuntu runner workflows. All packages installed by these
workflows come from the standard signed Ubuntu archives.

Also update tools/asahi/run-host-tests.py so failed suites print any
'not ok ' TAP lines before the 40-line log tail; previously a failure
early in a long suite like apple-dcp scrolled off the tail and could not
be identified without downloading the artifact zip.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor

J615 (M3 Air 15", T8122, 27.2 fw) current-main DART/DCP data point: booted main 00267514 (7.3.0-aurora-devmotion-idle) and main 498d53fd (7.3.0-aurora-peer1+), both carrying 7e604265 unchanged — 0 apple-dart faults, 0 apple-dcp crashes, display + GPU (api.smoke 8/8, compute.pipeline.basic 80/81) + s2idle 1/1 all ok, Enforcing, 0 AVC, 0 failed units. So the stream-window DART fault reported on J613 (14.7 stub) does NOT reproduce on J615 (27.2 stub).

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Nov 30, 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:platform Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants