Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d445beb authored by Isaac J. Manjarres's avatar Isaac J. Manjarres
Browse files

dma-mapping-fast: Clean up common code



The current derivation of pfns/page structures has a fair
amount of complexity in it, and can be simplified. For example,
there need not be completely separate cases for pages that are
all remapped into the vmalloc space, but were allocated
differently (i.e. atomic allocations vs contiguous allocations).
So, simplify the handling for those, and leverage iommu_dma_mmap()
and iommu_dma_get_sgtable(), as there is nothing fastmap-specific
with the way pages are mapped into userspace and how we construct
an sg-table respectively.

Change-Id: Ia5725a93ee84f2c5e7ccc1d6e62f828338e83bd7
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent f3f78a96
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment