Request VFIO inclusion in linux-next

2012-06-25 Thread Alex Williamson
Hi, VFIO has been kicking around for well over a year now and has been posted numerous times for review. The pre-requirements are finally available in linux-next (or will be in the 20120626 build) so I'd like to request a new branch be included in linux-next with a goal of being accepted into v3.

Re: atomic context for iommu_map call

2012-06-25 Thread Chris Wright
* Alexandra N. Kossovsky (alexandra.kossov...@oktetlabs.ru) wrote: > It is not clear from the documentation if iommu_map()/iommu_unmap() > functions may be called from atomic context. > In case of Intel IOMMU, it works; in case of AMD IOMMU, it does not. > > Was it done by purpose? May I propose

atomic context for iommu_map call

2012-06-25 Thread Alexandra N. Kossovsky
Hello. It is not clear from the documentation if iommu_map()/iommu_unmap() functions may be called from atomic context. In case of Intel IOMMU, it works; in case of AMD IOMMU, it does not. Was it done by purpose? May I propose a patch for AMD IOMMU replacing GFP_KERNEL by GFP_ATOMIC to make thin

Re: [v3 1/5] iommu: Add DMA window parser, of_get_dma_window()

2012-06-25 Thread Joerg Roedel
On Mon, Jun 25, 2012 at 02:23:54PM +0300, Hiroshi DOYU wrote: > This code was based on: > "arch/microblaze/kernel/prom_parse.c" > "arch/powerpc/kernel/prom_parse.c" > > Can replace "of_parse_dma_window()" in the above. This supports > different formats flexibly. "prefix" can be configured

Re: [PATCH v2 0/7] IOMMU: Groups support

2012-06-25 Thread Joerg Roedel
On Wed, May 30, 2012 at 02:18:29PM -0600, Alex Williamson wrote: > Alex Williamson (7): > iommu: Remove group_mf > intel-iommu: Make use of DMA quirks and ACS checks in IOMMU groups > amd_iommu: Make use of DMA quirks and ACS checks in IOMMU groups > intel-iommu: Support IOM

[v3 5/5] iommu/tegra: smmu: Fix uninitialized var warning

2012-06-25 Thread Hiroshi DOYU
From: Hiroshi Doyu For the compiler warning, uninitizlized var when getting value by a pointer. Signed-off-by: Hiroshi DOYU --- drivers/iommu/tegra-smmu.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index c

[v3 4/5] iommu/tegra: smmu: Remove unnecessary cleanups with devm_*()

2012-06-25 Thread Hiroshi DOYU
From: Hiroshi Doyu Remove unnecessary cleanup procedures with devm_*() functions. Signed-off-by: Hiroshi DOYU Acked-by: Stephen Warren --- drivers/iommu/tegra-smmu.c | 37 ++--- 1 files changed, 6 insertions(+), 31 deletions(-) diff --git a/drivers/iommu/teg

[v3 3/5] iommu/tegra: smmu: Simplify allocation at once

2012-06-25 Thread Hiroshi DOYU
From: Hiroshi Doyu To simplify the code, alloc necessary data at once. Signed-off-by: Hiroshi DOYU Acked-by: Stephen Warren --- drivers/iommu/tegra-smmu.c | 29 + 1 files changed, 9 insertions(+), 20 deletions(-) diff --git a/drivers/iommu/tegra-smmu.c b/drivers

[v3 2/5] iommu/tegra: smmu: Add device tree support for SMMU

2012-06-25 Thread Hiroshi DOYU
From: Hiroshi Doyu The necessary info is expected to pass from DT. For more precise resource reservation, there shouldn't be any overlapping of register range between SMMU and MC. SMMU register offset needs to be calculated correctly, based on its register bank. Signed-off-by: Hiroshi DOYU Ack

[v3 1/5] iommu: Add DMA window parser, of_get_dma_window()

2012-06-25 Thread Hiroshi DOYU
This code was based on: "arch/microblaze/kernel/prom_parse.c" "arch/powerpc/kernel/prom_parse.c" Can replace "of_parse_dma_window()" in the above. This supports different formats flexibly. "prefix" can be configured if any. "busno" and "index" are optionally specified. Set NULL and 0 if no

[PATCH] iommu/amd: Initialize dma_ops for hotplug and sriov devices

2012-06-25 Thread Joerg Roedel
When a device is added to the system at runtime the AMD IOMMU driver initializes the necessary data structures to handle translation for it. But it forgets to change the per-device dma_ops to point to the AMD IOMMU driver. So mapping actually never happens and all DMA accesses end in an IO_PAGE_FAU

Re: [v2 1/5] iommu: Add DMA window parser, of_get_dma_window()

2012-06-25 Thread joerg.roe...@amd.com
On Mon, Jun 25, 2012 at 08:15:43AM +0300, Hiroshi Doyu wrote: > On Thu, 21 Jun 2012 18:18:59 +0200 > Stephen Warren wrote: > > > On 06/21/2012 02:30 AM, Hiroshi Doyu wrote: > > > From: Hiroshi DOYU > > > > > > This code was based on: > > > "arch/microblaze/kernel/prom_parse.c" > > > "ar