The driver currently works based on platform data. Remove this
and add support for DT. A single master can have multiple ports
connected to more than one iommu.
master
|
|
|
There are only two functions left in msm_iommu_dev.c. Move it to
msm_iommu.c and delete the file.
Signed-off-by: Sricharan R sricha...@codeaurora.org
---
drivers/iommu/Makefile| 2 +-
drivers/iommu/msm_iommu.c | 163 +
drivers/iommu/msm_iommu_dev.c |
Now that the driver is DT adapted, bus_set_iommu gets called
only when on compatible matching. So the driver should not
break multiplatform builds now. So remove the BROKEN config.
Signed-off-by: Sricharan R sricha...@codeaurora.org
---
drivers/iommu/Kconfig | 1 -
1 file changed, 1 deletion(-)
This adds the xlate callback which gets invoked during
device registration from DT. The master devices gets added
through this. Also adding the iommu_of_setup callback here.
Signed-off-by: Sricharan R sricha...@codeaurora.org
---
drivers/iommu/msm_iommu.c | 51
On Wed, Aug 12, 2015 at 03:47:48PM +0100, Sricharan R wrote:
The cacheablity attributes are set when IOMMU_CACHE property
is true. So cachebility is set as either noncached (normal)
or cached (normal WBWA) directly and avoid setting using
tex remap.
Does this IOMMU support the ARMv7 short
On Tue, 2015-08-11 at 14:03 +0800, Feng Wu wrote:
Implement the following callbacks for x86:
- kvm_arch_irq_bypass_add_producer
- kvm_arch_irq_bypass_del_producer
- kvm_arch_irq_bypass_stop: dummy callback
- kvm_arch_irq_bypass_resume: dummy callback
and set CONFIG_HAVE_KVM_IRQ_BYPASS
On Tue, 2015-08-11 at 17:39 +0200, Joerg Roedel wrote:
On Mon, Aug 03, 2015 at 06:21:18PM +0800, Yong Wu wrote:
+/*
+ * There is only one iommu domain called the m4u domain that
+ * all Multimedia modules share.
+ */
+static struct mtk_iommu_domain *m4udom;
What is the reason you
On Tue, 2015-08-11 at 16:56 +0200, Joerg Roedel wrote:
On Mon, Aug 03, 2015 at 06:21:17PM +0800, Yong Wu wrote:
+static int mtk_smi_common_get(struct device *smidev)
+{
+ struct mtk_smi_common *smipriv = dev_get_drvdata(smidev);
+ int ret;
+
+ ret = pm_runtime_get_sync(smidev);
On 08/12/2015 07:47 AM, Sricharan R wrote:
@@ -702,6 +703,44 @@ static void print_ctx_regs(void __iomem *base, int ctx)
GET_PRRR(base, ctx), GET_NMRR(base, ctx));
}
+static void insert_iommu_master(struct device *dev,
+ struct msm_iommu_dev