From c9ce96fffe1c19fa99f2bf7e410a3cfab039f900 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Thu, 22 Oct 2026 23:45:09 +0100 Subject: [PATCH] video-support: put the DMA-BUF heaps in the video group procd creates /dev/dma_heap/* owned by root with mode 0600, as no rule matches the dma_heap subsystem. A media player allocates its frame buffers from the system heap when decoding in software for a KMS plane, and as an unprivileged user it cannot open the heap: Kodi then finds no buffer object able to allocate by size and drops every VP9 frame. Create the heap nodes in video, like the DRM card nodes. Signed-off-by: Daniel Golle --- package/system/hardware-support/Makefile | 4 ++-- package/system/hardware-support/files/30-video.json | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package/system/hardware-support/Makefile b/package/system/hardware-support/Makefile index efaff763a44..eac31e40bd6 100644 --- a/package/system/hardware-support/Makefile +++ b/package/system/hardware-support/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=hardware-support -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_LICENSE:=GPL-2.0-only PKG_MAINTAINER:=Daniel Golle @@ -56,7 +56,7 @@ endef define Package/video-support/description Feature gate for display and video devices. Allocates the video and video-capture groups and installs the hotplug rules which put the DRM - character devices into video. + character devices and the DMA-BUF heaps into video. A uevent carries no device capabilities, so a V4L2 node is created without a group and handed to v4l-id, which asks the driver and moves diff --git a/package/system/hardware-support/files/30-video.json b/package/system/hardware-support/files/30-video.json index 43be8a903bc..9f8b3abbf8a 100644 --- a/package/system/hardware-support/files/30-video.json +++ b/package/system/hardware-support/files/30-video.json @@ -17,6 +17,13 @@ [ "return" ] ] ], + [ "if", + [ "eq", "SUBSYSTEM", "dma_heap" ], + [ + [ "makedev", "/dev/%DEVNAME%", "0660", "video" ], + [ "return" ] + ] + ], [ "if", [ "eq", "SUBSYSTEM", "video4linux" ], [