Re: [PATCH v5 3/6] iommu: add ARM short descriptor page table allocator

2015-11-06 Thread Yong Wu
On Fri, 2015-10-09 at 10:23 +0800, Yong Wu wrote: > This patch is for ARM Short Descriptor Format. > > Signed-off-by: Yong Wu > --- Hi Will, Robin, Is there any comment about this patch? As our project request, We are going to prepare the next version. Thanks very

[Patch v2 6/9] iommu/amd: Add functions copy_command_buffer/copy_event_buffer

2015-11-06 Thread Baoquan He
Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu_init.c | 39 +++ drivers/iommu/amd_iommu_types.h | 1 + 2 files changed, 40 insertions(+) diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c index

[Patch v2 2/9] iommu/amd: Detect pre enabled translation

2015-11-06 Thread Baoquan He
Add functions to check whether translation is already enabled in IOMMU. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu_init.c | 26 ++ drivers/iommu/amd_iommu_proto.h | 4 2 files changed, 30 insertions(+) diff --git

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

2015-11-06 Thread Will Deacon
On Wed, Nov 04, 2015 at 10:48:28AM +0800, Peng Fan wrote: > On Tue, Nov 03, 2015 at 01:17:34PM +, Will Deacon wrote: > >On Tue, Nov 03, 2015 at 08:59:17PM +0800, Peng Fan wrote: > >> iommu_group_alloc will initialize the reference count for group to 1. > >> iommu_group_add_device also increase

[PATCH] iommu/vt-d: Add support for multiple DMA aliases

2015-11-06 Thread Jacek Lawrynowicz
This patch solves IOMMU support issues with PCIe non-transparent bridges that use Requester ID look-up tables (LUT), e.g. PEX8733. Before exiting the bridge, packet's RID is rewritten according to LUT programmed by a driver. Modified packets are then passed to a destination bus and processed

Re: [RFC] Independent use of IOMMU groups

2015-11-06 Thread Alex Williamson
On Fri, 2015-11-06 at 13:29 +0100, Joerg Roedel wrote: > Hi Alex, > > On Thu, Nov 05, 2015 at 10:54:39AM -0700, Alex Williamson wrote: > > We have a couple things in-flight that are trying to make use of IOMMU > > groups, independent of the rest of the IOMMU API. One is the proposed > > VFIO

[PATCH] iommu/s390: fix sparse warnings

2015-11-06 Thread Sebastian Ott
Fix these warnings: CHECK drivers/iommu/s390-iommu.c drivers/iommu/s390-iommu.c:52:21: warning: symbol 's390_domain_alloc' was not declared. Should it be static? drivers/iommu/s390-iommu.c:76:6: warning: symbol 's390_domain_free' was not declared. Should it be static? Signed-off-by:

Re: [Patch v2 0/9] Fix AMD IOMMU faults in kdump kernel

2015-11-06 Thread Baoquan He
The kdump kernel boog log is attached here. On 11/06/15 at 08:10pm, Baoquan He wrote: > This is v2 draft patch set. It mainly functions as the following steps: > > 1. Checking if it's in kdump kernel and previously enabled > 2. If yes do below operatons: > a. Do not disable amd iommu and do

Re: [RFC] Independent use of IOMMU groups

2015-11-06 Thread Joerg Roedel
Hi Alex, On Thu, Nov 05, 2015 at 10:54:39AM -0700, Alex Williamson wrote: > We have a couple things in-flight that are trying to make use of IOMMU > groups, independent of the rest of the IOMMU API. One is the proposed > VFIO No-IOMMU hack that will create an IOMMU group for a non-IOMMU > backed

[Patch v2 5/9] iommu/amd: Add function copy_dev_tables

2015-11-06 Thread Baoquan He
Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu_init.c | 36 drivers/iommu/amd_iommu_types.h | 2 ++ 2 files changed, 38 insertions(+) diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c index

[Patch v2 0/9] Fix AMD IOMMU faults in kdump kernel

2015-11-06 Thread Baoquan He
This is v2 draft patch set. It mainly functions as the following steps: 1. Checking if it's in kdump kernel and previously enabled 2. If yes do below operatons: a. Do not disable amd iommu and do not touch dev tables before coping old dev tables b. Copy dev table from old kernel and set

[Patch v2 7/9] iommu/amd: copy old tables and do not update dev tables before driver init

2015-11-06 Thread Baoquan He
Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu.c | 19 +-- drivers/iommu/amd_iommu_init.c | 71 -- 2 files changed, 49 insertions(+), 41 deletions(-) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c

[Patch v2 1/9] iommu/amd: Use standard bitmap operation to set bitmap

2015-11-06 Thread Baoquan He
It will be more readable then the old setting. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu.c | 2 +- drivers/iommu/amd_iommu_init.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c

[Patch v2 4/9] iommu/amd: add copy_irq_table function

2015-11-06 Thread Baoquan He
Here old irq tables are ioremapped and not iounmapped for now. Maybe it can be adjusted later to use a better way. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu_init.c | 30 ++ drivers/iommu/amd_iommu_types.h | 1 + 2 files changed, 31

[Patch v2 8/9] iommu/amd: Do not update the information of domain to devtables before device driver init

2015-11-06 Thread Baoquan He
Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 90c6205..0ac6799 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@

[Patch v2 3/9] iommu/amd: make several functions globally seen

2015-11-06 Thread Baoquan He
They will be called later when copy old dev/irq tables. It's better to use them then call iommu_flush_all_caches() since iommu_flush_all_caches() will iterate many empty table entries. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu.c | 4 ++--

[Patch v2 9/9] iommu/amd: Clear the iommu pre enabled setting

2015-11-06 Thread Baoquan He
Now any change of domain can be updated to dev tables and io page table Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c index d978f80..76bec94

Re: [PATCH 4/7] mfd: hi655x: Add hi665x pmic driver

2015-11-06 Thread Andy Shevchenko
On Thu, Nov 5, 2015 at 3:34 PM, Chen Feng wrote: > Add pmic driver to support hisilicon hi665x pmic. > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include >

Re: [PATCH v5 3/6] iommu: add ARM short descriptor page table allocator

2015-11-06 Thread Will Deacon
On Fri, Nov 06, 2015 at 04:42:52PM +0800, Yong Wu wrote: > On Fri, 2015-10-09 at 10:23 +0800, Yong Wu wrote: > > This patch is for ARM Short Descriptor Format. > > > > Signed-off-by: Yong Wu > > --- > > Hi Will, Robin, >Is there any comment about this patch? >As

Re: [PATCH 6/7] regulator: hisilicon: Add hi655x pmic voltage regulator driver

2015-11-06 Thread kbuild test robot
Hi Chen, [auto build test ERROR on regulator/for-next] [also build test ERROR on v4.3 next-20151106] url: https://github.com/0day-ci/linux/commits/Chen-Feng/Add-Support-for-Hi6220-PMIC-Hi6553-MFD-Core/20151105-215603 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie

Re: [PATCH 6/7] regulator: hisilicon: Add hi655x pmic voltage regulator driver

2015-11-06 Thread Andy Shevchenko
On Thu, Nov 5, 2015 at 3:34 PM, Chen Feng wrote: > Add driver support for HiSilicon Hi655x voltage regulators. > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include >