2023-03-30, 10:44
@garbear Just to summarize what is known about the "memory" bug so far:
- PCSX is affected. For now I don't know about any other affected emulators.
- I've tested it on 2 systems. The first one is running LibreELEC and the GBM stack (it uses the RPRendererDMA). The second system is running CoreELEC and is using the direct rendering to Amlogic fbdev (this one is using the RPRendererOpenGLES).
- On the LibreELEC system with the RPRendererDMA I'm getting these errors in dmesg and the Kodi crashes after a few seconds:
Code:cma: cma_alloc: reserved: alloc failed, req-size: 238 pages, ret: -12
- On the CoreELEC system with the RPRendererOpenGLES I'm seeing the memory consumption problem and there are no errors in the dmesg.
Exactly as you've expected, when I exit the game before the system dies on OOM, the memory is released.
- Reverting of the "Add memory access and alignment" commit solves the issue on LibreELEC (but I haven't tested it on CoreELEC yet).