From 4ae6d5ade5212bfbf7b2cb9ed51cf02598bded6e Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Tue, 30 Jul 2024 17:47:29 +0200 Subject: [PATCH] RPi5: add udev rule to symlink dma_buf/system to dma_buf/vidbuf shared This allows ffmpeg to use the system memory instead of CMA for video decoding. As RPi5 has an MMU CMA is not needed. Signed-off-by: Matthias Reichl --- .../RPi5/filesystem/usr/lib/udev/rules.d/60-dma-heap.rules | 1 + 1 file changed, 1 insertion(+) create mode 100644 projects/RPi/devices/RPi5/filesystem/usr/lib/udev/rules.d/60-dma-heap.rules diff --git a/projects/RPi/devices/RPi5/filesystem/usr/lib/udev/rules.d/60-dma-heap.rules b/projects/RPi/devices/RPi5/filesystem/usr/lib/udev/rules.d/60-dma-heap.rules new file mode 100644 index 0000000000..42745fe4e4 --- /dev/null +++ b/projects/RPi/devices/RPi5/filesystem/usr/lib/udev/rules.d/60-dma-heap.rules @@ -0,0 +1 @@ +SUBSYSTEM=="dma_heap", KERNEL=="system", SYMLINK+="dma_heap/vidbuf_cached"