Repository navigation
iommu: apple-dart: leave a powered-down DCP DART alone in its IRQ handler - #1927
Merged
RyanTheTide merged 1 commit intoNov 15, 2026
Conversation
…dler A DCP can power its DARTs down: the internal one for a display power-down, a T8132 external one (dcpext) whenever nothing is attached for a few seconds after boot. apple_dart_host_power_off() then marks the DART host_off, and nothing may use its registers until it is powered up again. The exception handler did not check that. Its line is requested shared and is neither disabled nor synchronized at power-down, so an interrupt for a sharer, or one still pending as the block goes down, reads the exception registers of a DART with no power. On this fabric such a read does not fault: it stalls the CPU, in hard IRQ context, and the other CPUs stop behind it. Return IRQ_NONE without touching the registers while the DART is host_off, and wait in apple_dart_host_power_off() for any handler that already passed the check before the DART loses its power. The handler works again once apple_dart_host_power_on() clears host_off. Signed-off-by: Dylan Ironside <[email protected]> Assisted-by: LLM
IronsideXXVI
added a commit
to IronsideXXVI/omarchy-j604
that referenced
this pull request
Nov 14, 2026
kernel/: the 2 patches 1.915 adds (597 in all), same Aurora base: deep-sleep wake marks from the resume stub to init_kernel_el plus the kernel pointer authentication keys installed again on the way back, and a runtime switch (off by default) for the memory bandwidth vote macOS sends under load. The recipe is the linux-aurora package. STATUS.md: 1.915 is the default as linux-aurora with 1.914 beside it as linux-aurora-next. The early-boot stall is stated as the journal shows it: 6 of 22 boots since 1.903, on kernels we called good too, each ending at about 6 s between the speaker start at login and the external display coprocessor's idle power-down; the change in 1.909 did not fix it. The fix candidate rides 1.916 and is not proven yet. UPSTREAM.md: aurora-silicon/linux#1927 (DART interrupt handler and a powered-down DART) and #1928 (the J604 SMC power channels) opened; #1894 speakers audible on this J604 with the same properties.
m0d16l14n1
added a commit
to m0d16l14n1/linux
that referenced
this pull request
Nov 15, 2026
IronsideXXVI: iommu: apple-dart: leave a powered-down DCP DART alone in its IRQ handler
RyanTheTide
merged commit Nov 15, 2026
9af711e
into
aurora-silicon:integration/aurora
1 check passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A DCP can power its DARTs down: the internal one for a display power-down, and on T8132 the external one (dcpext) a few seconds after boot when nothing is attached.
apple_dart_host_power_off()then setshost_off, and nothing should touch the DART's registers untilapple_dart_host_power_on()clears it.apple_dart_irq()did not checkhost_off. Its line is requested shared and is neither disabled nor synchronized at power-down. So an interrupt for another sharer, or one still pending while the block goes down, reads the exception registers of an unpowered DART from hard IRQ context.This patch:
IRQ_NONEwithout touching the registers while the DART ishost_off, both before and after the runtime-PM get (the same pattern as the existingcommands_gatedcheck);synchronize_irq()inapple_dart_host_power_off()afterhost_offis set, so a handler that already passed the check finishes before the power goes.The handler works again once
host_offis cleared. Machines whose DCP never powers a DART down are unaffected.What this is and is not: it is a correctness fix (a hard IRQ handler should not read a block its host has powered off). It is not offered as the fix for a hang. We carried it on the J604 (MacBook Pro 14" M4, T8132), where the external DCP powers its DART down at boot, while chasing an intermittent early-boot stall. The stall still happened once in 7 boots with this patch in, so we do not claim it cures that.
Checked on top of
integration/auroraa5ebec5:drivers/iommu/builds with W=1 and adds no warnings (the two unused-function warnings fromapple-dart-dcp.hare already there on a5ebec5)tools/asahi/run-host-tests.py --only dart: 12 of 12 passTested on the J604 only: our kernels 1.909, 1.910, 1.913 and 1.914 carry it, with no DART faults and 0 deferred devices at boot.