Repository navigation
iommu/apple-dart: revert the stream-window intersection that crashes the J613 display - #3270
scottjones wants to merge 1 commit into
Conversation
…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 <scottajones@gmail.com>
2fd96d2 to
8f0376d
Compare
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: 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.
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 <ryan@aurorasilicon.org>
|
J615 (M3 Air 15", T8122, 27.2 fw) current- |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Changes needed at 8f0376d510cb. The J613 A/B is clear, and the J613 display has to work again. But this revert changes the DART for every Mac, not only the J613.
Blocker: the fix is wider than the bug.
drivers/iommu/apple-dart.capple_dart_parse_dma_window()andapple_dart_domain_alloc_paging(): a consumer'sapple,dma-rangenow replaces the stream's window instead of being intersected with it. About 20 DT files have that property, includingt6021-display2,t8132-dcp/-dcpext/-sio,t6040-pciec/-usb4-routers,t8140-j700-dpaudio,t8142-j704/-j813USB, SEP and display, andt6050-j714s-gpu-panel. On any of them whose range is wider than its stream window, an IOVA the DART does not translate can be handed out again. The KUnit case that rejects a disjoint window is removed too.- The evidence points to the J613 description, not to the common rule. The first fault (
0x10006800000) is inside the narrowed window. Ryan's J615 (M3, 27.2 stub) runs current main with7e604265and shows 0 DART faults, 0 DCP crashes and s2idle OK. - Fix: keep the intersection and the disjoint-window test, and correct the J613 25G83 display description (
arch/arm64/boot/dts/apple/t8122-j613-dcp-25g83.dtsi) so its stream window andapple,dma-rangeagree, or narrow the change to that description. If you want a plain revert as a stopgap, it also needs exact-head rows with 0 DART faults on two other generations that haveapple,dma-rangeconsumers (for example an M4 display/SIO and an M5), not only the J613.
|
Closing this as stale in today's backlog triage. The changes requested on 11-27 haven't been answered, and nothing has been pushed since 11-27. Those requests are repeated in today's review: keep the stream-window intersection and its disjoint-window test, and fix the J613 25G83 display description instead. A plain revert changes the DART for every Mac that has The J613 display regression you measured is real. Your branch stays, along with the A/B data above. Reopen this, or open a new PR, once there's a J613-only fix (for example in |
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.859e8a29+ this revert (2fd96d2d)859e8a2928d304000NO PMD / NO PTE0x10006800000, 2.67 s)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 isapple_dart_test_independent_remap_roots(needs 16 KiB kernel pages).