[PATCH 1/5] iommu/msm: Add DT adaptation

2015-08-12 Thread Sricharan R
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 | | |

[PATCH 2/5] iommu/msm: Move the contents from msm_iommu_dev.c to msm_iommu.c

2015-08-12 Thread Sricharan R
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 |

[PATCH 5/5] iommu/msm: Remove driver BROKEN

2015-08-12 Thread Sricharan R
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(-)

[PATCH 3/5] iommu/msm: Add support for generic master bindings

2015-08-12 Thread Sricharan R
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

Re: [PATCH 4/5] iommu/msm: Set cacheability attributes without tex remap

2015-08-12 Thread Will Deacon
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

Re: [PATCH v6 11/16] KVM: Implement IRQ bypass consumer callbacks for x86

2015-08-12 Thread Alex Williamson
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

Re: [PATCH v4 5/6] iommu/mediatek: Add mt8173 IOMMU driver

2015-08-12 Thread Yong Wu
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

Re: [PATCH v4 4/6] memory: mediatek: Add SMI driver

2015-08-12 Thread Yong Wu
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);

Re: [PATCH 3/5] iommu/msm: Add support for generic master bindings

2015-08-12 Thread Stephen Boyd
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