lkml.org 
[lkml]   [2017]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC PATCH 0/5] Fixes for loadable modules implementing DMA/IOMMU APIs
Date
This series attempts to prepare the common DMA mapping helpers, IOMMU
subsystem and IOMMU DMA helpers to be used from within loadable modules.

It does not introduce any functional changes to the code itself. The
only things done are:
- exporting related non-static functions,
- adding a common DMA mapping helper that removes the need for the
module to import find_vm_area() and rely on implementation detail
of other DMA mapping helpers,
- adding missing cleanup function in IOMMU DMA framework.

Obviously there is no mainline user that could benefit from the above,
as for now, but there is a work in progress on mainlining the Intel IPU3
camera subsystem driver, which requires its own DMA mapping code and
IOMMU driver. It can be found on ChromiumOS gerrit at

https://chromium-review.googlesource.com/c/548626/4

or checked out directly with git with following commands

git fetch https://chromium.googlesource.com/chromiumos/third_party/kernel refs/changes/26/548626/4
git checkout FETCH_HEAD

The above is based on ChromeOS 4.4 kernel branch and has been used for
testing this series with code using it on real devices.

Tomasz Figa (5):
base: dma-mapping: Export commonly used symbols
base: dma-mapping: Provide a function to look up remapped pages
iommu: Export non-static functions to use in modules
iommu/dma: Export non-static functions to use in modules
iommu/dma: Add iommu_dma_cleanup()

drivers/base/dma-mapping.c | 18 ++++++++++++++++++
drivers/iommu/dma-iommu.c | 19 +++++++++++++++++++
drivers/iommu/iommu.c | 12 ++++++++++++
include/linux/dma-iommu.h | 6 ++++++
include/linux/dma-mapping.h | 2 ++
5 files changed, 57 insertions(+)

--
2.13.2.725.g09c95d1e9-goog

\
 
 \ /
  Last update: 2017-07-05 09:13    [W:0.080 / U:11.840 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site