fix(agc): avoid duplicate GT7 EOP flip events #6963
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6963"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T21:24:04Z.
What
Tested
agc_driver_testsbuilt successfully; focused CTestagc_driver_guest_eop_flip_suppressionpassed (1/1).templatekeyword in an unrelated current-main source. For this local run only, I temporarily applied those two workarounds, built and ran the focused test, then restored both files. Neither workaround is included in this PR.python3 tools/check_conventions.py --base upstream/mainandgit diff --checkpassed.Checklist
main; no other open PR implements the same functionsImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T21:33:59Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cppcore/libs/prx/libSceAgcDriver/tests/Submit.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cppcore/libs/prx/libSceAgcDriver/tests/Submit.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Eq/src/Event.cppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Eq/src/Event.cppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Eq/include/Event.hppcore/libs/prx/libSceAgcDriver/Eq/src/Event.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cppcore/libs/prx/libSceAgcDriver/tests/Submit.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtImported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-17T08:55:20Z.
Ran this against the GT7 dump (PPSA01317 01.000.001) with your patch applied to our local tree
(
34454bd+ #6083,--to-intel, RX 9070 XT / RADV, app.elf from the dump). Your diff applied andbuilt cleanly. Outcome: the title still takes the #6350 fault, and the trace shows which synthetic
flip event remains.
Result
One guest EOP delivered, and a synthetic flip EOP still followed it.
Why the one-shot marker misses GT7
GT7's queue-0 submissions pair two flips with one guest EOP:
(submit-time instrumentation of the same run, 598 submissions). The single pending marker is
consumed by the first flip of the pair; the second flip has nothing pending and delivers. That is 2
events for 1 armed context, exactly as in the unpatched run.
What did hold
Treating guest self-signaling as a per-queue mode — once that queue's guest release has been seen,
suppress the synthetic flip EOP on that queue — ran without the fault:
deliveries=353 consumer=353 nulls=0AGC graphics: unsupported primitive type 21, andsceSslEnableVerifyOption not implementedin another run).Same-session A/B, for the record:
On the test you want
The currency of the "self-signals once, then flips" title is the sequence you named (guest EOP, then
a later bare flip). I can't exercise that — GT7 is the only title data I have, and it is
guest-EOP-then-two-flips. The three-step case for GT7 is: guest EOP -> flip -> flip, where the
one-shot predicate delivers 2 events and the per-queue mode delivers 1.
Happy to push the mode as a patch on top of this PR (or hand you the diff) if you want to compare
the two, and to run any additional sequence you want replayed against the driver.
Imported from boykopovar/AnyPS5. Originally posted by Rengundom on 2026-10-17T09:52:13Z.
Tested this branch (with #6616) on My First Gran Turismo (PPSA24156), Windows 11 Pro 26H2 (build 26300.9550), NVIDIA GeForce RTX 3080, driver 616.92 (Game Ready): it still stops during boot, within the first 10 s.
The title's
PGL Eventthread waits on the equeue that holds its graphics end-of-pipe registration. On each graphics event of type 0 or 1 it takes and clears an object pointer it stores before eachRELEASE_MEMwithINT_SEL, then reads+0x48of it. With this branch, a flip's event still arrives on at least one frame where no stored object is waiting, so the pointer is null.The same build with a different rule boots past this point. In that build, a registration whose queue has ever submitted a
RELEASE_MEMwithINT_SELnever gets the flip's event; queues that never request release interrupts (Minecraft, PPSA17221) still do. I can share that change if it is useful for comparison.Imported from boykopovar/AnyPS5. Originally posted by keravyn-ops on 2026-10-17T09:59:28Z.
AMD / Windows run of this PR at
088001427: Radeon 780M (RDNA 3, 0x15bf), AMD driver 25.10.20.01 (32.0.21020.1007), Windows 11 Home 10.0.26100, WinLibs GCC 15.2.0 r7, Release.Every ctest entry built from the test targets this PR changes passes (5):
agc_driver_readonly_resummarize(0.07 s):295: Read-only resummarize submission passedagc_driver_guest_eop_flip_suppression(0.05 s):296: AGC EOP interrupt suppression tests passedagc_driver(4.05 s):308: AGC driver submit tests passedagc_driver_depth_fast_clear_submit(0.40 s):367: depth fast clear submit tests passedagc_driver_layered_volume_submit(0.41 s):526: layered volume draws through the driver passedAI-assisted: yes (runs made on the device above).
Imported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-17T10:05:56Z.
Two more data points, from the title side.
@keravyn-ops' run is test-suite-only (no title boot), and the test that covers this is the one whose
expectation the titles contradict — see the regression-test note below.
@Rengundom's rule ("a registration whose queue has ever submitted a
RELEASE_MEMwithINT_SELnever gets the flip's event") reproduces and fixes it here too. I applied it on top of this branch and
ran GT7.
Branch as it stands (GT7 PPSA01317 01.000.001, Linux/RADV,
--to-intel)GT7's queue-0 submissions pair two flips with one guest release:
The one pending marker is consumed by the first flip of the pair; the second flip has nothing pending
and delivers. Two events for one armed context, same as unpatched.
With Rengundom's rule
No SIGSEGV. A plain run stays up 41 s and then stops on an unrelated path
(
AGC graphics: unsupported primitive type 21). A/B in the same session, same mount:0x1F94F2Bunsupported primitive type 21The change I tested, on top of this branch:
(
<unordered_set>and<mutex>are already included. I used a set instead of an array because queueids reach 80/81 on this title and I did not find a hard bound on them.)
The regression test contradicts the titles
With the latch applied,
agc_driver_guest_eop_flip_suppressionfails atThat assertion says a queue which has already delivered its own EOP must still get a later synthetic
flip event. That event is exactly what kills the titles: GT7 and Rengundom's PPSA24156 arm one object
before each
RELEASE_MEM/INT_SELand take-and-clear it on every graphics event of type 0/1, so anyevent with nothing armed derefs null. For a queue that asks for release interrupts, the event count
has to match the release count — the synthetic flip EOP is the extra one.
So this is not a silent behavior change; it is the change the titles need, and the test expectation
should invert (guest EOP, flip, flip -> one event total, not two). The "self-signals once, then relies
on flips forever" title the current assertion guards for is hypothetical: none of GT7, PPSA24156 or
the flip-only titles we have (Minecraft PPSA17221) behaves that way.
The latch is a queue-lifetime mode. If you would rather not latch for the queue's lifetime, a
frame-scoped variant may be possible — GT7's two flips look like they belong to one frame — but I
have not tested it, and I do not have frame-boundary evidence to back it.
@MarcZX100 — I can push the latch as a commit on this branch, or open it separately if you would
rather keep #6963's one-shot form for the record, and update the test to the flip/flip sequence.
Say which base you want and I will send it.
Imported from boykopovar/AnyPS5. Originally posted by keravyn-ops on 2026-10-17T10:17:07Z.
Right, @Lberonio — that run is the test suite only, no title boot. It shows the changed tests build and run on AMD/Windows, not that their expectation matches GT7 or My First Gran Turismo; please don't read it as evidence for the current flip-event rule.
Imported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-17T10:20:53Z.
A correction to my offer above, after checking what updating the test actually takes.
guestEopBeforeNextFlipis one-shot, sotests/Submit.cppcan assert both sides in one run: thefirst flip after a guest EOP is suppressed (line 247), the next bare flip delivers (lines 232/250).
Under a per-queue latch the second half is unreachable in this test. The graphics registration is on
queue 0 (
sceAgcDriverAddEqEvent(eq, 0, &graphicsTag)), the flips go to queue 0, and the guest EOPs atlines 200/207/256 are delivered on queue 0 — so queue 0 latches at the first of them and every later
flip in the file is suppressed. With the latch applied the test fails at line 232, as expected.
There is no way around it with another queue either: flips are queue-0-only
(
Submission.cpp:241,require(submission.queue == 0, "EOP flips on async queues are not implemented")),so a flip-only queue cannot be built in the same driver instance.
So the change cannot just invert the assertions. The flip-synthesis coverage has to move to its own
executable that never delivers a guest EOP — register on queue 0, submit bare flips, assert their
events, exit. That preserves coverage of the path the latch disables, while
Submit.cppkeeps theself-signaling half. Worth doing regardless of which rule you take:
Submit.cppis currently the onlytest in the tree that asserts flip EOP events at all, and only after a guest EOP.
If you want the latch, I will send it with that split — the runtime change stays exactly as posted
above, the extra is test restructuring.
@keravyn-ops agreed, that is how I read it too — build coverage on AMD/Windows, not title behavior.
Imported from boykopovar/AnyPS5. Originally posted by Rengundom on 2026-10-17T10:42:39Z.
Thanks @lberonio, that matches what I see on PPSA24156, and GT7's flip/flip/release pattern explains why the one-shot form isn't enough.
I'm happy for the latch to land on this branch rather than as a separate PR from me. For the test, this is the sequence I used in
testEndOfPipeInterrupts(tests/Submit.cpp), in case it's useful:RELEASE_MEMwithINT_SELraises one graphics event (data == 1), which then clears. This is the Minecraft (PPSA17221) case.INT_SELraise one event withdata == 2, as before.I also changed the libSceAgcDriver debt entry. It now says it isn't known what the console does for a queue that mixes flip-driven and release-driven events. I can post either diff here.
Imported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-17T10:48:43Z.
Ran your sequence against the latch on this branch — it passes:
The ordering is what makes it work: the fresh-queue flip has to come before the first
RELEASE_MEMwith
INT_SELon queue 0, since the latch is set by the first delivery. That is simpler than theseparate-executable split I suggested above — no new target needed,
testEndOfPipeInterruptsjuststarts with the flip (I moved the
Output/flipPacketblock above the interrupt submits).One payload changes that you may not have hit: the flip-before-EOP case goes from
data == 2todata == 1, because only the release triggers now — the flip used to add a second trigger to thesame coalesced event. The rest of the flipped-side assertions are simply
== 0.If you already have the
tests/Submit.cppdiff and thelibSceAgcDriver.mddebt entry written, postthem and I will build on those rather than duplicate them; otherwise I can post both (I have the test
diff ready, the debt wording is yours).
Still waiting on Marc for which base to put the latch on.
Imported from boykopovar/AnyPS5. Originally posted by Rengundom on 2026-10-17T11:25:49Z.
Thanks. Your test sequence is the same as mine (flip on the fresh queue first, then the releases, then a second flip expecting nothing), so please go ahead with your diff rather than mine.
For the debt entry: in
docs/dev/debt/libSceAgcDriver.md, the item Flip packets raise the graphics end-of-pipe event currently ends with:I replaced that with:
The rest of the item is unchanged. Adjust it to whichever form of the latch lands.
Imported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-17T11:33:16Z.
Debt wording taken, and the package verified against your branch head (
0880014), not against myolder local base — it applies clean:
agc_driver_tests --eop-interruptspasses with it.same shape: the flip event that follows the marker arrives with a null context.
@MarcZX100 this is the whole thing. The runtime change is the only part that needs a decision from
you; the other two files are the test and the debt line. If you would rather I open a PR from a fork
than paste the diff, say so and I will.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T12:22:12Z.
Thanks for the title traces and the follow-up test sequence. The GT7 and My First Gran Turismo runs show the current one-shot form still permits an extra flip event on queues that use
RELEASE_MEMwithINT_SEL; the queue-lifetime latch is the only variant in these reports that gets both title runs past this fault. The fresh-queue flip followed by release interrupts and a later flip is a useful focused regression, and the debt entry should keep the mixed-mode console behavior explicitly unknown.Please open the latch as a separate PR from your fork, with your own commit authorship, so the distinct queue-mode semantics and regression can be reviewed independently from this one-shot head. Include the exact observed title results and the test/validation scope; don’t claim console semantics or untested mixed-mode behavior. I’ll review the new PR and then update this PR’s scope/status based on that review.
Imported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-17T13:16:12Z.
@MarcZX100 opened it as its own change: #7137, from my fork, for separate review.
How it differs from this PR
This PR marks the frame and lets the next flip consume the mark. GT7 pairs two flips with one
RELEASE_MEM/INT_SELon queue 0 per frame, so the first flip consumes the mark and the second still delivers — two deliveries for one consumer per frame, and the second is the one that faults.#7137 latches the queue instead: once a queue has actually delivered an interrupt from one of its own release packets, a flip on that queue delivers nothing for as long as the queue runs. A queue that never raised its own release interrupt still delivers from the flip, which is what Minecraft (PPSA17221) waits on after every flip. The latch is per queue, is never cleared, and only a queue that really delivered sets it (
AgcDriverDeliverEopInterruptnow reports whether a registration received the interrupt).Both changes sit on the same delivery sites. #7137 is rebased on
main@e679bab91and does not build on this one, so the two can be reviewed and landed independently.Observed results
On this PR's head (
34454bd+ #6083 + #6616 + this change), GT7 (PPSA01317 v01.680) still faults:With the queue latch instead, the same trace shape:
Test in #7137:
agc_driver_tests --eop-interrupts(newagc_driver_eop_interruptsctest) passes — a flip on a queue with no release interrupt raises the event (data = 1), two releases on that queue deliver it (data = 2), a later flip on the same queue raises nothing. Reverting only the runtime sources in the same tree makes it fail withflip on a queue that already raised its own release interrupt raised a second event, so it covers the change and not the old behaviour.tools/check_conventions.pypasses.Scope
The GT7 runs above used the equivalent change on the older tree the runtime was built from. The
.prxbuilt from #7137's branch cannot be loaded into that runtime: currentmainneedsLibcRegisterFailureReport_nid_no_patchfrom alibc.prxnewer than the one in it (symbol lookup error, rc 127), and rebuilding the whole runtime frommainis outside this change. I have not measured console behaviour, and a title that both waits on the flip event and raises its own release interrupts is untested.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T13:17:33Z.
I reviewed the separate #7137 follow-up. Its queue latch has focused coverage for a queue that has only flip events and for a queue that has delivered release interrupts, and the GT7 report explains why this PR's one-shot marker misses the second flip. The mixed-mode console behavior remains explicitly unmeasured in the new PR. I agree #7137 is the right separate review path for that broader queue-mode rule; I’ll keep this PR open while that review proceeds, and won’t describe this one-shot patch as fixing #6350.
AI-assisted: yes (Codex); code and test scope reviewed.
Imported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-17T13:32:13Z.
Noted, and thanks for the review — #7137 is unchanged and the status of #6963 is yours to set.
One clarification on the mixed-mode gap, posted on #7137: GT7's queue 0 is itself a queue that carries flips and raises its own release interrupts. With the queue latch, all 231 deliveries in the reconfirmed run were consumed with 0 null contexts and the title advanced past frame pacing, so the latch does not starve that queue in this title. It is still not the untested case — GT7 never waits on the flip event for that queue — and console behaviour stays unmeasured, as stated in the new PR's
Not testedline.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T13:33:27Z.
Coordination update: #7137 reports that GT7 submits two flips per release interrupt, so the one-shot marker in this PR is consumed by the first flip and the second still raises the unpaired event. Their queue-mode change reports the original SIGSEGV gone, with later unrelated blockers. I am leaving this PR open as requested, but the current one-shot behavior should not be treated as fixing #6350.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T13:43:00Z.
Thanks for the additional GT7 and PPSA24156 evidence. It confirms the one-shot marker on this branch is insufficient: GT7 pairs two flips with one release, and My First Gran Turismo can still receive an unpaired event. The queue-latch behavior is now isolated in PR #7137 with a focused regression sequence and test results. I am keeping #6963 open per the repository-work tracking instruction; its current one-shot change should not be treated as resolving these reports.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T12:33:02Z.
Closing: the one-shot suppression here was shown not to fix #6350 (GT7 pairs two flips with one
RELEASE_MEM/INT_SEL, so the second flip still raises the unpaired event; confirmed on GT7 and PPSA24156 runs and acknowledged in this thread). The queue-latch approach landed as #7137, which supersedes this change. This branch also conflicts withmainand carries a merge of the closed #6616. Feel free to reopen rebased if there is a part #7137 doesn't cover.Pull request closed