Custom CMA reserved memory on i.MX8MM mini
02-05-2020
10:38 AM
3,285 Views
matt67
Contributor III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
I have a custom design with 1GB of RAM on i.MX8MM however the dtsi file is setting the shared-dma-pool with a quiet huge size.
/* global autoconfigured region for contiguous allocations */
linux,cma {
compatible = "shared-dma-pool";
reusable;
size = <0 0x28000000>;
alloc-ranges = <0 0x40000000 0 0x60000000>;
linux,cma-default;
};
I don't have video processing, how could I decrease it to its minimal value in a good way and with which values ?
Thank you
Labels (3)
Reply
3 Replies
02-05-2020
11:25 PM
3,063 Views
b36401
NXP Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is application dependent.
CMA is required for DMA operations.
So you need to estimate how many buffers is required for the interfacing (SD card, camera, LCD, etc).
Alctually we did not measure the minimum of CMA.
Reply
02-05-2020
11:40 PM
3,063 Views
matt67
Contributor III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Victor. Can you explain me the alloc-range property. Is that <address, size, address size > like binding documentation tells? So why overlapping?
06-12-2020
08:47 PM
3,063 Views
b36401
NXP Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is a documentation regardign to device tree usage:
https://elinux.org/Device_Tree_Usage