Dmabuf/DMA mapping/iommu/CMA/TTM/gem/Gart/Smmu

Source: Internet
Author: User

1. dmabuf can be used as a wrapper to encapsulate other memory management frameworks. all these memory management framework (I mean mostly for graphics), buffer is the keypoint. dmabuf defines a standard buffer structure. so dmabuf can be used as a wrapper for TTM/gem/Android ion... and etc. notice dmabuf can't replace these things, cause it doesn' t cover everything. e. g: dmabuf has no userspace interfaces, Right now only kernel interfaces (can be used in device driver ).

2. kernel has DMA mapping API from origin. arm defines iommu which can be used to connect scattered physical memory as a continuous region for devices which needs continue address to work (E. g: DMA ). so iommu implementations & CMA shocould work behind kernel DMA mapping API. e. g: dma_alloc_from_contiguous can be implemented by CMA; dma_alloc_coherent can be implemented by iommu or by the normal case (just call _ get_free_pages ). so for device drivers need DMA buffers, We shocould use DMA mapping APIs, not call iommu API directly.

3. For tegra, Gart & Smmu can be used to implement iommu APIs.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.