User Tools

Site Tools


doc:appunti:hardware:raspberrypi_3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
doc:appunti:hardware:raspberrypi_3 [2024/03/21 22:07] niccolodoc:appunti:hardware:raspberrypi_3 [2024/03/21 22:37] niccolo
Line 1: Line 1:
-====== Kodi on the Raspberry Pi 3 ======+====== Kodi on the Raspberry Pi 3 and CMA problems ======
  
 Running **Kodi 19.4** on the **Raspberry Pi 3 Model B Plus Rev 1.3** with **Raspberry Pi OS** based on Debian 11.9, I experienced some weird crashes of the Kodi interface: sometimes the Kodi process suddendly restart while I'm browsing a folder with about 200 video items. Running **Kodi 19.4** on the **Raspberry Pi 3 Model B Plus Rev 1.3** with **Raspberry Pi OS** based on Debian 11.9, I experienced some weird crashes of the Kodi interface: sometimes the Kodi process suddendly restart while I'm browsing a folder with about 200 video items.
Line 6: Line 6:
  
 <file> <file>
 +[  628.433140] cma: cma_alloc: linux,cma: alloc failed, req-size: 338 pages, ret: -12
 +[  628.433195] bcm2835-codec bcm2835-codec: dma alloc of size 1384448 failed
 +...
 [  848.225919] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from GEM DMA helper: [  848.225919] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from GEM DMA helper:
 [  848.226063] vc4-drm soc:gpu: [drm]                            V3D: 210408kb BOs (1132) [  848.226063] vc4-drm soc:gpu: [drm]                            V3D: 210408kb BOs (1132)
Line 40: Line 43:
 gpu_mem=128 gpu_mem=128
 </file> </file>
 +
 +With 128 Mb of GPU memory I'm still able to play 1920x1080 videos without issues. Many features of the VideoCore IV GPU use the CMA reserved memory, not this GPU reserver one.
 +
 +You can check how many GPU memory is used during Kodi normal operation, just launch the {{.raspberrypi:bcmstat.sh.gz|bcmstat.sh}} script and let it run:
 +
 +<code>
 +./bcmstat.sh Dd5
 +
 +</code>
  
 At next reboot I verified that the new setting is in place, checking the **dmesg** output: At next reboot I verified that the new setting is in place, checking the **dmesg** output:
doc/appunti/hardware/raspberrypi_3.txt · Last modified: 2024/03/22 06:13 by niccolo