Re: [PATCH 0/8] iommu: Make core iommu-groups code more generic

2015-11-19 Thread Yong Wu
On Wed, 2015-10-21 at 23:51 +0200, Joerg Roedel wrote: > Hi, > > this patch-set makes the core code for managing iommu-groups > more generic by lifting its dependencies on PCI. The core > function iommu_group_get_for_dev() had a hard dev_is_pci() > check in it, followed by PCI specific handling.

[PATCH V5 RESEND 2/3] iommu/hisilicon: Add hi6220-SoC smmu driver

2015-11-19 Thread Chen Feng
Add iommu driver for hi6220 SoC platform.The smmu on hi6220 SoC is for media system.And the media IP use the same page-table. It supports only one-to-one mapping from iova to phys address. Signed-off-by: Chen Feng --- drivers/iommu/Kconfig| 11 +

[PATCH V5 RESEND 0/3] Add iommu support for hi6220 HiKey board

2015-11-19 Thread Chen Feng
The patch sets add iommu support for Hi6220 SoC. Current testing and support board is Hikey which is one of 96boards. It is an arm64 open source board. For more information about this board, please access https://www.96boards.org. The Architecture of SMMU on Hi6220 SoC:

[PATCH V5 RESEND 3/3] arm64: dts: Add dts node for hi6220 smmu driver

2015-11-19 Thread Chen Feng
Add iommu node for hi6220 SoC platform Signed-off-by: Chen Feng --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index

[PATCH v2 1/1] iommu/vt-d: use lo_hi_readq() / lo_hi_writeq()

2015-11-19 Thread Andy Shevchenko
There is already helper functions to do 64-bit I/O on 32-bit machines or buses, thus we don't need to reinvent the wheel. Signed-off-by: Andy Shevchenko --- Cahngelog v2: - rebase on top of recent linux-next include/linux/intel-iommu.h | 18 ++

Re: [RFC V3] iommu: arm-smmu: correct group reference count

2015-11-19 Thread Peng Fan
Hi Will, On Tue, Nov 17, 2015 at 04:17:46PM +, Will Deacon wrote: >On Tue, Nov 10, 2015 at 09:56:26AM +0800, Peng Fan wrote: >> The basic flow for add a device: >> arm_smmu_add_device >> |->iommu_group_get_for_dev >> |->iommu_group_get >> return

Re: [PATCH 0/8] iommu: Make core iommu-groups code more generic

2015-11-19 Thread Joerg Roedel
Hi Yong Wu, On Thu, Nov 19, 2015 at 04:13:21PM +0800, Yong Wu wrote: > (151119_13:39:37.472)WARNING: > at /proj/mtk40525/upstreamdev/v4.4/kernel/mediatek/drivers/iommu/iommu.c:1154 > (151119_13:39:37.472)Modules linked in: > (151119_13:39:37.472)CPU: 1 PID: 731 Comm: sh Not tainted 4.4.0-rc1+ >