Commit Graph
14017 Commits
Author SHA1 Message Date
Dean 9e965c5cd2 Merge pull request #1115 from Fishybeing/fix/rtld-nominmax
build(windows): guard NOMINMAX in Rtld.cpp
2026-10-08 09:23:49 +13:00
Dean 91b6a46222 Merge pull request #1197 from gookie-dev/fix/ngs2-state-outlives-exit
fix(libSceNgs2.native): keep the system list and its mutex alive through static teardown
2026-10-08 09:23:17 +13:00
Adrià 003e699b27 Merge pull request #910 from Pacuka/feat/smurfs-exports
feat(libs): add sceAudioInAsyncOpen and sceHttp2SetMinSslVersion
2026-10-07 22:23:15 +02:00
Dean 7e7ef7a73f Merge pull request #1247 from gjonn/feat/razorcpu-plot-value-bookmark
feat(libSceRazorCpu): add sceRazorCpuPlotValue and sceRazorCpuWriteBookmark
2026-10-08 09:22:46 +13:00
Dean f870e25588 Merge pull request #1222 from gjonn/fix/kernel-close-bad-descriptor
fix(libkernel): return EBADF from sceKernelClose for a descriptor that is not open
2026-10-08 09:22:15 +13:00
Dean 76543c2e89 Merge pull request #1020 from gjonn/feat/ngs2-parse-waveform-file
feat(libSceNgs2.native): implement sceNgs2ParseWaveformFile and parse 16-bit PCM waveforms
2026-10-08 09:21:16 +13:00
Adrià d964601c08 Merge pull request #844 from merwie/feat/agc-get-eq-context-id
feat(agc): implement sceAgcDriverGetEqContextId
2026-10-07 22:21:01 +02:00
Adrià d1750c665c Merge pull request #842 from merwie/fix/appcontent-no-download-data
fix(appcontent): report no download data space without a declared area
2026-10-07 22:18:48 +02:00
popcoder565 a4643ede97 perf(recompiler): probe the written-page slots of a BDA write in a loop
note_bda_write unrolled its 8 compare-exchange probes, and drivers inline it at every BDA store and atomic. The probes now run in a loop that tries the same slots in the same order and stops at the same slot, so the recorded pages and the overflow flag are unchanged. With the byte store helper, the agc_driver_flat_store binaries on an RTX 3060 go from 138,240 to 75,648 bytes (wave32) and from 225,152 to 130,560 bytes (wave64), and the cold run from 2.2 s to 1.2 s.
2026-10-07 16:18:43 -04:00
popcoder565 70a8844089 perf(recompiler): emit BDA byte stores through one looping helper
Every 8- and 16-bit BDA store and the unaligned path of every 32-bit store emitted one get_bda_write_pointer lookup and one note_bda_write per byte at the store site, five write lookups per 32-bit store. They now call write_bda_bytes, which loops over the bytes and does, per byte and in order, the same lookup, the store when it is mapped and the write note, so faults are recorded exactly as before. On an RTX 3060 the agc_driver_flat_store binaries shrink from 496,256 to 138,240 bytes (wave32) and from 928,384 to 225,152 bytes (wave64), and the cold run from 19.7 s to 2.2 s.
2026-10-07 16:18:43 -04:00
MerijnandClaude Opus 5.5 cd7735ceab fix(audioout): drop captured buffers of a port whose slot was reused
A captured grain stored only the port slot and data pointer, so a port
created in a destroyed port's slot before the next push mixed the old
pointer with its own format. Ports now carry a generation that the
capture records. TechnicalDebt notes that the last grain pushed before a
title stops is never played.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 22:13:30 +02:00
Celegans12 a0d4b45591 fix(shader): mask EXEC copies to the host subgroup's lanes
A wave64 graphics program on a 32-lane host runs one guest lane per
invocation, yet an EXEC written as a value keeps all 64 bits: the NGG
prologue's s_lshr_b64 exec, -1, 64 - count reads count 0 and sets -1.
A waterfall loop that copies EXEC with s_mov_b64 and retires one key
per pass then never empties its copy, since no ballot sets the lanes
the host lacks, and its v_readlane picks lane 32 and up.

readRawU32 now ANDs EXEC with a ballot of true when it is read as a
value (s_mov_b64, ALU sources, src_execz), and s_*_saveexec and
s_*_wrexec store that masked copy. EXEC's own words, threadBit and the
saveexec combination keep the raw words, so s_orn2_saveexec_b64 vcc,
exec still sets all 64 bits. On subgroups under 32 lanes the EXEC_LO
copies of agc_driver_scalar_sop1 now hold only the subgroup's lanes.
2026-10-07 22:11:59 +02:00
eliasbruno124-dev 971099aa15 fix(net): provide IPv6 unspecified address object 2026-10-07 22:11:33 +02:00
MerijnandClaude Opus 5.5 2654e3a4ca fix(kernel): drain raised exceptions when leaving an alertable wait
A raise that suspends the thread after its wait returned but before the
wait count drops queued an APC that only ran at the next alertable wait.
Pending APCs are now run right after the count drops. The 0 ms poll in
Condition::waitSignalUntil runs under queueLock and is no longer
alertable, and a target that exits during the raise returns ESRCH.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 22:11:29 +02:00
SP4C3B4R-8andClaude Opus 5.5 faa1cc59e1 test(libSceAgcDriver): run ds_append and ds_consume on the GDS through DMA_DATA
Counters are set with DMA_DATA immediate to GDS and read back with
DMA_DATA GDS to memory around two dispatches each of wave32, wave32 with
a partial EXEC, two wave32 waves in one group and wave64 with a partial
EXEC across both halves.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 22:08:04 +02:00
krishnarayaandClaude Opus 5.5 33fe81b6f2 test(agc): skip the f64 and shader clock execution tests on devices without the feature
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-07 16:07:12 -04:00
Bloxive 457f852944 fix(libkernel): reject leading-zero numbers in param.json 2026-10-07 16:06:40 -04:00
Sanjaysrinivas dbf10824a7 docs(shader): avoid src2 PR overlap 2026-10-07 22:06:03 +02:00
Adrià FranchandClaude 78193c10f8 feat(libSceAgcDriver): implement sceAgcDriverSubmitMultiAcbs
Co-Authored-By: Claude <[email protected]>
2026-10-07 22:04:58 +02:00
Adrià c5e10184a2 Merge pull request #819 from ebosido444-ai/fix/overlap-multiline-depends
fix(tools): read multi-line Depends on lists in pr_overlap
2026-10-07 22:03:32 +02:00
Adrià db06102352 Merge pull request #375 from MichonGoddijn231849/fix/fragment-interface-validation
fix(agc): fragment SampleId, Layer, FragDepth and SampleMask interfaces
2026-10-07 22:02:11 +02:00
Adrià FranchandClaude 5b28b82af2 fix(libs): give sceAudioInAsyncOpen its signature and move the Http2 TechnicalDebt line
Co-Authored-By: Claude <[email protected]>
2026-10-07 22:01:29 +02:00
PacukaandClaude Opus 5.5 23398893cd feat(libs): add sceAudioInAsyncOpen and sceHttp2SetMinSslVersion
The Smurfs Dreams imports both and no library exports them, so eager
binding stops the title before it starts. sceAudioInAsyncOpen throws
like the other AudioIn opens that have no implementation;
sceHttp2SetMinSslVersion returns success like the other Http2 SSL
setters, as no request reaches the network.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 22:01:17 +02:00
SP4C3B4R-8andClaude Opus 5.5 7e7702c706 fix(libSceAgcDriver): keep the global data share out of the flexible memory budget
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 22:01:05 +02:00
SP4C3B4R-8andClaude Opus 5.5 a68b3481ab feat(libSceAgcDriver): back the global data share with driver-owned guest memory
Shader GDS accesses bind the same 64 KiB guest range that DMA_DATA packets
read and write, so both go through the existing CPU/GPU coherence tracking.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 22:01:04 +02:00
MathiasDevelopesandClaude Opus 5.5 e482eef759 feat(libSceAudioOut): accept sceAudioOut2MasteringSetParam
The host mixes without the console's mastering stage, so the mastering
parameters have nothing to configure, as with sceAudioOut2MasteringInit.
Accept them instead of aborting, keep throwing for a null parameter
block, and record SetParam next to MasteringInit in TechnicalDebt.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-07 21:58:15 +02:00
SP4C3B4R-8andClaude Opus 5.5 78cb1598ce test(libc): pinned shared pages stay writable and are collected as written
Also unpin the previous context when a fiber object is initialised again
without being finalised.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 21:57:20 +02:00
Adrià FranchandClaude b540327c29 docs(agc): keep the updated sceAgcDriverGetEqContextId TechnicalDebt entry
Co-Authored-By: Claude <[email protected]>
2026-10-07 21:53:35 +02:00
MerijnandClaude Opus 5.5 a089fe16ba test(agc): cover the misaligned event and the delivered context id
sceAgcDriverGetEqContextId is now checked with a misaligned event like
sceAgcDriverGetEqEventType, and on the end-of-pipe events the submit
test delivers: a graphics interrupt reports context 0 and a compute
interrupt context 0x20, the queues that raised them. The TechnicalDebt
line says why ident is returned and that KytyPS5 returns the event's
data instead.

AI-assisted: yes

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 21:53:21 +02:00
MerijnandClaude Opus 5.5 29a4d4b035 feat(agc): implement sceAgcDriverGetEqContextId
Return the id a graphics event was registered with in
sceAgcDriverAddEqEvent, which titles derive from their context
(PPSA12544: 0 or 1 for graphics, 0x20 + 8 * pipe + queue for compute) and
read back to dispatch the event. Other event filters, a null or
misaligned event and an id above 32 bits throw. The meaning is an
assumption and recorded in the technical debt.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 21:53:21 +02:00
MerijnandClaude Opus 5.5 83e754a885 test(appcontent): cover a title without download data
GuestAppContent now writes a param.json that declares downloadDataSize 0
and checks that sceAppContentDownloadDataGetAvailableSpaceKb returns OK
with 0 KB for /download0 (it threw before), and PARAMETER for a null
result. TechnicalDebt records that the console's behaviour for such a
title is unverified.

AI-assisted: yes

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 21:51:53 +02:00
MerijnandClaude Opus 5.5 9a48adb051 fix(appcontent): report no download data space without a declared area
sceAppContentDownloadDataGetAvailableSpaceKb threw when param.json declares
no download data area. A title without one has no space there: Unity's
player (PPSA12544) queries it at startup, treats an error or 0 as no space
and logs 'persistentDataPath / DownloadData has no space available, check
"Download Data Area Size" in SDK Param Editor'. It now reports 0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 21:51:53 +02:00
popcoder565 fb7be867c5 fix(tools): resolve documentation links as repository paths on Windows
check_conventions.py normalized link targets with os.path.normpath, which gives backslash paths on Windows, so every link added in docs failed the doc-link check and a silent stub listed in TechnicalDebt was not found. Links are repository-relative POSIX paths, so they are normalized with posixpath.
2026-10-07 15:49:03 -04:00
Sanjaysrinivas 36b17177e0 feat(shader): add LDS conditional exchange 2026-10-07 21:40:42 +02:00
Sanjaysrinivas efdbbf1a70 fix(progress): report shared-source libraries 2026-10-07 21:40:38 +02:00
Sanjaysrinivas 131e05a26b fix(libc): reject overflowing mspace resizes 2026-10-07 21:40:35 +02:00
Sanjaysrinivas c4cfb8e23d fix(savedata): preserve memory on write failure 2026-10-07 21:40:33 +02:00
Sanjaysrinivas 69901c9ac8 fix(libc): avoid time conversion races 2026-10-07 21:40:31 +02:00
Gjon Gojcevic 531d5c1e32 feat(libSceRazorCpu): add sceRazorCpuPlotValue and sceRazorCpuWriteBookmark 2026-10-07 15:36:02 -04:00
Adrià 4764e59c37 Merge pull request #888 from adriadam10/feat/libc-force-tls-destructor
feat(libSceLibcInternal): implement _sceLibcInternalForceTlsDestructor
2026-10-07 21:35:25 +02:00
Merijn e5b44c4536 Merge branch 'main' of https://github.com/boykopovar/AnyPS5 into feat/kernel-raise-exception-windows
# Conflicts:
#	docs/dev/TechnicalDebt.md
2026-10-07 21:23:46 +02:00
MerijnandClaude Opus 5.5 9a8a85ebd0 test(audioout): cover AudioOut2 grain timing with the SDL disk driver
Address review: read a grain's buffers at the next push without spinning
under the context lock, keep the no-device model mixing at push time,
size the pad queue from the unplayed main grains again, use generic
names in comments and TechnicalDebt, and add audio_out2_timing (next-push
read, queue level beyond the cushion, priming after running dry).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 21:20:27 +02:00
Merijn e8f77dafa0 Merge branch 'main' of https://github.com/boykopovar/AnyPS5 into fix/audioout2-read-grain-at-playback 2026-10-07 21:11:34 +02:00
MerijnandClaude Opus 5.5 51b6079b5b fix(libkernel): no allocation while the target is suspended; own the wait count
The APC delivery was allocated after SuspendThread, so a target holding
the allocator lock deadlocked the raising thread; it is now allocated
before the suspend. The wait count a raise checks lived in the target's
thread_local storage and dangled once the thread exited; it is now a
member of PthreadPrivate, which TimedWait counts into through a
thread-local pointer bound when the thread starts, and a raise on a
thread that already finished returns ESRCH. TechnicalDebt gets one line
per unverified choice: Windows only, the FreeBSD ucontext layout, the
signal mask, the YMM upper halves, and delivery to threads outside
TimedWait.

AI-assisted: yes

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 21:10:25 +02:00
Hashaam ZafarandClaude Opus 5.5 33ab7c90f9 fix(relinker): reject a program header entry size other than 56 bytes
ReadProgramHeaders stepped through the table by e_phentsize without
checking it. With 0 it read the first header e_phnum times, and with
any other size it read misaligned fields, so a damaged header failed
much later as "No PT_DYNAMIC segment found", after building up to
65535 copies of one segment. A non-empty table must now use 56-byte
entries, as the guest module reader already requires.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 12:08:14 -07:00
LexroidandClaude Opus 5.5 935b19aa58 feat(libSceCdlgPlayerReview): add the player review dialog
PPSA03306 (Silt) loads the Unity plugin Media/Plugins/PSNCore.prx, which
imports scePlayerReviewDialogInitialize, Open, UpdateStatus, GetResult and
Terminate from libSceCdlgPlayerReview. No library provided it, so loading
the plugin failed with "Failed to load module ...\libs\libSceCdlgPlayerReview.prx".

The library follows libSceWebBrowserDialog: the dialog shows nothing, Open
finishes at once and GetResult reports that the user canceled. Terminate
also accepts a finished dialog. GetStatus and Close are added as well.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 22:07:28 +03:00
Ethan Barr 35a491bad4 fix(libc): reject overflowing large heap block sizes 2026-10-07 12:06:33 -07:00
Hashaam ZafarandClaude Opus 5.5 a8f862b6df fix(relinker): reject overlapping PT_LOAD segments before sizing the Windows image
WindowsLoadImage sized its data and page table from the end of the last
segment and checked for overlap while copying. A segment whose memory
size reached past the last segment's end wrote page flags past the
table before its overlap was found; the relinker crashed with SIGSEGV
on such an input. Overlap is now checked in a pass before sizing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 12:05:05 -07:00
ChadandClaude Opus 5.5 d89076e9e7 fix(agc): retire host imports of ranges mapped again
A guest range mapped again at the same base and size (a fixed remap into
a registered range) kept its import, which still shows the pages pinned
or aliased before the remap. The GPU then read stale memory. Each import
now remembers its registry range (weakly, since a held range is a lease
the remap waits for) and is retired when the registry has a different
range at its base.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 13:56:21 -05:00
Hashaam ZafarandClaude Opus 5.5 71b9cf3d0d test(relinker): run the Windows TLS cases on Linux x86-64
tls_function_coverage ran its execution cases only on Windows; on
Linux it checked bytes. windows_image_runner.py maps the relinked PE,
points GS at a TEB whose TLS slot holds a block copied from the
template, runs the TLS callbacks for process attach with the Windows
argument registers and calls the guest entry. convert() uses it on
Linux x86-64 and expects 42, as on Windows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 11:52:14 -07:00