Commit Graph

5 Commits

Author SHA1 Message Date
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
Olav Haugan f472e82309 iommu: msm: Refactor use of remote spinlock
The remote spinlock was originally meant to synchronize access between
GPU and CPU accessing SMMU. However, there are more use cases that
this remote spinlock serves. This change decouples the spinlock from
GPU and adds support for taking the spinlock only for SMMUs that are
specified in the device tree.

CRs-fixed: 517873
Change-Id: Ic50992d0d1a102fbd05855e09e254e627f99ec33
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2013-10-02 10:41:52 -07:00
Olav Haugan b7eebb303a iommu: msm: Turn on clocks for secure IOMMU
Before calling into the secure environment to program secure
IOMMUs clocks need to be turned on.

CRs-Fixed: 469813
Change-Id: I3ad8802c284a426a5e51b528d013106a4af51b4d
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2013-09-04 16:16:13 -07:00
Olav Haugan c9693b4a92 iommu: msm: Add PMU support for msm8610
Add Performance Monitor Unit (PMU) support for msm8610 IOMMU. The PMU
allows you to measure the performance of the IOMMU such as TLB miss
rate. The PMU for msm8610 can be configured to monitor the following
events:

-TLB Refill
-TLB Refill - Read
-Access
-Access - Write
-Number of Full Misses

Change-Id: I786c2a283eb52325b3bacc864f4bb03dd6ebc946
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2013-09-04 16:01:56 -07:00
Olav Haugan fab72e3936 iommu: msm: Refactor PMU code
Refactor Performance Monitor Unit (PMU) code to allow support for
different PMU hardware interfaces.

Change-Id: I5b0f8c8d09bc362118ed63253b0df76178eb3114
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2013-09-04 16:01:55 -07:00