Closed iabdalkader closed 4 years ago
Thank you for the issue.
The Linux CMA region has alignment constraints. For MPSoC, the address and size that can be specified in the regs property of reserved-memory must be in units of 0x00400000 (4MiB).
Please also refer to this issue.
You were right, I fixed the alignment issue (in my case had to reserve 8MBytes) and it's now working. Thanks for the help.
First I wanted to thank you for this module I find it very useful and exactly what I need for my project. That said, I'm seeing the exact same issue reported in #10 (kernel oops when sync'ing with reserved memory and
no-map;
). I tired usingreusable;
as you suggested, but I get an error when loading udmabuf.device tree:
When doing
modprobe u-dma-buf
:I also noticed the memory is not actually reserved with
reusable
:It must be part of some memory pool. When using no-map I can see it's reserved:
I'm testing on ARM + kernel 4.19.49... Any suggestions to fix this ? I need to use reserve memory so the address is known, and be able to invalidate the cache after a DMA write...