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

DMABuff only works with root permissions? #8

Open
Talkless opened this issue Aug 10, 2023 · 2 comments
Open

DMABuff only works with root permissions? #8

Talkless opened this issue Aug 10, 2023 · 2 comments

Comments

@Talkless
Copy link

I've tried to launch Qt-base application that uses qmlglsink not as root:

Aug 10 13:27:08 imx8mmevk run_neway_n111.sh[1654]: 0:00:07.644457131  1654 0xaaab07708a00 ERROR    imxdmaheapallocator gstimxdmaheapallocator.c:252:gst_imx_dma_heap_allocator_activate:<imxdmaheapallocator0> could not create dma-heap allocator: Permission denied (13)
Aug 10 13:27:08 imx8mmevk run_neway_n111.sh[1654]: 0:00:07.644589505  1654 0xaaab07708a00 ERROR     imxdmabufallocator gstimxdmabufallocator.c:279:gst_imx_dmabuf_allocator_activate:<imxdmaheapallocator0> could not activate i.MX DMA-BUF allocator
Aug 10 13:27:08 imx8mmevk run_neway_n111.sh[1654]: MyApp: ../imxdmabuffer/imxdmabuffer.c:84: imx_dma_buffer_deallocate: Assertion `buffer != NULL' failed.

I had to add user to video group to access fb0 at first, but it seems I need more permissions to utilize DMABuff on this imx8mm device..?

Or is it impossible to use this feature at all not running root?

@dv1
Copy link
Collaborator

dv1 commented Aug 10, 2023

What are the permissions of /dev/dma_heap/linux,cma-uncached (or /dev/dma_heap/linux,cma if you have that instead)?

@Talkless
Copy link
Author

# ls -l /dev/dma_heap/
total 0
crw------- 1 root root 250, 1 Aug 11 05:12 linux,cma
crw------- 1 root root 250, 0 Aug 11 05:12 system

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

No branches or pull requests

2 participants