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

> I ran into the same issue on an x86_64 and it was fixed by changing the dma_mask_bit module parameter like so: insmod udmabuf.ko dma_mask_bit=64 udmabuf0=8388608 #99

Open
bipingamiyv opened this issue Feb 3, 2023 · 1 comment

Comments

@bipingamiyv
Copy link

          > I ran into the same issue on an x86_64 and it was fixed by changing the dma_mask_bit module parameter like so: `insmod udmabuf.ko dma_mask_bit=64 udmabuf0=8388608`

I tried the above command, but it fails to create size more than 4MiB. Can you suggest any other alternative?

Originally posted by @bipingamiyv in #25 (comment)

@ikwzm
Copy link
Owner

ikwzm commented Feb 3, 2023

Thank you for the issue

u-dma-buf uses linux kernel's dma_alloc_coherent() to allocate a buffer.
The buffer capacity that can be secured by dma_alloc_coherent() is determined by the architecture, Linux kernel version, build parameters, and boot parameters.
It's difficult to answer this question because I don't know what your system looks like.
I'm sorry I couldn't help you.

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