Open Noah-naihe opened 1 year ago
I refer to what you said, add the following device tree node in the device tree, but found that the compiler does not pass. I am using kernel 5.4.0, what is the impact of this
Thank you for the issue.
The first half of the problem may be cured by specifying the dma-mask property. See this issue #45 for details.
Please tell me what kind of error occurred in the latter half of the problem.
I use 16G DDR. According to xilinx system memory allocation, it is 2+14GB allocation, among which 2G is in 0x0-0x80000000 and the other 14GB is in 0x8 00000000. However, in the device tree, the CMA sets the start address at 0x8 00000000 and the length is 2GB, but the physical address is still 2GB ahead.
Allocating 100MB of space also fails
The 100MB space cannot be allocated successfully. The previous 1MB space can be allocated. So it's not the number of digits in the system.
u-dma-buf-mgr allocates memory from the default CMA. As far as this log is concerned, the default CMA area seems to be below 0x80000000 (2GBi). What are your CMA area settings?
1GiB worked for me I allocated 1250MB of CMA and had the reusable flag removed.
I'm sorry, I have one more question here; Here I refer to xilinx's cma space extension for a link:https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841683/Linux+Reserved+Memory#LinuxReservedMemory-ReservedmemoryforCMA The cma space was also successfully created.
Using this udmabuf driver before, it is normal to open up space for multiple Cmas. However, after expanding the cma space, it can not be used normally
![image](https://user-images.githubusercontent.com/81860689/198528396-35412c5f-7d08-49f2-b5aa-5f649c211b30.png)
device tree: reserved-memory {
address-cells = <2>;