fix(libSceAgcDriver): do not raise an interrupt for RELEASE_MEM send-data-after-write-confirm #1362
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1362"
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 gjonn on 2026-10-08T00:19:57Z.
What
The packet executor raised an end-of-pipe interrupt for every
RELEASE_MEMwhose INT_SEL field (bits 24-26 of DW2) was non-zero. INT_SEL 3 issend_data_after_write_confirm: the data write waits for write confirmation and no interrupt is sent (values 1 and 2 send an interrupt; Mesa uses 3 for its ordinary fence writes). It no longer raises an interrupt for INT_SEL 3.A title submits a DCB per frame with two
RELEASE_MEMtimestamp writes (DATA_SEL 3, INT_SEL 3) and one interrupt (INT_SEL 1). Its event thread takes the pending submission when a graphics end-of-pipe event arrives and clears it; the two extra events made it dereference a null pending submission (read of 0x48) right after start-up.Tested
agc_driver_testspasses with a new check intestEndOfPipeInterrupts(aRELEASE_MEMwith DATA_SEL 3 and INT_SEL 3 writes its label and raises no event). The check fails onmainwith "release with INT_SEL send data after write confirm raised an interrupt". The existing INT_SEL 1 and 2 cases still raise interrupts.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)