On 02/12/2018 08:42 PM, Laura Abbott wrote:
On 02/10/2018 02:17 AM, Alexey Skidanov wrote:Yes, I know it was removed in 4.12.
Current ion defined allocation ioctl doesn't allow to specify theI really do not want to bring this back as part of the regular
requested
allocation alignment. CMA heap allocates buffers aligned on buffer size
page order.
Sometimes, the alignment requirement is less restrictive. In such cases,
providing specific alignment may reduce the external memory fragmentation
and in some cases it may avoid the allocation request failure.
ABI.
Having an alignment parameter that gets used for exactly
one heap only leads to confusion (which is why it was removedYou are correct regarding the CMA heap. But, probably it may be used by
from the ABI in the first place).
custom heap as well.
The alignment came from the behavior of the DMA APIs. Do youYes. If CMA gives it for free, I would suggest to let the ion user to decide
actually need to specify any alignment from userspace or do
you only need page size?
Thanks,Thanks,
Laura
Alexey