Repository navigation
Fix: a refused restore logs which loader check refused it, and the module pool (base 0.7.10) - #1772
Merged
Merged
Conversation
One refusal code comes from several checks: RUNTIME_MEMORY is the module pool, a package's DSP claims meeting a live or planned delay buffer (dl_hook_claims_idle), or the DSP's limits. The loader now keeps which admission step refused the last prepare (modwerk_runtime_refused_check: pool, claims, metadata, DSP). A restore that leaves a package out records, in the unit log's set record, that check (dsp1) and the module pool's bytes used and largest free run at that moment (cpu and dsp0, 16-byte units). Bases before 0.7.10 leave all three 0. Two units restored the same set with SC Ringmod on one start and refused it as module memory on the next. In the emulator the same set without SC Ringmod used 161 KB of the 768 KB pool, so the pool cannot explain it; SC Ringmod's key-bus read claims meeting a delay buffer can. The records could not tell the two apart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
dl_hook_claims_idle), and the DSP's limits. In the emulator the same set without SC Ringmod used 161 KB of the 768 KB pool, with 625 KB free in one block, so the pool is unlikely. SC Ringmod's key-bus read claims meeting a delay buffer, which depends on the effects the loaded project runs, is the likely cause. Nothing in the records could tell the two apart.modwerk_runtime_refused_check,loader.h). This is additive, and every other refusal reports none.modset.c). The unit log's set record carries them in its three unused fields:cpuanddsp0for the pool in 16-byte units,dsp1for the check (diag.c,diag.h). The layout is unchanged, and older bases leave all three 0.test_modset.c(the pool and check when the package is left out),test_diag.c(the set record carries them, once), and the card guard, card shelf and volatile-service tests.test_runtime_loader's registry-guard test fails the same way without this change.npm run pr:readystops at its first step becausebase/octatrack-nextdoes not contain current main; I left merging main into the draft to whoever keeps it.🤖 Generated with Claude Code