Skip to content

Fix file chosing for CMA #1329

@xR3b0rn

Description

@xR3b0rn

This issue can be seen as a follow-up to libiio issue #1259.

According to this kernel issue, linux,cma is not a universally defined name - that is, it's not guaranteed to point to the CMA memory on every system. The actual name of the device file depends on the name of the CMA node in the device tree or may be reserved if cma=<size> is set on the linux cmdline.

So, technically speaking, the hardcoded path /dev/dma_heap/linux,cma may be correct on many systems, but it is not guaranteed to work everywhere. If cma=<size> is specified or a differently named device tree node is used, the corresponding file name will change. As such, the hardcoded path referenced here may not actually refer to the CMA on all systems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions