perf(libkernel): back flexible memory with a memfd on Linux #23613

Merged
JJenkx merged 7 commits from upstream-pr/23613 into main 2026-11-20 23:20:34 +00:00
JJenkx commented 2026-11-19 10:26:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-11-19T10:26:05Z.


What

On Linux, flexible memory (sceKernelMapFlexibleMemory and the named forms, through _mapFlexible) was anonymous private memory. The shared-backing resolvers (SharedBacking, SharedBackingRuns) describe only direct memory, so when the GPU driver imported a flexible range it fell back to a host-pointer import. amdgpu walks the pages of a host-pointer (userptr) buffer object at every command submission, so the cost of every vkQueueSubmit grows with the size of the imported flexible range.

Each flexible map now gets its own sealed memfd:

  • _mapFlexible maps through DoMapFlexibleAnon, which marks the call so that MapAnonymous, and RemapFixedIntoRegistered for a fixed map into a reserved range, map a memfd shared over the range they placed and register its write watch again;
  • the map starts in the file at the address's offset within 2 MiB, so shared-memory huge pages line up with the address as anonymous huge pages did; the file is sized up to a multiple of 64 MiB, so the driver's 64 MiB chunk imports cover all of it;
  • MADV_HUGEPAGE asks for transparent huge pages, which shared memory gets only on request where shmem_enabled is advise;
  • SharedBacking and SharedBackingRuns resolve a flexible range to its file and offset, so the driver imports it through udmabuf as it does direct memory;
  • unmapping part of a flexible map, or remapping over it, punches that part out of the file and keeps the rest resolvable; the file closes when its last part goes.

Plain anonymous mmap memory is unchanged. Windows and macOS are unchanged.

Performance

Matched runs on one machine (AMD Radeon RX 6650 XT, RADV Mesa 26.2.7, Linux 7.2.14, Release): main b8be4de with and without this change, both with the #21747 deadline line; save data restored before every run, order main, change, change, main.

PPSA01341 imports about 359 MiB of flexible memory for the GPU. Without this change that range is a host-pointer import, and vkQueueSubmit averages 2.7 to 7.1 ms over a run in five of six main runs (0.42 ms in the sixth, a 180 s run that was still in the intro when it ended); with this change it averages 0.14 to 0.18 ms in all six runs. Because a slow submit also slows the game's own progress, a fixed time window shows different scenes in the two arms, so the frame rates below compare the same content, identified from screenshots taken every 30 s over 360 s runs:

main this change
vkQueueSubmit mean over the run 2.75, 3.26 ms 0.16, 0.16 ms
Intro cinematic reached (first screenshot showing it) 240 s, 240 s 60 s (the other run skipped the intro and reached the title screen at 180 s)
FPS while the intro cinematic plays (the same title cards appear in both arms) 9.5-10.6, 8.5-10.0 24.2-25.0
Screen from 20 s to 210 s black, 0.1 to 10.1 FPS logo or intro, then title screen or play
In-engine play reached not within 360 s 180 s, 300 s

Each row comes from screenshots taken every 30 s in four 360 s runs (two per arm); the change runs took different menu routes because the scripted button presses landed on different screens.

Shorter 180 s runs of PPSA09809 and PPSA05595, which map little flexible memory (PPSA05595 maps under 1 MiB), show no difference beyond their run-to-run spread:

Title main FPS this change FPS
PPSA09809 50.83, 44.19 57.33
PPSA05595 3.61, 3.35 3.16, 3.08

PPSA09809's menu frame rate depends on which entry the save leaves selected, and PPSA05595's falls steadily through each run (about 40 to 2 FPS), so neither resolves small changes.

Tested

  • guest_memory (with the new CheckFlexibleMemorySharedBacking, and CheckDirectMemorySharedBacking now expecting a flexible range to resolve to its own file) and the eight guest_flexible_memory_* budget tests pass on Linux.
  • tools/check_conventions.py and tools/debt_fold.py --check pass.
  • The branch is rebased onto main ee85d6e56982; the files it changes are identical there and at the tested b8be4de.
  • Native runs (Linux, save data restored before every run): PPSA01341, PPSA09809 and PPSA05595 as above; every run exited normally except the PPSA09809 launch described next, and the reviewed screenshots render correctly. 16 further 40 s PPSA09809 launches (8 per build, alternating) all started and exited normally; one earlier PPSA09809 launch with this change stopped 4 s in on a null pointer the game's own code got back from a factory call (no earlier sighting among 103 local launches of this title, none in the 8 later launches), recorded here for completeness.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and licence notices
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon RX 6650 XT, RADV (Mesa 26.2.7), Linux 7.2.14
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5393098053 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23613). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-11-19T10:26:05Z. --- ### What On Linux, flexible memory (`sceKernelMapFlexibleMemory` and the named forms, through `_mapFlexible`) was anonymous private memory. The shared-backing resolvers (`SharedBacking`, `SharedBackingRuns`) describe only direct memory, so when the GPU driver imported a flexible range it fell back to a host-pointer import. amdgpu walks the pages of a host-pointer (userptr) buffer object at every command submission, so the cost of every `vkQueueSubmit` grows with the size of the imported flexible range. Each flexible map now gets its own sealed memfd: - `_mapFlexible` maps through `DoMapFlexibleAnon`, which marks the call so that `MapAnonymous`, and `RemapFixedIntoRegistered` for a fixed map into a reserved range, map a memfd shared over the range they placed and register its write watch again; - the map starts in the file at the address's offset within 2 MiB, so shared-memory huge pages line up with the address as anonymous huge pages did; the file is sized up to a multiple of 64 MiB, so the driver's 64 MiB chunk imports cover all of it; - `MADV_HUGEPAGE` asks for transparent huge pages, which shared memory gets only on request where `shmem_enabled` is `advise`; - `SharedBacking` and `SharedBackingRuns` resolve a flexible range to its file and offset, so the driver imports it through udmabuf as it does direct memory; - unmapping part of a flexible map, or remapping over it, punches that part out of the file and keeps the rest resolvable; the file closes when its last part goes. Plain anonymous `mmap` memory is unchanged. Windows and macOS are unchanged. ### Performance Matched runs on one machine (AMD Radeon RX 6650 XT, RADV Mesa 26.2.7, Linux 7.2.14, Release): `main` `b8be4de` with and without this change, both with the #21747 deadline line; save data restored before every run, order main, change, change, main. PPSA01341 imports about 359 MiB of flexible memory for the GPU. Without this change that range is a host-pointer import, and `vkQueueSubmit` averages 2.7 to 7.1 ms over a run in five of six `main` runs (0.42 ms in the sixth, a 180 s run that was still in the intro when it ended); with this change it averages 0.14 to 0.18 ms in all six runs. Because a slow submit also slows the game's own progress, a fixed time window shows different scenes in the two arms, so the frame rates below compare the same content, identified from screenshots taken every 30 s over 360 s runs: | | main | this change | |---|---|---| | `vkQueueSubmit` mean over the run | 2.75, 3.26 ms | 0.16, 0.16 ms | | Intro cinematic reached (first screenshot showing it) | 240 s, 240 s | 60 s (the other run skipped the intro and reached the title screen at 180 s) | | FPS while the intro cinematic plays (the same title cards appear in both arms) | 9.5-10.6, 8.5-10.0 | 24.2-25.0 | | Screen from 20 s to 210 s | black, 0.1 to 10.1 FPS | logo or intro, then title screen or play | | In-engine play reached | not within 360 s | 180 s, 300 s | Each row comes from screenshots taken every 30 s in four 360 s runs (two per arm); the change runs took different menu routes because the scripted button presses landed on different screens. Shorter 180 s runs of PPSA09809 and PPSA05595, which map little flexible memory (PPSA05595 maps under 1 MiB), show no difference beyond their run-to-run spread: | Title | main FPS | this change FPS | |---|---|---| | PPSA09809 | 50.83, 44.19 | 57.33 | | PPSA05595 | 3.61, 3.35 | 3.16, 3.08 | PPSA09809's menu frame rate depends on which entry the save leaves selected, and PPSA05595's falls steadily through each run (about 40 to 2 FPS), so neither resolves small changes. ### Tested - `guest_memory` (with the new `CheckFlexibleMemorySharedBacking`, and `CheckDirectMemorySharedBacking` now expecting a flexible range to resolve to its own file) and the eight `guest_flexible_memory_*` budget tests pass on Linux. - `tools/check_conventions.py` and `tools/debt_fold.py --check` pass. - The branch is rebased onto `main` `ee85d6e56982`; the files it changes are identical there and at the tested `b8be4de`. - Native runs (Linux, save data restored before every run): PPSA01341, PPSA09809 and PPSA05595 as above; every run exited normally except the PPSA09809 launch described next, and the reviewed screenshots render correctly. 16 further 40 s PPSA09809 launches (8 per build, alternating) all started and exited normally; one earlier PPSA09809 launch with this change stopped 4 s in on a null pointer the game's own code got back from a factory call (no earlier sighting among 103 local launches of this title, none in the 8 later launches), recorded here for completeness. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt and licence notices - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: AMD Radeon RX 6650 XT, RADV (Mesa 26.2.7), Linux 7.2.14 - [x] AI-assisted: yes
PrivacyOnion commented 2026-11-19 10:28:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T10:28:57Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 9c6afd988c:

  • Conventions: tools/check_conventions.py passed.
  • Build: guest_memory_tests built cleanly.
  • CTest (guest_memory, guest_mmap_fixed_anonymous, guest_mmap_executable):
    1/3 Test #5727: guest_mmap_executable ............   Passed    0.01 sec
    2/3 Test #5726: guest_mmap_fixed_anonymous .......   Passed    0.01 sec
    3/3 Test #5725: guest_memory .....................   Passed    1.88 sec
    100% tests passed, 0 tests failed out of 3
    
  • Negative control: with core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp, core/libs/prx/libkernel/DirectMemory/DirectMemory.hpp, core/libs/prx/libkernel/DirectMemory/Export.cpp reverted to main and the new tests kept, the suite fails:
    1/3 Test #5727: guest_mmap_executable ............   Passed    0.01 sec
    2/3 Test #5726: guest_mmap_fixed_anonymous .......   Passed    0.01 sec
    3/3 Test #5725: guest_memory .....................Subprocess aborted***Exception:   2.00 sec
    67% tests passed, 1 tests failed out of 3
    
    Restoring the change makes it pass again.
  • Code reading:
    • Verified ForgetFlexibleFiles interval arithmetic in core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp:787-802: when start and end overlap multiple entries or split an existing entry, cutStart/cutEnd fallocate punching hole offsets and map insertions (cutStart and cutEnd) correctly preserve disjoint remainders.
    • Verified BackFlexibleMapping in core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp:804-827: memfd_create, sizing via ftruncate with 64 MiB granularity, F_ADD_SEALS F_SEAL_SHRINK, mmap MAP_SHARED | MAP_FIXED with lead alignment offset within 2 MiB, and madvise MADV_HUGEPAGE.
    • Verified thread_local flag t_mapFlexible scoping in DoMapFlexibleAnon and its propagation through DoMapAnon into MapAnonymous and RemapFixedIntoRegistered, ensuring standard anonymous maps do not create memfds.
    • Verified locking in FlexibleBacking and ForgetFlexibleFiles with g_flexibleFilesLock, and verified descriptor duplication via F_DUPFD_CLOEXEC for thread-safe caller descriptor lifetime.
    • Verified AGENTS.md conventions, commit formatting, conventional PR title, debt fragments in docs/dev/debt/changes/, and absence of disallowed comments in code.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5973268508 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23613#pullrequestreview-5973268508). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-19T10:28:57Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `9c6afd988c`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `guest_memory_tests` built cleanly. - **CTest** (`guest_memory`, `guest_mmap_fixed_anonymous`, `guest_mmap_executable`): ``` 1/3 Test #5727: guest_mmap_executable ............ Passed 0.01 sec 2/3 Test #5726: guest_mmap_fixed_anonymous ....... Passed 0.01 sec 3/3 Test #5725: guest_memory ..................... Passed 1.88 sec 100% tests passed, 0 tests failed out of 3 ``` - **Negative control**: with `core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp`, `core/libs/prx/libkernel/DirectMemory/DirectMemory.hpp`, `core/libs/prx/libkernel/DirectMemory/Export.cpp` reverted to `main` and the new tests kept, the suite fails: ``` 1/3 Test #5727: guest_mmap_executable ............ Passed 0.01 sec 2/3 Test #5726: guest_mmap_fixed_anonymous ....... Passed 0.01 sec 3/3 Test #5725: guest_memory .....................Subprocess aborted***Exception: 2.00 sec 67% tests passed, 1 tests failed out of 3 ``` Restoring the change makes it pass again. - **Code reading**: - Verified ForgetFlexibleFiles interval arithmetic in core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp:787-802: when start and end overlap multiple entries or split an existing entry, cutStart/cutEnd fallocate punching hole offsets and map insertions (cutStart and cutEnd) correctly preserve disjoint remainders. - Verified BackFlexibleMapping in core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp:804-827: memfd_create, sizing via ftruncate with 64 MiB granularity, F_ADD_SEALS F_SEAL_SHRINK, mmap MAP_SHARED | MAP_FIXED with lead alignment offset within 2 MiB, and madvise MADV_HUGEPAGE. - Verified thread_local flag t_mapFlexible scoping in DoMapFlexibleAnon and its propagation through DoMapAnon into MapAnonymous and RemapFixedIntoRegistered, ensuring standard anonymous maps do not create memfds. - Verified locking in FlexibleBacking and ForgetFlexibleFiles with g_flexibleFilesLock, and verified descriptor duplication via F_DUPFD_CLOEXEC for thread-safe caller descriptor lifetime. - Verified AGENTS.md conventions, commit formatting, conventional PR title, debt fragments in docs/dev/debt/changes/, and absence of disallowed comments in code. Looks Good To Me
MarcZX10 commented 2026-11-19 18:21:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T18:21:30Z.

Review: COMMENTED


Reviewed — no blocking findings

The reviewed head is ec955c40b624122c6004c2ea689d3f441ce89c32; the inspected implementation and tests support the flexible-memory backing change, with one changed GPU-import file not fully reviewed.

What I ran

  • Read the prepared diff and traced the changed memory mapping, release, and import paths at the pinned head.
  • Commands run: none. The repository reader was unavailable as a command in this environment; I used the provided reader tools.
  • No tests were run. Author-reported test and performance results are not independently verified.

Results

Check Result Note
Changed code review not run One changed file was not fully read
Tests not run No test execution available

Findings

Blocking

None verified in the code inspected.

Non-blocking

None.

Not verified

core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp is too large for the review folder; only its changed hunk and nearby caller logic were inspected. Its full file and remaining changed context were not reviewed. The other changed files were read at the added-line ranges, with targeted surrounding context in DirectMemory.cpp, Export.cpp, and PosixMemory.cpp. No test output, build result, performance capture, physical-console behavior, or CI result was independently confirmed.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5980819408 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23613#pullrequestreview-5980819408). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T18:21:30Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The reviewed head is `ec955c40b624122c6004c2ea689d3f441ce89c32`; the inspected implementation and tests support the flexible-memory backing change, with one changed GPU-import file not fully reviewed. ## What I ran - Read the prepared diff and traced the changed memory mapping, release, and import paths at the pinned head. - Commands run: none. The repository reader was unavailable as a command in this environment; I used the provided reader tools. - No tests were run. Author-reported test and performance results are not independently verified. ## Results | Check | Result | Note | |---|---|---| | Changed code review | not run | One changed file was not fully read | | Tests | not run | No test execution available | ## Findings ### Blocking None verified in the code inspected. ### Non-blocking None. ## Not verified `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` is too large for the review folder; only its changed hunk and nearby caller logic were inspected. Its full file and remaining changed context were not reviewed. The other changed files were read at the added-line ranges, with targeted surrounding context in `DirectMemory.cpp`, `Export.cpp`, and `PosixMemory.cpp`. No test output, build result, performance capture, physical-console behavior, or CI result was independently confirmed. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-19 20:27:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T20:27:07Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: the backing fallback path can fail to preserve the host-pointer import after a partial GPU import failure.

What I ran

  • Reviewed head 1cec0a3837261238590788e8292ea34b8696805f using the prepared diff and repo_read.py at that head. No tests or builds were run.
  • Read: core/libs/prx/libc/include/GuestArena.hpp, core/libs/prx/libc/src/GuestArena.cpp, core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp, core/libs/prx/libkernel/DirectMemory/DirectMemory.hpp, core/libs/prx/libkernel/DirectMemory/Export.cpp, core/libs/prx/libkernel/DirectMemory/PosixMemory.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp, core/libs/tests/GuestMemory.cpp, and both added flexible-memory debt notes.
  • Excluded from full-text review: none of the changed files. GuestBufferMemory.cpp was read by range through the reader because it was not included in the review folder.

Results

Check Result Note
Diff and lifecycle review passed Mapping, resolver and replacement paths inspected
Tests and build not run Author-reported results were not independently run
Console performance claims not verified No hardware runs performed

Findings

Blocking

  • The new flexible-memory fallback can retry a host-pointer import while the failed dma-buf import still has resources attached to entry. The fallback is triggered after createSharedBackingImport returns an error (core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp:2560), but unlike the existing Windows settle path, it does not destroy/reset the failed import before calling createHostPointerImport (core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp:2563). If the failed import partially initialized entry, retrying into the same object can leak resources or leave stale handles. Clear the failed import and reset the entry before retrying, and cover a partial-import failure in a test.

Non-blocking

None.

Not verified

  • No build, automated tests, or physical-console performance runs were performed. The test and performance results in the PR description are author-reported.
  • The excluded-by-folder GuestBufferMemory.cpp full file was not read; only the changed hunk and the directly relevant helper and import paths were read.

To get this to a good state

  • Reset/destroy any partially created dma-buf import before the host-pointer retry, then run the relevant tests and build on the updated head.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5982802289 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23613#pullrequestreview-5982802289). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T20:27:07Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: the backing fallback path can fail to preserve the host-pointer import after a partial GPU import failure. ## What I ran - Reviewed head `1cec0a3837261238590788e8292ea34b8696805f` using the prepared diff and `repo_read.py` at that head. No tests or builds were run. - Read: `core/libs/prx/libc/include/GuestArena.hpp`, `core/libs/prx/libc/src/GuestArena.cpp`, `core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp`, `core/libs/prx/libkernel/DirectMemory/DirectMemory.hpp`, `core/libs/prx/libkernel/DirectMemory/Export.cpp`, `core/libs/prx/libkernel/DirectMemory/PosixMemory.cpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`, `core/libs/tests/GuestMemory.cpp`, and both added flexible-memory debt notes. - Excluded from full-text review: none of the changed files. `GuestBufferMemory.cpp` was read by range through the reader because it was not included in the review folder. ## Results | Check | Result | Note | |---|---|---| | Diff and lifecycle review | passed | Mapping, resolver and replacement paths inspected | | Tests and build | not run | Author-reported results were not independently run | | Console performance claims | not verified | No hardware runs performed | ## Findings ### Blocking - The new flexible-memory fallback can retry a host-pointer import while the failed dma-buf import still has resources attached to `entry`. The fallback is triggered after `createSharedBackingImport` returns an error (`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp:2560`), but unlike the existing Windows settle path, it does not destroy/reset the failed import before calling `createHostPointerImport` (`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp:2563`). If the failed import partially initialized `entry`, retrying into the same object can leak resources or leave stale handles. Clear the failed import and reset the entry before retrying, and cover a partial-import failure in a test. ### Non-blocking None. ## Not verified - No build, automated tests, or physical-console performance runs were performed. The test and performance results in the PR description are author-reported. - The excluded-by-folder `GuestBufferMemory.cpp` full file was not read; only the changed hunk and the directly relevant helper and import paths were read. ## To get this to a good state - Reset/destroy any partially created dma-buf import before the host-pointer retry, then run the relevant tests and build on the updated head.
MarcZX10 commented 2026-11-19 22:35:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T22:35:14Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the checks I could run passed, and the prepared diff and inspected source support merging.

What I ran

Reviewed head cf3a90f06583aaf2d21bf566dd32d44b90471cda. No build or tests were run in this review; the test results in the PR description are author-reported.

Results

Check Result Note
Prepared diff and changed code passed Reviewed all included changed files and targeted reader context.
Build and tests in this review not run Author reports Linux tests and convention checks passed.
CMake test wiring passed Confirmed execution source and CMake fragment discovery.

Findings

Blocking

None.

Non-blocking

None.

Not verified

The full text of core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp was excluded by the review bundle size rule; I read its changed regions and relevant import helpers through repo_read.py. I did not independently run builds, tests, performance captures, or console behavior. The PR description's reported checks and measurements were not independently verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5984505235 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23613#pullrequestreview-5984505235). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T22:35:14Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the checks I could run passed, and the prepared diff and inspected source support merging. ## What I ran Reviewed head `cf3a90f06583aaf2d21bf566dd32d44b90471cda`. No build or tests were run in this review; the test results in the PR description are author-reported. ## Results | Check | Result | Note | |---|---|---| | Prepared diff and changed code | passed | Reviewed all included changed files and targeted reader context. | | Build and tests in this review | not run | Author reports Linux tests and convention checks passed. | | CMake test wiring | passed | Confirmed execution source and CMake fragment discovery. | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The full text of `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` was excluded by the review bundle size rule; I read its changed regions and relevant import helpers through `repo_read.py`. I did not independently run builds, tests, performance captures, or console behavior. The PR description's reported checks and measurements were not independently verified. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-20 07:59:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T07:59:02Z.

Review: COMMENTED


Reviewed — no blocking findings

The reviewed diff introduces Linux memfd backing for flexible memory and retries failed flexible dma-buf imports with a host-pointer import; I found no verified blocking defect in the inspected code.

What I ran

No commands or tests were run. I read the prepared diff and targeted source ranges through repo_read.py at head 4d15b34fa601b7458fc1acecd9119f33d4f86596; no merged-preview check was performed.

Results

Check Result Note
Diff and targeted source review passed Core mapping and import paths inspected
Automated checks not run No build or test commands run

Findings

Blocking

None verified in the inspected code.

Non-blocking

None.

Not verified

The review folder’s manifest lists 8 changed files, 7 included and 1 excluded because it was too large: core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp. I read targeted ranges in that excluded file through repo_read.py, but not its full text. I read targeted ranges in DirectMemory.cpp, GuestMemory.cpp, and the new flexible dma-buf test; the remaining included changed files were not read. Build, tests, runtime performance results, and console behavior were not independently verified. The performance and test results in the PR description are author-reported.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5989295562 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23613#pullrequestreview-5989295562). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T07:59:02Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The reviewed diff introduces Linux memfd backing for flexible memory and retries failed flexible dma-buf imports with a host-pointer import; I found no verified blocking defect in the inspected code. ## What I ran No commands or tests were run. I read the prepared diff and targeted source ranges through `repo_read.py` at head `4d15b34fa601b7458fc1acecd9119f33d4f86596`; no merged-preview check was performed. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | Core mapping and import paths inspected | | Automated checks | not run | No build or test commands run | ## Findings ### Blocking None verified in the inspected code. ### Non-blocking None. ## Not verified The review folder’s manifest lists 8 changed files, 7 included and 1 excluded because it was too large: `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`. I read targeted ranges in that excluded file through `repo_read.py`, but not its full text. I read targeted ranges in `DirectMemory.cpp`, `GuestMemory.cpp`, and the new flexible dma-buf test; the remaining included changed files were not read. Build, tests, runtime performance results, and console behavior were not independently verified. The performance and test results in the PR description are author-reported. ## To get this to a good state Nothing is required.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!23613
No description provided.