Repository navigation
Conversation
… sceAgcDcbAcquireMem
|
Hi olegon85, I am closing this one because main already pins the same behaviour. testAcquireMem in core/libs/prx/libSceAgc/tests/Commands.cpp checks the poll word (cycles shifted right by four, including the zero and large cases), the cache control echo (bit 15 set with bit 14, including 0x4000 to 0xc000 and 0x4001 to 0xc001), the whole-address-space cases (all ones, above 1 TiB, exactly 1 TiB), the engine 2 refusal and the 32 byte size. The extra rows here (engine 1 packet words, 0xfffff0 style poll values) do not exercise a new branch of sceAgcDcbAcquireMem, and the new test binary would add a CI target for no new coverage. If you have a case that the current test misses, a row added to testAcquireMem would be welcome. |
|
Confirmed: testAcquireMem in core/libs/prx/libSceAgc/tests/Commands.cpp already pins every branch my guest test reached, including the engine-1 word through sceAgcAcbAcquireMem and the whole-address-space rows. My coverage scan only looked under core/libs/tests and missed the library's own tests directory — closing accepted, no rows to add. |
What
docs/dev/debt/libSceAgc.mdrecords forsceAgcDcbAcquireMemthat "the poll word is the poll cycles shifted right by four and bit 14 of the cache control also sets bit 15, as a PS5 (firmware 11.60, payload process, no driver context) wrote them for polls 0 to 1000000, and saturated it at 0xffff, without an error, for the polls 0x100000, 0xfffff0, 0x1000000, 0xffffffff and 0x44444444", and separately that a range of exactly 2^40 bytes "is emitted as the whole-address-space packet (size field 0, address 0)". The new test pins those recorded answers on the emitted packet: the poll word for the measured polls including the saturating ones, the cache-control echo with and without bit 14, the engine andcbDbOpword, the encoded size and address for a plain range, the whole-address-space encoding at exactly 2^40, just above it and at 2^64-1, and that an oversized poll still produces a packet instead of an error. The differences the debt file lists as not modelled (the1 << 40word-3 value, the unbounded-size range, the droppedcbDbOpbits) are deliberately not asserted. No console measurement is claimed beyond what the debt file records.Tested
2c23f0ac6abd1f982d69acdf49900d17930fc61eon baseb9fb5ab5a3:cmake --build build --target guest_agc_acquire_mem_poll_tests,ctest -R '^guest_agc_acquire_mem_poll$'— Passed, two consecutive runs.x86_64-w64-mingw32-g++-posix -fsyntax-only, GCC 12 posix): clean.python tools/check_conventions.py --base origin/main: passed.git diff --check: clean.python tools/pr_overlap.py --branch test/libsceagc-acquire-mem-poll-word: no overlap among comparable pull requests; the only base-conflicting open PRs sharing core/libs/CMakeLists.txt (feat(agc): add opt-in render-state overrides #7275, feat(libSceVrTracker): answer before initialization in sceVrTrackerGetTime, sceVrTrackerGpuSubmit and sceVrTrackerGpuWait #8650, feat(libkernel): implement four pthread_attr forms #9156, feat(libkernel): implement the named ksem semaphores #9293, feat(libkernel_sys): implement POSIX message queues #9297, feat(libkernel_sys): implement kmq_notify registration #9302, feat(libkernel): implement rtld_printf #9383, feat(libkernel_sys): implement pthread_suspend_all_np and pthread_single_np #12642, feat(libkernel_sys): implement pthread_getstack_np #15111, feat(libSceNpCppWebApi): implement the shared transaction bookkeeping #16052, test(macos): add the homebrew guest and MoltenVK square smokes #16793, test(libkernel): audit getgroups size limits and gid array validation #17452, test(libSceSaveData): audit search parameter validation and error boundaries #17496, fix(libkernel_sys): return the console's errors from the Lwfs and compression descriptor calls #17901, fix(libkernel_sys): answer sceKernelGetPhysPageSize for the mapping holding an address #17936, perf(agc): keep shaders off host imports on NVIDIA's Windows driver and cut per-draw CPU #20315) add no guest_agc_acquire_mem_poll target and none of their diffs mentions GuestAgcAcquireMemPoll.cpp.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)