Commit Graph
20967 Commits
Author SHA1 Message Date
B-HowellandClaude Opus 4.7 a2b59db71a feat(libc): implement strtoq
Add the BSD "quad" `strtoq` export for the libc PRX as a thin wrapper
around `strtoll`, as FreeBSD 11.4 lib/libc/stdlib/strtoq.c does.  The
unsigned sibling `strtouq` is already here as the same alias of
`strtoull`.  Extend the guest wide strings test to probe the signed
path on an under/overflow run and a short positive run with a trailing
non-digit.  Document the export in docs/dev/debt/libc.md with the
registry NID `yUUOxgk8Dmc`; console behavior is unverified beyond the
existing `strtoll` contract.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
2026-10-26 20:19:37 -04:00
Henryisdjfunkyho 42bbc98235 chore: merge main into cancellable timed sleeps 2026-10-26 17:13:30 -07:00
BunnyFlandClaude Opus 5.5 3d2aebfa03 fix(tools): keep nested preprocessor branches lazy in import_audit
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 01:12:56 +01:00
Adrià cb45ae2ddf Merge pull request #11633 from adriadam10/fix/main-crash-stack-words-tilde
fix(main): windows_crash_stack_words regex crossed by '~' in register dump
2026-10-27 01:12:38 +01:00
Adrià FranchandClaude Sonnet 5.5 7466744f1d fix(main): windows_crash_stack_words regex crossed by '~' in register dump
Failing run 40410094391 (after #11365, unrelated). The crash report prints [r8] as a string of stack bytes; when it contains '~' (ASLR-dependent) the [^~]* gaps of the PASS regex stop matching. Use .* (matches newlines in CMake regex).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-27 01:12:24 +01:00
MarcZX10 4a25a6560c fix(agc): bind UINT views for multisample float stores 2026-10-26 23:52:45 +00:00
MarcZX10 1ff3696ef0 test(agc): expect zero for masked float image components 2026-10-26 23:52:24 +00:00
MarcZX10 027c6f06a8 fix(agc): bind UINT views for float16 image stores 2026-10-26 23:52:24 +00:00
MarcZX10 9d6b917388 fix(agc): round 16-bit float image stores toward zero 2026-10-26 23:51:54 +00:00
MarcZX100andblawesom f9123c760b test(agc): register full recorder suite with CTest
Register the no-argument recorder executable path so CTest covers the main recorder regression flow in addition to the focused subsets. Preserve the Vulkan-unavailable skip code, cap the test at 30 seconds, and add the Windows libc DLL path used by sibling recorder tests.

This carries forward the test registration proposed in #3354, which was closed by the intake pause. Its author left a handoff, and the current main branch has since incorporated the fixes that made the full recorder run pass.

Co-authored-by: blawesom <[email protected]>
2026-10-26 23:40:59 +00:00
Adrià Franch cfc700020f docs(debt): fix sentence break and move font entry off the section end 2026-10-27 00:29:09 +01:00
akkadbakkad89 514df0c389 docs(debt): scope CbMemsetExclusive evidence by firmware version 2026-10-27 00:29:05 +01:00
akkadbakkad89 31d91561c9 docs(debt): record recovered evidence for CbMemsetExclusive and font drawup fills 2026-10-27 00:29:05 +01:00
MarcZX10 5dfc20dcf2 docs(usage): link late storage image stores to the AGC driver debt file 2026-10-26 23:24:24 +00:00
MarcZX10 aa461c1219 docs(usage): note that ANYPS5_OVERLAY=0 is accepted 2026-10-26 23:24:24 +00:00
MarcZX10 04ebed4090 docs(usage): update the storage texture cache cap 2026-10-26 23:24:10 +00:00
MarcZX10 e74c19d2c6 docs(usage): say that the reward icon call returns an error instead of stopping 2026-10-26 23:24:10 +00:00
MarcZX10 57b58fabf0 docs(usage): describe the param.sfo fallback for title metadata 2026-10-26 23:24:10 +00:00
MarcZX10 0ccda196c9 docs(input): say that an invalid mapping file stops the game 2026-10-26 23:24:10 +00:00
MarcZX10 cc2dc0a952 docs(input): note that the example's ToggleMouse line replaces F7 2026-10-26 23:24:10 +00:00
MarcZX10 09bd0731fc docs(game-testing): say what exit code 1 of the import audit means 2026-10-26 23:24:10 +00:00
MarcZX10 1bb9358152 docs(game-testing): link the MinGW DLL note to the runtime layout section 2026-10-26 23:24:10 +00:00
MarcZX10 d09ff3989e docs(game-testing): describe APS5_HANG_DUMP_SECS as a timed dump 2026-10-26 23:24:10 +00:00
MarcZX10 ef824756df docs(usage): list every condition that makes the import audit exit 1 2026-10-26 23:24:10 +00:00
MarcZX10 c19c8658dc docs(usage): list the partial class of the import audit 2026-10-26 23:24:10 +00:00
Alexandre Figueiredo 08fa661766 fix(libSceNpCppWebApi): answer finish, abort and getId for never-started transactions as the module does 2026-10-26 23:22:56 +00:00
MaxandClaude Opus 5.5 ff5e67de15 fix(libSceNet): keep the iovec copy empty for a receive without iovecs
Copy the iovec table only when there is one, and receive a datagram
with no iovecs in guest_sce_net: it returns 0 with MSG_TRUNC and the
sender's address.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 00:21:05 +01:00
MarcZX10 6521fc2a22 docs(libSceNpUtility): record the single-source shadPS4 signatures of the declared stubs 2026-10-26 23:20:08 +00:00
MarcZX10 76859ffeac feat(libSceNpUtility): declare 2 stubs with shadPS4 signatures
They still throw through NotImplemented_nid_no_patch; only the parameter
lists change. The only source is shadPS4's PS4 prototypes; nothing is measured on a PS5.
2026-10-26 23:20:08 +00:00
Leonardo 82fa4474c1 feat(libSceNetCtl): bound sceNetCtlGetNatInfo probe time and cache only on success 2026-10-27 00:18:19 +01:00
MarcZX10 bbb2e618d0 docs(libSceNpWebApi): record the single-source shadPS4 signatures of the declared stubs 2026-10-26 23:17:33 +00:00
MarcZX10 5377922c50 feat(libSceNpWebApi): declare 2 stubs with shadPS4's signatures
They still throw through NotImplemented_nid_no_patch; only the parameter
lists change. The only source is shadPS4's PS4 prototypes; nothing is measured on a PS5.
2026-10-26 23:17:33 +00:00
harisibrar1 4fe05b3bea Merge remote-tracking branch 'origin/main' into feat/rudp-poll-cancel
# Conflicts:
#	docs/dev/debt/libSceRudp.md
2026-10-26 19:15:46 -04:00
harisibrar1 63ef393ee9 Merge remote-tracking branch 'origin/main' into feat/libressl-ex-data-indices
# Conflicts:
#	core/libs/prx/libSceLibreSsl/include/Api.hpp
2026-10-26 19:14:39 -04:00
Emanuele 5556444f2b test(libc): run the feupdateenv checks on macOS and under Rosetta 2
Two host differences failed all 19 feupdateenv tests on macOS:

- Apple's libc++ looks up /usr/lib/libstdc++.6.dylib with a no-load
  dlopen the first time a process builds a std::logic_error, and that
  failed lookup leaves errno at ENOENT. The null check builds the first
  one, so it saw errno change although feupdateenv never touched it. The
  test now builds one std::invalid_argument on macOS before the checks.
- Rosetta 2 keeps the six MXCSR exception masks set and raises no
  floating-point trap, x87 included. The mask check now expects the SSE
  masks the host keeps, and the pending-trap tests are skipped (exit 77)
  on a host that does not keep an unmasked MXCSR exception. A libc debt
  entry for feupdateenv records it.
2026-10-27 00:08:54 +01:00
simnJS 6988438d77 feat(libSceUsbStorage): pass host volumes through only with APS5_USB_STORAGE_PASSTHROUGH
Unset, ScanHostVolumes returns no volume, so nothing is scanned or
exposed and the guest sees no USB storage, as on main. The test checks
that injected volumes are neither listed nor raised by a rescan with the
switch off, and turns it on for the device cases.
2026-10-27 00:01:56 +01:00
WhiteAssassins 6ad4710217 docs(tools): clarify patch catalog metadata compatibility 2026-10-26 19:01:46 -04:00
WhiteAssassins 5c9af08324 feat(tools): add optional patch catalog metadata 2026-10-26 19:01:46 -04:00
milescovielloandClaude Opus 5.5 106048ef94 test(libSceFont): cover the render effect slant and weight setters against their getters
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-26 22:59:16 +00:00
Dean Galvin f733f7dc43 Merge branch 'main' into feat/lchflags 2026-10-27 11:58:22 +13:00
MaxandClaude Opus 5.5 3d2b723f71 fix(libSceNet): receive sceNetRecvmsg through the iovecs it had at entry
sceNetRecvmsg guarded the destinations of the iovec table it saw at
entry, then read the live table again to scatter the received bytes.
When an earlier destination overlapped a later iovec, the received
bytes replaced that iovec and the rest of the data went to an address
that was never guarded, which crashed the host when that address was
not writable. Copy the header and the iovec table once, as FreeBSD
11.4's sys_recvmsg does with copyin and copyiniov, use that copy for
the guards, the scatter and the address, and write the header back
from it as sys_recvmsg's copyout does.

Fixes #11610

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-26 23:53:11 +01:00
mrfelek 60cf9c3bd3 test(shader): drop the unscaled first-lane refusal check
AI-assisted. Tested by me on my own machine.
2026-10-26 22:53:02 +00:00
BunnyFlandClaude Opus 5.5 94d991e03a fix(tools): read preprocessor branch combinations lazily in import_audit
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-26 23:46:50 +01:00
SnekPolylepisandClaude Opus 5.5 da736c9b7c docs(debt): note the 26 exports that firmware 13.42 does not export
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-26 17:43:39 -05:00
milescovielloandClaude Opus 5.5 04db088075 fix(libSceHttp2): report a live context's pool size from sceHttp2GetMemoryPoolStats
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-26 22:43:01 +00:00
hamb3r f320e359f9 test(agc): add torn descriptor, multi-run rebuild, and unstable epoch tests
Symptom / Log:
- Missing regression coverage in tests/ShaderMemory.cpp for 32-byte T# pendingWrite span unification, full wordwise page reads via readWords(), multi-run and indirect table rebuilds on late GPU wait, second-retry epoch stabilization, and refusal on persistent invalidations.

Root Cause:
- core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp did not cover mid-descriptor or multi-run GPU wait invalidations.

Change:
- Add unit tests in tests/ShaderMemory.cpp covering torn 32-byte T# prevention, full 4096-byte wordwise page readWords(), multi-run ReadRuns and indirect ReadColumn rebuilds on late wait, second-retry stabilization, and std::runtime_error refusal after 3 unstable attempts.

Metric / Verification:
- ctest -R agc_shader_type_zero_image_materialization|agc_shader_memory|agc_shader_table_snapshot_reuse passes with VK_LAYER_KHRONOS_validation and 0 VUID errors.
2026-10-27 01:37:43 +03:00
hamb3r 6a3542dd9f fix(shader): rebuild materialized resource tables on descriptor invalidation
Symptom / Log:
- 26102026_05_33_48.log:L3022-L3034: [gpu] driver failure: compute shader 0x248a05b00: runtime image descriptor is invalid

Root Cause:
- core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp:ReadRuns/ReadColumn/Select/TableSnapshotter::Run/Materialize:L882-L1220 — table materialization did not propagate descriptorScope across table entries and did not rebuild earlier runs or records when a later run or indirect record waited on the GPU and invalidated cached Raw words.

Change:
- Set descriptorScope to the record/descriptor size during ReadRuns, ReadColumn, Select, and TableSnapshotter::Run, rebuild the full table or snapshot across up to 3 attempts when rawInvalidations changes mid-pass, force PendingWrite::Sync on the final attempt via SrtDescriptorForceSync, and refuse if the epoch still fails to stabilize.

Metric / Verification:
- Materialize and SnapshotResourceTables rebuild earlier runs/records when a late wait invalidates Raw words and refuse unstable snapshots.
2026-10-27 01:37:42 +03:00
hamb3r f38b6bc288 fix(agc): unify descriptor pendingWrite policy and enforce invalidation epochs
Symptom / Log:
- 26102026_05_33_48.log:L3022-L3034: [gpu] driver failure: compute shader 0x248a05b00: runtime image descriptor is invalid

Root Cause:
- core/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cpp:ShaderMemory::read:L302-L361 and ShaderMemory::readWords:L441-L463 — per-dword PendingWrite decisions on wordwise pages allowed leading dwords of a 32-byte T# to be cached with PendingWrite::Raw before a later dword waited on the GPU, and page->valid.All() in readWords() copied wordwise pages without re-checking descriptorSpanBytes or pendingWrite policy.

Change:
- Propagate the remaining descriptor span size through SrtRuntime::descriptorScope during SRT tape and evaluator reads, restrict the page->valid.All() fast-path in readWords() to non-wordwise pages, re-evaluate cached wordwise words against checkSpanBytes, invalidate cached Raw words when a read waits on the GPU, and require a stable rawInvalidations epoch across up to 3 attempts (forcing PendingWrite::Sync on the final attempt and throwing if the epoch fails to stabilize).

Metric / Verification:
- ShaderMemory and SrtWalker reads never mix pre-wait Raw words with post-wait words across a descriptor span and refuse unstable snapshots.
2026-10-27 01:37:42 +03:00
orezraeyandClaude Opus 5.5 a09cef91b1 Merge main into fix/libkernel-sync-on-address-measured-ps5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-26 19:31:46 -03:00
orezraeyandClaude Opus 5.5 717bfa18c8 Merge main into docs/libkernel-version-boottime-socpower-measured-ps5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-26 19:31:21 -03:00