Repository navigation
iommu/apple-dart: warn once per stream when a retire invalidate fails - #559
Merged
Merged
Conversation
When the TLB invalidate that retiring a locked root needs fails, the DART remembers the error per stream (locked_retire_err), and apple_dart_domain_free() keeps the page tables of every domain on that stream until reboot. Nothing said so until a domain was freed, and then only as a ratelimited "retaining page tables" error per free. Log a warning the first time a stream records such an error, naming the stream and the error and saying its page tables are kept. The error is never cleared, so this fires at most once per stream. The host fixture counts the warning in the timeout cases, and a new retire-repeat-timeout case checks that a second failed retire on the same stream keeps the first error and does not warn again. Signed-off-by: DjDeveloperr <[email protected]>
This was referenced Nov 28, 2026
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.
Follow-up to maralcbr's non-blocking note on omacom/linux-aurora#235 (mirrored here as #546): make a stream whose page tables are being kept visible in a bug report.
When the TLB invalidate that retiring a locked root needs fails, the DART remembers the error per stream (
locked_retire_err).apple_dart_domain_free()then keeps the page tables of every domain on that stream until reboot. Until now nothing said so before a domain was freed, and then only as a ratelimited "retaining page tables" error per free.The first time a stream records such an error, this logs:
The error is never cleared, so the warning fires at most once per stream. The ordinary unmap path, which still drops invalidate errors, predates #546 and isn't changed here.
Testing (host only):
tools/asahi/apple-dart-fw-tests.py: 74/74. The timeout cases now also check for exactly one warning, and the newretire-repeat-timeoutcase checks that a second failed retire on the same stream keeps the first error and doesn't warn again.APPLE_DART_KUNIT_TEST): 25/25.apple-dart.obuilds clean with W=1.The omacom PR follows once omacom/linux-aurora#235 is merged.