feat(libSceGnmDriverForNeoMode): answer the last 28 calls as PS4 firmware 10.71 does #16238
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16238"
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 ntamas94 on 2026-11-05T21:44:30Z.
What
Builds on #15605, now merged into
main. This PR's own changes are8e78aa0a27andd5a7de9991. All 28 libSceGnmDriverForNeoMode exports that still throw after #15605 now answer as the PS4 firmware 10.71 module does. The progress count for the library goes from 111 to 139 of 139, and no export of the library throws any more.sceGnmGetGpuInfoStatus,sceGnmGetProtectionFaultTimeStamp,sceGnmGetGpuBlockStatus,sceGnmGetShaderStatus,sceGnmGetShaderProgramBaseAddress,sceGnmGetLastWaitedAddresssceGnmInsertThreadTraceMarkersceGnmGetCoredumpMode(uint32_t*)sceGnmIsCoredumpValid,sceGnmGetCoredumpProtectionFaultTimestampsceGnmDestroyWorkloadStream(uint32_t)sceGnmGetNumTcaUnits,sceGnmLogicalTcaUnitToPhysical(uint32_t)0x10, the module's answer when its GC ioctl0xc004811ffailssceGnmDrawOpaqueAutoDRAW_INDEX_AUTOwith count0x10and initiator0x42, then a NOPsceGnmDrawIndexMultiInstanced0x3awith eight body words, then a NOP; refuses a null or odd index address, or an object id address with a nonzero low bytesceGnmGpuPaDebugEnter,sceGnmGpuPaDebugLeave,sceGnmRegisterGnmLiveCallbackConfigret, nowvoidsceGnmSetWaveLimitMultiplier,sceGnmSetWaveLimitMultipliers0xc030811e)sceGnmSubmitCommandBuffersForWorkload,sceGnmSubmitAndFlipCommandBuffersForWorkload0x80D11000for null address or size arrays, ccb sizes without addresses, a dcb size of 0 or a size of0x3ffffdor more (no checks for a count of 0); otherwise0x80D110FF, the module's answer when the GC ioctl0xc0088101refuses the queuesceGnmRequestFlipAndSubmitDoneForWorkload0x80D11001below0x100command words, otherwise0x80D110FFfrom the same ioctl, before it writes the commandsceGnmMapComputeQueueWithPriority0x80D17000to0x80D17004for pipe, queue, ring size, ring base, then read pointer or priority, in that order; otherwise0x80D170FF, the module's answer when the mapping ioctl failssceGnmDingDongForWorkloadR3TYO7Tdv5o,ut57TBmRQN0,sKhoi2ectC0(unnamed)Both draw writers take the predicate bit from flag bit 0, as the module does.
AnyPS5 has no GC device and nothing on
mainconsumes a GNM command buffer or runs a GNM compute queue. The submits and the queue map therefore return the module's refused-ioctl codes rather than succeeding, so a caller sees that GPU submission is unavailable. A valid submit reads no command buffer.docs/dev/debt/libSceGnmDriverForNeoMode.md:retbodies, the wave limit calls andsceGnmDingDongForWorkload;sceGnmDingDongForWorkloadfrom Unknown function info.Source
PS4 firmware 10.71
system/common/lib/libSceGnmDriverForNeoMode.sprx(decrypted ELF sha256fd3e06cd7d130b675334cd0e1dfb52d2aab0d6960624d51d2db8ffd7842cf07b), read from disassembly, not run on a console. Addresses come from the module's dynamic symbol table. Parameter lists are read from the registers each body uses; the types are unverified.Source: every one of the 28 follows PS4 firmware 10.71
libSceGnmDriverForNeoMode.sprx, read from disassembly. The PS5 module (13.42 or 13.60) was not available to read, so none of them is checked against it; the debt entries state the PS4 source.Tested
Windows 11, MinGW GCC Release build. All six
guest_gnm_neo_*tests pass.guest_gnm_neo_packetschecks both new packets word by word and every refusal.guest_gnm_neo_retailchecks the returns, the coredump mode output, the stream range, the TCA answers, the flag round trip, each submit and queue map refusal in order, and that the flip call writes nothing.tools/check_conventions.pypasses.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)