Repository navigation
Conversation
Apply the reset fixes from ps2dev#70 while relying on ps2dev/ps2sdk#969 to reset newlib-nano stdio state during startup after ExecPS2. Co-authored-by: kaisa847 <226997300+kaisa847@users.noreply.github.com>
fjtrujy
marked this pull request as ready for review
November 18, 2026 15:44
Keep IOP host services mounted until reboot; route network and physical reset requests through one worker; isolate DMA staging for reset and exception packets; bound EE IOP reboot waits and recover via ExecPS2 on timeout. Identify preserved EE threads by their entry/stack/GP rather than recycled IDs.
fjtrujy
marked this pull request as draft
November 24, 2026 19:08
fjtrujy
added a commit
to kaisa847/ps2link
that referenced
this pull request
Nov 24, 2026
Consolidate the additional reset reliability fixes from ps2dev#71 into the original contributor PR. Remove the duplicate newlib-nano private struct, defer physical-button reset to an IOP worker, guard SIF DMA submission failures and the EE IOP reboot wait, and harden thread identity handling.
Member
Author
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.
Purpose
Alternative to #70 (based on @kaisa847's reset work), with the same EE/IOP reset reliability fixes without copying newlib-nano's private
struct _reentlayout into ps2link. ps2sdk #969 is already merged and owns the stdio reinitialization required afterExecPS2().This PR replaces rather than supplements #70; please do not merge both.
Changes
SifIopReset()submissions only when accepted by the SDK, with a bounded BOOTEND wait; if no completion occurs, restart the EE and let ps2link's startup retry the IOP reset.iWakeupThread(), never blocking or performing DMA retries directly.host:andttymounted until the IOP reboot actually occurs. A failed SIF submission no longer destructively removes these services.Verification
-Werror.PWOFFONRESET=0andPWOFFONRESET=1.libcglue.apredates ps2sdk #969, so these builds cannot establish that the rebuilt SDK fixes the runtime newlib-nano restart path.Required real-hardware regression matrix
IPCONFIG.DAT, verify firstprintf()after the self-restart and successful subsequent network commands.ps2clientcan reach ps2link and launch another ELF each cycle.PWOFFONRESET.host:teardown or permanent stale half-reset state.execeeafter recovery, and run at least 10 consecutive reset cycles.Dependency and attribution
cf9557dor newer); updating headers alone is not enough.