Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add udmabuf to kernel config #4

Merged
merged 1 commit into from
Mar 7, 2025
Merged

Conversation

rmader
Copy link

@rmader rmader commented Mar 7, 2025

From the docs:

udmabuf is a device driver which allows userspace to create
dmabufs. The memory used for these dmabufs must be backed by
memfd.

It is becoming increasingly popular for multimedia related tasks and, from Fedora 41 and systemd 257 on, is available by default to users.
The RPi4 and 5 can notably benefit from it as they lack hardware video decoders - udmabuf allows software decoders to allocate buffers that can be used by the powerful display engine.


udmabuf was recently enabled by default in systemd and is used by the libcamera software ISP, mesa-llvmpipe and, hopefully soon, gstreamer. The later allows software decoded video to be displayed much more efficiently than existent/other approaches.

From the docs:
> udmabuf is a device driver which allows userspace to create
> dmabufs. The memory used for these dmabufs must be backed by
> memfd.

It is becoming increasingly popular for multimedia related tasks
and, from Fedora 41 and systemd 257 on, is available by default to
users.
The RPi4 and 5 can notably benefit from it as they lack hardware video
decoders - udmabuf allows software decoders to allocate buffers that
can be used by the powerful display engine.

Signed-off-by: Robert Mader <robert.mader@collabora.com>
@dwrobel
Copy link
Owner

dwrobel commented Mar 7, 2025

Triggered a build: https://copr.fedorainfracloud.org/coprs/dwrobel/kernel-rpi-testing/builds/

Please also consider sending this to https://github.com/raspberrypi/linux (hopefully the usage in libcamera should convince them to merge it).

@rmader
Copy link
Author

rmader commented Mar 7, 2025

Wow, that was fast, thanks! :)

FYI., I also opened a request upstream: raspberrypi/linux#6706

@rmader
Copy link
Author

rmader commented Mar 7, 2025

@dwrobel it works great btw., tested both RPi 4 and 5.

@dwrobel
Copy link
Owner

dwrobel commented Mar 7, 2025

@dwrobel it works great btw., tested both RPi 4 and 5.

Thanks!

Pushed to stable: https://copr.fedorainfracloud.org/coprs/dwrobel/kernel-rpi/builds/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants