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>
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>
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>
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>
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>