Commit Graph

5 Commits

Author SHA1 Message Date
Neha Atri f74d71da48 iommu: Fix __msm_map_iommu_common()
When msm_iommu_meta_create() returns error, msm_iommu_map_mutex is not
getting unlocked and error pointer is being passed to
msm_iommu_meta_put(). Fix this.

CRs-Fixed: 803179
Change-Id: I7c1c615bc697693b2036351340065af3f080ed63
Signed-off-by: Neha Atri <natri@codeaurora.org>
2015-05-04 22:44:50 -07:00
Neha Atri f6a0a17732 iommu: Fix bug in __msm_map_iommu_common()
In error situations, iommu_meta remains NULL and msm_iommu_meta_put()
gets called with this NULL pointer. Fix this.

CRs-Fixed: 769233
Change-Id: I91c1e234c16d40af249a2d54faf6eae087281f5b
Signed-off-by: Neha Atri <natri@codeaurora.org>
2014-12-12 12:19:57 -08:00
Laura Abbott f85024a36d iommu: Warn on unmap failure
The msm iommu mapping wrappers use reference counting which
make returning an error code impossible. Loudly warn instead
to make certain problems more obvious.

Change-Id: Ic12510c37ff900e2431c5941d3e02206cc3a9074
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2014-09-15 16:39:26 -07:00
Laura Abbott 6937b53db1 iommu: Add APIs to map dma_bufs
Apart from just mapping Ion buffers, we want to be able to
map dma_bufs as well. Support those APIs.

Change-Id: Ia115289e1ef0249dede36cdf734b5b6a8e74f6fc
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2014-05-29 09:28:11 -07:00
Laura Abbott 46589882a0 iommu: Move IOMMU mapping out of Ion directory
The IOMMU mapping APIs used to be tied to Ion but there
is less of a dependency these days. Move the file out of
the Ion directory and to somewhere more generic.

Change-Id: Ie38f6318c5e162820133bbff79ed3bb5918ddbc5
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2014-05-29 09:28:11 -07:00