feat(libSceJobManager): implement CPU job sequences #3170
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3170"
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 fma-rc on 2026-10-10T23:57:47Z.
#3186 contains these commits plus the compute path, so reviewing that one covers both.
What
Adds
libSceJobManagerwith a workingsce::Job::JobManagerfor CPU job sequences: the constructor and destructor,calculateRequiredMemorySize, bothinitializeoverloads,shutdown, the two sequence factory getters andsetPersistentThreadCount, plus the sequence and factory interfaces titles call through (dispatch, sync point, wait, create, destroy). Astro's Playroom (PPSA01325) imports the library and does not ship it. Fixes #2476 and replaces the throwing exports of #2924.The behaviour is taken from the disassembly of the copies that Ratchet & Clank: Rift Apart (PPSA01474) and Hades II (PPSA36082) ship in
sce_module. Compute sequences and both compute dispatches throwNotImplemented. What differs from the original is listed in TechnicalDebt.Tested
Arch Linux, GCC 16.2.1.
guest_job_manager_testshas eight cases: the size formula, every error code, a 1000-invocation dispatch, sync point ordering, a job that dispatches into its own sequence behind a sync point, the per-sequence limits and node exhaustion, priority order, and repeated initialize and shutdown. I built the same test file against a shim that forwards the exports to the relinked modules of both titles, and all eight cases pass there too, so the assertions are the original's behaviour.Full suite on RADV (Radeon 610M): 757 of 757 pass. On an RTX 5080: 756 pass,
agc_driver_dcc_keys_first_writefails, which this branch does not touch.check_conventions.pypasses.PPSA01325 now loads: the import audit shows 0 absent imports. It stops 40 s in on
sceLibcInternalHeapErrorReportForGame_nid_postfix not implemented, the same place it stopped with the throwing exports, so it has not called into the library by then and no title has exercised the interfaces yet.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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T23:57:56Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T05:42:51Z.
Progress report (
8975b59→4474548)📈 System libraries: 85.8% (+0.02%, +11 implemented, +1 declared functions)
✅ 11 implemented
WorkerEntry_ZN3sce3Job10JobManager10initializeEPvmjjPKNS1_12ConfigParamsE_ZN3sce3Job10JobManager10initializeEPvmjjjmPKNS1_12ConfigParamsE_ZN3sce3Job10JobManager24setPersistentThreadCountEj_ZN3sce3Job10JobManager27getSequenceFactoryInterfaceENS1_8PriorityE_ZN3sce3Job10JobManager34getUnifiedSequenceFactoryInterfaceENS1_8PriorityE_ZN3sce3Job10JobManager8shutdownEv_ZN3sce3Job10JobManagerC1Ev_ZN3sce3Job10JobManagerC2Ev_ZN3sce3Job10JobManagerD1Ev_ZN3sce3Job10JobManagerD2Ev🆕 1 declared as stubs
_ZN3sce3Job10JobManager27calculateRequiredMemorySizeEPKNS1_21MemorySizeQueryParamsEImported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-11T07:22:57Z.
Additional platform validation of standalone PR head
9557efae6acc799982729f5acfc90416e953c900(2026-10-11):Windows: blocked or failed — Windows 11, WinLibs GCC 15.2.0 UCRT/POSIX/SEH r7; CMake 4.3.1 / Ninja; Release,
BUILD_TESTING=ON.Build/configuration did not reach executable validation; no passing test verdict.
Checks:
guest_job_manager_memory,guest_job_manager_validation,guest_job_manager_dispatch,guest_job_manager_ordering,guest_job_manager_nested,guest_job_manager_limits,guest_job_manager_priority,guest_job_manager_shutdown.The new test fixture does not compile with the supported Windows toolchain: core/libs/tests/GuestJobManager.cpp:100 uses std::aligned_alloc, which WinLibs GCC 15.2.0 does not provide (error: aligned_alloc is not a member of std). The eight job-manager cases could not run; the fixture needs a portable aligned allocation/free pair.
No title/gameplay validation. These results cover the standalone head, not a merge with current main.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T07:25:14Z.
Checked on Linux: build,
guest_job_manager8/8, and 50 repeated runs without a failure;check_conventions.pypasses. Code review found no problem in the dispatch/wait locking.Added on your branch (two small commits, no logic changes):
main, which drops theMerge remote-tracking branch 'origin/main'commit (no merge commits, CONTRIBUTING).Not verified here: that the behaviour equals the original's (rests on your shim run against the shipped modules); nothing was run on Windows or NVIDIA. Merging once CI is green.