feat: answer seven libSceAppContent add-content calls and sceRudpSetMaxSegmentSize from their sources #10993
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10993"
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 EagleBearerYS on 2026-10-25T12:46:06Z.
What
Implements eight pending exports whose behaviour a public source names, for each function itself.
sceAppContentAddcontEnqueueDownloadByEntitlemetId,sceAppContentAddcontEnqueueDownloadSp,sceAppContentAddcontMountByEntitlemetId,sceAppContentAddcontShrink,sceAppContentGetAddcontInfoByEntitlementId,sceAppContentGetAddcontInfoListByIroTagandsceAppContentGetPftFlag.dlc_content.h), and give the answers dlc_emu gives for content it doesn't know (dlc_content.cppL2040-L2209, L2343-L2347): NOT_FOUND, DRM_NO_ENTITLEMENT, 0 entries, PFT flag 0, and PARAMETER for null arguments. Each answer comes after the library's initialization guard.SpandShrinkanswer PARAMETER for a padded label from SDK 0x03500000, and throw below it.sceRudpSetMaxSegmentSize(uint16_t)follows Vita3K (c86ac732SceLibRudp.cppL1573-L1584) and RPCS3 (8b9ee605cellRudp.cppL149):sceRudpInit;sceRudpGetMaxSegmentSizeis unchanged and keeps reporting the 1410 measured on a PS5 (#3073). Vita3K leaves the getter unimplemented, so no source says it reports a stored size.No title in our title-function lists calls these functions; it opens because the sources name the behaviour.
docs/dev/debt/libSceAppContent.md, not a per-function source.Tested
guest_appcontentandguest_rudp_pumppass 10 of 10 on Linux and on Windows, 0 skipped. With main'sExport.cppfiles, the tests don't build, since main declares the eight calls with no parameters.ctestas an unprivileged user: 2,218 tests, 2,123 passed, 90 skipped and 5 failed. The five need IPv6, which that machine lacks:guest_net_buffer_validation,guest_socket_options,guest_socket_stream_options,guest_socket_address_lengthandguest_tcp.Related: #10289 (AppContent uninitialized-rejection tests; merges cleanly with this). Overlaps: Noxy-HNR's #9638, which implements
sceAppContentGetEntitlementKeyin the same files, merged first, as agreed; this branch now merges it. #10954 (AZLisme) rewrites thesceRudpPollWaitentry indocs/dev/debt/libSceRudp.md, next to the entry this PR edits: an adjacent-line conflict only, and this one goes after it too.8a9f6ca7bc, a merge ofmain88f99678bf(run), after #9638 merged. #9638'ssceAppContentGetEntitlementKeysits next to this PR's lines ininclude/Api.hpp,GuestAppContent.cppand the AppContent debt file. The merge keepsmain's declaration of it beside this PR'ssceAppContentGetPftFlag(uint32_t*), both test blocks and both debt entries. It sets the pending-exports count to 8, theNotImplementedexports left inExport.cpp.guest_appcontent, theguest_rudptests andpublic_headerspass 10 runs in a row. Linux: 7 run, 7 pass, 0 skip, 0 fail. Windows: 7 run, 7 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 209) and on Windows (171 and 227). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners. The branch merges cleanly withmain49d1f9b07e.8403d31744, after oneandonlydean's review (run):guest_appcontentno longer requiressceAppContentAddcontEnqueueDownloadSpandsceAppContentAddcontShrinkto throw for a padded label below SDK 0x03500000. Both still throw there, and the PARAMETER checks from 0x03500000 up stay.guest_appcontent, theguest_rudptests andpublic_headerspass 10 runs in a row. Linux: 7 run, 7 pass, 0 skip, 0 fail. Windows: 7 run, 7 pass, 0 skip, 0 fail, on the job's second attempt; on the first,public_headerstimed out at its 30 s limit on its first repetition, where it took 17 to 18 s in the previous run. Suites: libc and libkernel pass on Linux (144 and 209), and libc passes on Windows (171). Windows' libkernel suite runs 227 tests and failsguest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_web, which this PR doesn't touch;main88f99678bffails the same two in this verify's Windows job (run). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.8d3f15f0e0, a merge ofmaine0b13f2990(run). AZLisme's #10954 rewrites thesceRudpPoll*entry indocs/dev/debt/libSceRudp.mdwith a firmware 13.42 report, adds an entry forsceRudpPollCancel,sceRudpPollDestroyandsceRudpEnd, and keepssceRudpSetMaxSegmentSizein the list of throwing placeholders, on the lines this PR changes. The merge takes #10954's entries and dropssceRudpSetMaxSegmentSizefrom that list, since this PR implements it and documents it in its own entry. This PR's other changed lines are the same. The Rudp tests, #10954'sguest_rudp_empty_pollamong them, andguest_appcontent, with the tests for the files the merge changes, pass 10 runs in a row. Linux: 311 run, 301 pass, 10 skip (seven AGC tests on lavapipe and three video-out tests with no display or Vulkan device), 0 fail. Windows: 328 run, 242 pass, 86 skip (83 AGC tests and the same three video-out tests, no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (145 and 212) and on Windows (174 and 233). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)docs/dev/debt/libSceRudp.md, resolved here after it merges, keeping both changes)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T12:55:41Z.
Review: APPROVED
Reviewed the full diff against the current base and checked the cited implementation references for the AppContent return paths and RUDP setter checks. The new AppContent no-content results, initialization/null handling, and list-count contract are consistent with the cited
dlc_emucode; the RUDP setter's initialization/context checks and stored value match the cited Vita3K implementation. The implementation and debt notes also disclose that these behaviors have not been verified on PS5.Checks I ran:
git diff --check upstream/main...HEADandpython3 tools/check_conventions.py --base upstream/main --head HEADpassed. I attempted CMake configuration withBUILD_TESTING=ON; configuration stopped before building because the SDL2 submodule is not initialized in this checkout and the environment lacks XRandR development support, so I could not independently run the focused tests here. The PR's linked runner report records the focused AppContent and RUDP tests passing on Linux and Windows.I found no blocking issue in the reviewed scope. The stored RUDP MSS is not consumed by the current networking implementation, which does not yet send or segment data; that limitation is accurately recorded in the debt note.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T13:33:24Z.
Review: CHANGES_REQUESTED
The overlap bot lists #10954, and I verified the current exact heads with
git merge-tree --write-tree --name-only refs/remotes/review/pr-10954 refs/remotes/review/pr-10993: there is a content conflict indocs/dev/debt/libSceRudp.md. #10993 removessceRudpSetMaxSegmentSizefrom the unresolved-export entry while #10954 changes the adjacentsceRudpPollWaitentry. The work is distinct, but the open branches need a coordinated merge order.Please agree the sequence with #10954's author, update the checklist dependency ordering alongside the existing #9638 merge-order note, and rebase/resolve the conflict while preserving both documentation changes. This is an integration request; I found no duplicate implementation in the two PRs.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T14:23:03Z.
Review: APPROVED
Re-reviewed the current head and the updated integration note. The earlier blocking concern was the adjacent edit shared with #10954; both authors have now agreed that #10954 merges first, and this PR records that dependency and will preserve both entries after rebasing. The implementation and focused tests reviewed previously are unchanged.\n\nThe overlap is an integration-order dependency rather than duplicate functionality. Please rebase onto main after #10954 merges so the combined debt file is represented on the final head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T14:23:39Z.
Review: APPROVED
Re-reviewed the current head and the updated integration note. The earlier blocking concern was the adjacent
libSceRudp.mdedit shared with #10954; both authors have now agreed that #10954 merges first, and this PR records that dependency and will preserve both entries after rebasing. The implementation and focused tests reviewed previously are unchanged.The overlap is an integration-order dependency rather than duplicate functionality. Please rebase onto main after #10954 merges so the combined debt file is represented on the final head.