Repository navigation
feat(libSceHmd2): report a console without a PS VR2 headset - #7323
Conversation
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
I manually checked the #6844 overlap reported by the bot. |
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
|
@MontyMcK @T3cm0 a follow-up from the GT7 thread: frankea reports in #4697 that Gran Turismo 7 (PPSA01317) on current I'd rather not guess sizes (#6272 was closed for that). Do your firmware 13.20 disassembly or a no-headset payload run cover |
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
|
Thanks for tracing this. I don't have measurements for the ReprojectionQuery*SizeAlign functions, my work only covered Initialize and Open. That said, this is a regression from my PR, so I'll take it. I'm at work now but will write a fix when I get home in about 6 hours. My first step will be checking what Open should return with no headset connected, since reporting no device should stop GT7 and CotM before they reach the reprojection queries. |
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Temporarily revert PR boykopovar#7323 after its successful initialization sends GT7 PPSA01317 into unimplemented reprojection APIs. Restore the prior startup policy and test, and document that this compatibility rollback does not represent firmware no-headset behavior.
Since #7323 sceHmd2Initialize succeeds and sceHmd2Open returns a handle, so PPSA01317 runs its PS VR2 set-up and aborts on sceHmd2ReprojectionQueryBufferSizeAlign, which is not implemented (reported in #6350). AnyPS5 has no PS VR2 or PC VR support, so initialization returns libSceHmd's UNSUPPORTED_FEATURE (0x81110016) again, as before #7323, and titles skip their VR set-up. sceHmd2Open then returns NotInitialized. The reprojection size queries stay unimplemented. Refs #6350
What
libSceHmd2 now acts like a PS5 with no PS VR2 plugged in. before this
sceHmd2Initializefailed with libSceHmd's0x81110016, which a real console never gives a game.implemented
sceHmd2Initialize,Terminate,Open,Close,GetDeviceInformation,GetDeviceInformationByHandle,GetFieldOfView,GetFieldOfViewWithoutHandleandSetVibration(1/31 -> 9/31). reprojection, gaze and all of libSceVrTracker2 still throwwhere the behaviour comes from:
libSceHmd2.sprxpulled off my PS5 and disassembled: the error codes (0x8a72xxxx), check order, the 28 byte device info layout and its fixed values (4000x2040 panel, 5555/4160 latency, 2.0 image distance), the default FOV tangents and the SDK 7.00 checks/dev/hmd2_cmdpage the library reads says not connected, status 2, user -1, and the/dev/hmd2_imuopen ioctl succeeds, soOpenhands back a handle even with no headset. every call made before init matched the disassembly.Initializeitself crashes inside a payload (it's not an app), so results after init are the firmware code run against that measured stateOpenrejects other userswhat i couldn't settle is in the debt file (
Initialize's app info checks andsceMbusInitaren't modelled,Openfor a non initial user below SDK 7.00 throws)heads up: PPSA01317, PPSA07411, PPSA09030, PPSA15878 and PPSA29866 used to skip VR because init failed. now they get further, so anything that then calls a reprojection/gaze/VrTracker2 export throws instead of skipping VR. i don't own any of them so they're not tested
ProcessParametersFixture.hppsets up process params for the test. it keeps the page executable while patching the program headers. the copy inApplicationHeap.cppdoesn't, which is whyapplication_heap_lazysegfaults on my build (the PLT is on that page). left that one alone, separate thingprobe output, no headset connected
Tested
Fedora 44, GCC 16.2, full build.
guest_hmd2passes,select_tests.py ctest186/186 on this branch,check_conventions.pypasses. a wider run before rebasing (1382 tests) only failedagc_driver_tessellation, which segfaults on my RX 9070 XT and has nothing from this PR in it. not built on windows, no title runChecklist
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)