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

2015-11-28 Thread Joerg Roedel
On Sat, Nov 28, 2015 at 10:19:14AM +0800, chenfeng wrote: > On 2015/11/27 20:02, Joerg Roedel wrote: > > You need to create an iommu-group per smmu in your system and put all > > devices translated by this smmu in that group. And then you must change > > your code to allow attaching/detaching this

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

2015-11-28 Thread Joerg Roedel
On Sat, Nov 28, 2015 at 10:19:14AM +0800, chenfeng wrote: > On 2015/11/27 20:02, Joerg Roedel wrote: > > You need to create an iommu-group per smmu in your system and put all > > devices translated by this smmu in that group. And then you must change > > your code to allow attaching/detaching this

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

2015-11-27 Thread chenfeng
On 2015/11/27 20:02, Joerg Roedel wrote: > On Fri, Nov 20, 2015 at 10:25:08AM +0800, Chen Feng wrote: >> +config HI6220_IOMMU >> +bool "Hi6220 IOMMU Support" >> +depends on ARM64 >> +select IOMMU_API >> +select IOMMU_IOVA >> +help >> + Enable IOMMU Driver for hi6220 SoC.

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

2015-11-27 Thread Joerg Roedel
On Fri, Nov 20, 2015 at 10:25:08AM +0800, Chen Feng wrote: > +config HI6220_IOMMU > + bool "Hi6220 IOMMU Support" > + depends on ARM64 > + select IOMMU_API > + select IOMMU_IOVA > + help > + Enable IOMMU Driver for hi6220 SoC. The IOMMU API and IOMMU IOVA > + is

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

2015-11-27 Thread Joerg Roedel
On Fri, Nov 20, 2015 at 10:25:08AM +0800, Chen Feng wrote: > +config HI6220_IOMMU > + bool "Hi6220 IOMMU Support" > + depends on ARM64 > + select IOMMU_API > + select IOMMU_IOVA > + help > + Enable IOMMU Driver for hi6220 SoC. The IOMMU API and IOMMU IOVA > + is

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

2015-11-27 Thread chenfeng
On 2015/11/27 20:02, Joerg Roedel wrote: > On Fri, Nov 20, 2015 at 10:25:08AM +0800, Chen Feng wrote: >> +config HI6220_IOMMU >> +bool "Hi6220 IOMMU Support" >> +depends on ARM64 >> +select IOMMU_API >> +select IOMMU_IOVA >> +help >> + Enable IOMMU Driver for hi6220 SoC.

[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 + drivers/iommu/Makefile | 1 +

[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 +