History log of /drivers/iommu/msm_iommu.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
05df1f3c2afaef5672627f2b7095f0d4c4dbc3a0 26-Jan-2012 Joerg Roedel <joerg.roedel@amd.com> iommu/msm: Fix error handling in msm_iommu_unmap()

Error handling in msm_iommu_unmap() is broken. On some error
conditions retval is set to a non-zero value which causes
the function to return 'len' at the end. This hides the
error from the user. Zero should be returned in those error
cases.

Cc: David Brown <davidb@codeaurora.org>
Cc: Stepan Moskovchenko <stepanm@codeaurora.org>
Cc: stable@vger.kernel.org # >= 3.1
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Acked-by: David Brown <davidb@codeaurora.org>
/drivers/iommu/msm_iommu.c
83427275546a6e36076d4f1a0545335b1bb2afc2 10-Nov-2011 Ohad Ben-Cohen <ohad@wizery.com> iommu/msm: announce supported page sizes

Let the IOMMU core know we support 4KiB, 64KiB, 1MiB and 16MiB page sizes.

This way the IOMMU core can split any arbitrary-sized physically
contiguous regions (that it needs to map) as needed.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Acked-by: David Brown <davidb@codeaurora.org>
Cc: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
/drivers/iommu/msm_iommu.c
5009065d38c95455bd2d27c2838313e3dd0c5bc7 10-Nov-2011 Ohad Ben-Cohen <ohad@wizery.com> iommu/core: stop converting bytes to page order back and forth

Express sizes in bytes rather than in page order, to eliminate the
size->order->size conversions we have whenever the IOMMU API is calling
the low level drivers' map/unmap methods.

Adopt all existing drivers.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Cc: David Brown <davidb@codeaurora.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Joerg Roedel <Joerg.Roedel@amd.com>
Cc: Stepan Moskovchenko <stepanm@codeaurora.org>
Cc: KyongHo Cho <pullip.cho@samsung.com>
Cc: Hiroshi DOYU <hdoyu@nvidia.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
/drivers/iommu/msm_iommu.c
85eebbc5e4633e6eee10bdddd00d175daadd5841 06-Sep-2011 Joerg Roedel <joerg.roedel@amd.com> iommu/msm: Use bus_set_iommu instead of register_iommu

Convert the MSM IOMMU driver for ARM to use the new
interface for publishing the iommu_ops.

Acked-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
/drivers/iommu/msm_iommu.c
9e28547f887c3040747d8422e1feef79bea93bd8 02-Sep-2011 Ohad Ben-Cohen <ohad@wizery.com> iommu/msm: ->unmap() should return order of unmapped page

Users of the IOMMU API (kvm specifically) assume that iommu_unmap()
returns the order of the unmapped page (on success).

Fix msm_iommu_unmap() accordingly.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Cc: Stepan Moskovchenko <stepanm@codeaurora.org>
Cc: David Brown <davidb@codeaurora.org>
Acked-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
/drivers/iommu/msm_iommu.c
b10f127e1a4d8cac5414c6e2b152c205b66c9f16 02-Jun-2011 Ohad Ben-Cohen <ohad@wizery.com> msm: iommu: move to drivers/iommu/

This should ease finding similarities with different platforms,
with the intention of solving problems once in a generic framework
which everyone can use.

Compile-tested for MSM8X60.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Acked-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
/drivers/iommu/msm_iommu.c