[PATCH 4/7] iommu/fsl: Factor out PCI specific code

2016-03-07 Thread Codrin Ciubotariu
From: Varun Sethi Factor out PCI specific code in the PAMU driver. Signed-off-by: Varun Sethi Signed-off-by: Codrin Ciubotariu --- drivers/iommu/fsl_pamu_domain.c | 77 ++--- 1 file changed, 41 insertions(+), 36 deletions(-) diff --git a/drivers/iommu

[PATCH 5/7] iommu/fsl: Enable default DMA window for PCIe devices once detached from domain

2016-03-07 Thread Codrin Ciubotariu
of a default DMA window corresponding to the device and subsequently enabling the PAMU table entry. Before we enable the entry, we ensure that the device's bus master capability is disabled (device quiesced). Signed-off-by: Varun Sethi Signed-off-by: Codrin Ciubotariu --- drivers/iommu/

[PATCH 0/7] PAMU driver update

2016-03-07 Thread Codrin Ciubotariu
support. The last two patches add support for power management and compatible strings for new L3 controller device-tree nodes. Codrin Ciubotariu (2): iommu/fsl: Fix most checkpatch warnings and typos iommu/fsl: Work around erratum A-007907 Varun Sethi (5): iommu/fsl: Enable OMT cache, before

[PATCH 7/7] iommu/fsl: Added cache controller compatible strings for SOCs

2016-03-07 Thread Codrin Ciubotariu
From: Varun Sethi Added cache controller compatible strings for T2080, B4420, T1040 and T1024. PAMU driver searches for a matching string while setting up L3 cache stashing. Signed-off-by: Varun Sethi Signed-off-by: Codrin Ciubotariu --- drivers/iommu/fsl_pamu.c | 10 ++ 1 file

[PATCH 3/7] iommu/fsl: Enable OMT cache, before invalidating PAACT and SPAACT cache

2016-03-07 Thread Codrin Ciubotariu
From: Varun Sethi Enable OMT cache, before invalidating PAACT and SPAACT cache. This is a PAMU hardware errata work around. Signed-off-by: Varun Sethi Signed-off-by: Codrin Ciubotariu --- drivers/iommu/fsl_pamu.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/iommu

[PATCH 1/7] iommu/fsl: Fix most checkpatch warnings and typos

2016-03-07 Thread Codrin Ciubotariu
Signed-off-by: Codrin Ciubotariu --- drivers/iommu/fsl_pamu.c| 92 + drivers/iommu/fsl_pamu.h| 29 +++-- drivers/iommu/fsl_pamu_domain.c | 41 +++--- drivers/iommu/fsl_pamu_domain.h | 2 +- 4 files changed, 109

[PATCH 2/7] iommu/fsl: Work around erratum A-007907

2016-03-07 Thread Codrin Ciubotariu
Erratum A-007907 can cause a core hang under certain circumstances. Part of the workaround involves not stashing to L1 Cache. On affected chips, stash to L2 when L1 is requested. Signed-off-by: Scott Wood Signed-off-by: Varun Sethi Signed-off-by: Shengzhou Liu Signed-off-by: Codrin Ciubotariu

[PATCH 6/7] iommu/fsl: PAMU power management support

2016-03-07 Thread Codrin Ciubotariu
From: Varun Sethi PAMU driver suspend and resume support. Signed-off-by: Varun Sethi Signed-off-by: Codrin Ciubotariu --- drivers/iommu/fsl_pamu.c | 155 +-- 1 file changed, 123 insertions(+), 32 deletions(-) diff --git a/drivers/iommu/fsl_pamu.c