Commit Graph

7 Commits

Author SHA1 Message Date
Mitchel Humpherys 092ffeafbb iommu: msm: add msm_iommu_register_notify stub for CONFIG_MSM_IOMMU_V1=n
Drivers using msm_iommu_register_notify currently don't link when
CONFIG_MSM_IOMMU_V1=n.  We may want to implement the notifier for
msm_iommu_v0 in the future, but until then provide a stub to allow
successful compilation and linking of driver using
msm_iommu_register_notify.

Change-Id: I7c8c91ed2e08a4eb473f0b6e3906e9e6d473f1ca
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2015-01-14 10:14:16 -08:00
Mitchel Humpherys 76f6a85762 iommu: msm: add notifier chain for IOMMU events
There are some events that IOMMU client drivers might like to be
notified about.  Add a notifier chain for this purpose.  Currently the
only supported event is TLB sync timeout.

Change-Id: I4f04e856c9a809f49afb857de8047a8ac2d02a92
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2015-01-06 19:27:15 -08:00
Chintan Pandya e0e807df91 iommu: msm: Use CB index as ASID
ASID conflict between 2 CBs can lead to some odd behavior
of SMMU. Present way of ASID allotment can conflict with
the ASID being used by secure world. Use the CB number
as ASID. That will ensure that we will not use any other
ASID which secure world may think of using it.

Change-Id: I622d5c1aee7dac5913706588ae7ff1c490a2981c
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
2014-10-27 17:40:58 +05:30
Neeti Desai b28a099edd msm: iommu: Add support for updating mask register for smmu
For some of the smmus's the number of unique stream
ids is more than the number of Stream Mapping
Table entries. The mask field of the SMRn register
needs to updated to handle the correct mapping
behaviour.

Change-Id: I72a2ffe538a6078320c65575d1b007e4114401a4
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
2014-05-20 11:38:09 -07:00
Chintan Pandya 68d9da8026 iommu: msm: Support different implementations
Within SMMUv2, different implementation have
different Software interface. Support IOMMU
driver to be compatible with MMU-500.

Change-Id: I7d18c5aad82acafa317fe95b021e29b992a082be
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
2014-04-01 17:54:58 +05:30
Chintan Pandya 0624c3128e iommu: msm: Enable aggregated CB interrupts for secure SMMUs also
Present logic of enabling aggregated CB interrupts works only
for non-secure SMMUs. Improvise that logic to enable interrupts
for secure SMMUs also.

Change-Id: I77f914de760562ce30b7ade512a12639eb84af6d
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
2014-03-12 07:19:30 +05:30
Larry Bassel 9435beaa25 iommu: move iommu header files to new locations
Header files are no longer allowed in the directory
arch/arm/mach-msm/include/mach/ .

Move the iommu related header files to a more suitable place.

Change-Id: Ib7bbce1485d6185f669935b507040cac75368985
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
2014-03-03 12:28:12 -08:00