RE: [RFC PATCH 0/2] VFIO no-iommu

2015-10-11 Thread Varun Sethi
Hi Alex, Thanks for the patch Alex. This would also require support in Qemu to expose the physical address to the VM. Are you looking at that part as well? Regards Varun -Original Message- From: iommu-boun...@lists.linux-foundation.org [mailto:iommu-boun...@lists.linux-foundation.org] O

RE: [PATCH 2/3] Docs: dt: Add PCI MSI map bindings

2015-08-08 Thread Varun Sethi
.@lists.infradead.org; > majun...@huawei.com; Yoder Stuart-B08248 > Subject: Re: [PATCH 2/3] Docs: dt: Add PCI MSI map bindings > > On Wed, Aug 05, 2015 at 05:39:33PM +0100, Varun Sethi wrote: > > Hi Mark > > Thanks for the patch. Please find my comment inline. >

RE: [PATCH 2/3] Docs: dt: Add PCI MSI map bindings

2015-08-05 Thread Varun Sethi
Hi Mark Thanks for the patch. Please find my comment inline. Regards Varun > -Original Message- > From: iommu-boun...@lists.linux-foundation.org [mailto:iommu- > boun...@lists.linux-foundation.org] On Behalf Of Mark Rutland > Sent: Thursday, July 23, 2015 10:23 PM > To: devicet...@vger.ke

RE: [PATCH 15/16] iommu/fsl: Make use of domain_alloc and domain_free

2015-04-12 Thread Varun Sethi
gt; .capable= fsl_pamu_capable, > - .domain_init= fsl_pamu_domain_init, > - .domain_destroy = fsl_pamu_domain_destroy, > + .domain_alloc = fsl_pamu_domain_alloc, > + .domain_free= fsl_pamu_domain_free, > .attach_dev = fsl_pamu_attach_device, > .detach_dev = fsl_pamu_detach_device, > .domain_window_enable = fsl_pamu_window_enable, diff --git > a/drivers/iommu/fsl_pamu_domain.h b/drivers/iommu/fsl_pamu_domain.h > index c90293f..f2b0f74 100644 > --- a/drivers/iommu/fsl_pamu_domain.h > +++ b/drivers/iommu/fsl_pamu_domain.h > @@ -71,7 +71,7 @@ struct fsl_dma_domain { > u32 stash_id; > struct pamu_stash_attribute dma_stash; > u32 snoop_id; > - struct iommu_domain *iommu_domain; > + struct iommu_domain iommu_domain; > spinlock_t domain_lock; > }; Acked-by: Varun Sethi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

RE: [PATCH 3.14 104/238] iommu/fsl: Fix warning resulting from adding PCI device twice

2014-10-04 Thread Varun Sethi
any objections, please let me know. > > -- > > From: Varun Sethi > > commit 5a9137a66b521d667236e95c307b92af532fe600 upstream. > > iommu_group_get_for_dev determines the iommu group for the PCI device > and adds the device to the group. > > In th

RE: [PATCH 05/12] iommu/fsl: Convert to iommu_capable() API function

2014-09-09 Thread Varun Sethi
ommu_capable() API function > > From: Joerg Roedel > > Cc: Varun Sethi > Signed-off-by: Joerg Roedel > --- > drivers/iommu/fsl_pamu_domain.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/iommu/fsl_pamu_domain.c > b/dri

[PATCH v2] iommu/fsl: Fix warning resulting from adding PCI device twice

2014-09-04 Thread Varun Sethi
01fe047db0] [c0002078] .kernel_init+0x1c/0xfa4 [c001fe047e30] [c884] .ret_from_kernel_thread+0x58/0xd4 Instruction dump: 7c7f1b79 4182001c 7fe4fb78 7f83e378 38a01000 4bffc905 6000 7c641b78 e87e8008 7fa5eb78 48482ff5 6000 <0fe0> 7fe3fb78 4bf7bd39 6000 Signed-off

RE: [PATCH] iommu/fsl: Fix warning resulting from adding PCI device twice

2014-09-04 Thread Varun Sethi
el@vger.kernel.org > Subject: Re: [PATCH] iommu/fsl: Fix warning resulting from adding PCI device > twice > > On Thu, Sep 04, 2014 at 11:33:42AM +0530, Varun Sethi wrote: > > + if (!iommu_group_get(dev)) > > + ret = iommu_group_add_device(group, dev); > > &g

[PATCH] iommu/fsl: Fix warning resulting from adding PCI device twice

2014-09-03 Thread Varun Sethi
01fe047db0] [c0002078] .kernel_init+0x1c/0xfa4 [c001fe047e30] [c884] .ret_from_kernel_thread+0x58/0xd4 Instruction dump: 7c7f1b79 4182001c 7fe4fb78 7f83e378 38a01000 4bffc905 6000 7c641b78 e87e8008 7fa5eb78 48482ff5 6000 <0fe0> 7fe3fb78 4bf7bd39 6000 Signed-off

RE: [PATCH 0/3] iommu/fsl: Fixes for the PAMU driver.

2014-07-07 Thread Varun Sethi
.com > Subject: Re: [PATCH 0/3] iommu/fsl: Fixes for the PAMU driver. > > On Tue, Jun 24, 2014 at 07:27:14PM +0530, Varun Sethi wrote: > > This patch set contains fixes for the PAMU driver. > > The patches are based on 3.16-rc1. > > > > Varun Sethi (3): > >

RE: [PATCH 2/3] iommu/fsl: Fix the device domain attach condition.

2014-07-04 Thread Varun Sethi
bject: Re: [PATCH 2/3] iommu/fsl: Fix the device domain attach > condition. > > Hmm, > > On Tue, Jun 24, 2014 at 07:27:16PM +0530, Varun Sethi wrote: > > - old_domain_info = find_domain(dev); > > + old_domain_info = dev->archdata.iommu_domain; > > if

RE: [PATCH 1/3] iommu/fsl: Fix PAMU window size check.

2014-07-04 Thread Varun Sethi
bject: Re: [PATCH 1/3] iommu/fsl: Fix PAMU window size check. > > On Tue, Jun 24, 2014 at 07:27:15PM +0530, Varun Sethi wrote: > > /* window size is 2^(WSE+1) bytes */ > > - return __ffs(addrspace_size) - 1; > > + return fls64(addrspace_size) - 2; > > This look

RE: [PATCH v3 02/10] devicetree: Add generic IOMMU device tree bindings

2014-07-03 Thread Varun Sethi
> -Original Message- > From: iommu-boun...@lists.linux-foundation.org [mailto:iommu- > boun...@lists.linux-foundation.org] On Behalf Of Thierry Reding > Sent: Friday, June 27, 2014 2:20 AM > To: Rob Herring; Pawel Moll; Mark Rutland; Ian Campbell; Kumar Gala; > Stephen Warren; Arnd Bergma

RE: [PATCH 0/3] iommu: Expose IOMMU information in sysfs

2014-07-03 Thread Varun Sethi
Hi Alex, This is on my todo list. I have a requirement for adding sysfs support for PAMU. Regards Varun > -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Thursday, July 03, 2014 9:39 PM > To: Joerg Roedel > Cc: io...@lists.linux-foundation.org; dw...@

RE: [RFC 01/10] iommu: Add IOMMU device registry

2014-07-03 Thread Varun Sethi
> -Original Message- > From: iommu-boun...@lists.linux-foundation.org [mailto:iommu- > boun...@lists.linux-foundation.org] On Behalf Of Thierry Reding > Sent: Friday, June 27, 2014 12:29 PM > To: Rob Herring; Pawel Moll; Mark Rutland; Ian Campbell; Kumar Gala; > Stephen Warren; Arnd Bergm

RE: [PATCH 1/3] iommu/fsl: Fix PAMU window size check.

2014-07-02 Thread Varun Sethi
.org; alex.william...@redhat.com > Subject: Re: [PATCH 1/3] iommu/fsl: Fix PAMU window size check. > > On 06/24/2014 08:57 AM, Varun Sethi wrote: > > is_power_of_2 requires an unsigned long parameter which would lead to > > truncation of 64 bit values on 32 bit architectures.

RE: [PATCH 1/1] iommu/fsl_pamu: Remove unnecessary null test before kfree

2014-06-29 Thread Varun Sethi
dma_domain->win_arr = kzalloc(sizeof(struct dma_window) * > w_count, GFP_ATOMIC); > if (!dma_domain->win_arr) { Acked-by: Varun Sethi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

[PATCH 2/3] iommu/fsl: Fix the device domain attach condition.

2014-06-24 Thread Varun Sethi
-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH 3/3] iommu/fsl: Fix the error condition during iommu group

2014-06-24 Thread Varun Sethi
Earlier PTR_ERR was being returned even if group was set to null. Now, we explicitly set an ERR_PTR value in case the group pointer is NULL. Signed-off-by: Varun Sethi --- drivers/iommu/fsl_pamu_domain.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 1/3] iommu/fsl: Fix PAMU window size check.

2014-06-24 Thread Varun Sethi
is_power_of_2 requires an unsigned long parameter which would lead to truncation of 64 bit values on 32 bit architectures. __ffs also expects an unsigned long parameter thus won't work for 64 bit values on 32 bit architectures. Signed-off-by: Varun Sethi --- drivers/iommu/fsl_p

[PATCH 0/3] iommu/fsl: Fixes for the PAMU driver.

2014-06-24 Thread Varun Sethi
This patch set contains fixes for the PAMU driver. The patches are based on 3.16-rc1. Varun Sethi (3): Fix PAMU window size check. Fix the device domain attach condition. Fix the error condition during iommu group creation. drivers/iommu/fsl_pamu.c|8 drivers/iommu

RE: [PATCH v2] devicetree: Add generic IOMMU device tree bindings

2014-06-17 Thread Varun Sethi
ave P Martin; linux-arm- > ker...@lists.infradead.org > Subject: Re: [PATCH v2] devicetree: Add generic IOMMU device tree > bindings > > On Tue, Jun 17, 2014 at 11:26:48AM +0100, Varun Sethi wrote: > > > The way we generally thought it would work was something like > > > this: >

RE: [PATCH v2] devicetree: Add generic IOMMU device tree bindings

2014-06-17 Thread Varun Sethi
> -Original Message- > From: Yoder Stuart-B08248 > Sent: Tuesday, June 17, 2014 12:24 AM > To: Will Deacon > Cc: Sethi Varun-B16395; Thierry Reding; Mark Rutland; > devicet...@vger.kernel.org; linux-samsung-...@vger.kernel.org; Pawel > Moll; Arnd Bergmann; Ian Campbell; Grant Grundler; St

RE: [PATCH v2] devicetree: Add generic IOMMU device tree bindings

2014-06-05 Thread Varun Sethi
> -Original Message- > From: iommu-boun...@lists.linux-foundation.org [mailto:iommu- > boun...@lists.linux-foundation.org] On Behalf Of Will Deacon > Sent: Wednesday, June 04, 2014 10:12 PM > To: Thierry Reding > Cc: Mark Rutland; devicet...@vger.kernel.org; linux-samsung- > s...@vger.ker

RE: [RFC PATCH v6 04/20] iommu/arm-smmu: add capability IOMMU_CAP_INTR_REMAP

2014-06-05 Thread Varun Sethi
> -Original Message- > From: iommu-boun...@lists.linux-foundation.org [mailto:iommu- > boun...@lists.linux-foundation.org] On Behalf Of Antonios Motakis > Sent: Thursday, June 05, 2014 10:33 PM > To: alex.william...@redhat.com; kvm...@lists.cs.columbia.edu; > io...@lists.linux-foundation.

RE: [PATCH v4 13/16] iommu/fsl: Use iommu_group_get_for_dev() for IOMMU groups

2014-05-30 Thread Varun Sethi
@google.com; Sethi Varun-B16395; eddy0...@gmail.com > Subject: [PATCH v4 13/16] iommu/fsl: Use iommu_group_get_for_dev() for > IOMMU groups > > Drop custom code and use IOMMU provided grouping support for PCI. > > Signed-off-by: Alex Williamson > Cc: Varun Sethi > ---

RE: [PATCH] iommu: fsl_pamu.c: Fix for possible null pointer dereference

2014-05-21 Thread Varun Sethi
pointing out the issue. > > > > > Was largely found by using a static code analysis program called > cppcheck. > > > > Signed-off-by: Rickard Strandqvist > > > > Reviewed-by: Bharat Bhushan Acknowledged-by: Varun Sethi > > --- > > drivers/iommu

RE: [PATCH 1/4] vfio/iommu_type1: Multi-IOMMU domain support

2014-03-18 Thread Varun Sethi
played to bring > the IOMMU pagetables up to the state of the current container. And of > course, DMA mapping and unmapping automatically traverse all of the > configured IOMMU domains. > > Signed-off-by: Alex Williamson > Cc: Varun Sethi > --- > drivers/vfio/vfio_iommu_

RE: your mail

2014-02-25 Thread Varun Sethi
> -Original Message- > From: iommu-boun...@lists.linux-foundation.org [mailto:iommu- > boun...@lists.linux-foundation.org] On Behalf Of Will Deacon > Sent: Monday, February 24, 2014 10:59 PM > To: srikanth TS > Cc: io...@lists.linux-foundation.org; sungjinn.ch...@samsung.com; linux- > ker

RE: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-27 Thread Varun Sethi
mu_type1: Multi-IOMMU domain support > > On Tue, Jan 21, 2014 at 2:30 AM, Varun Sethi > wrote: > > > > > >> -Original Message- > >> From: Alex Williamson [mailto:alex.william...@redhat.com] > >> Sent: Monday, January 20, 2014 9:51 PM > &g

RE: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-20 Thread Varun Sethi
MMU domain support > > On Mon, 2014-01-20 at 14:45 +, Varun Sethi wrote: > > > > > -Original Message- > > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > > Sent: Saturday, January 18, 2014 2:06 AM > > > To: Sethi Var

RE: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-20 Thread Varun Sethi
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Saturday, January 18, 2014 2:06 AM > To: Sethi Varun-B16395 > Cc: io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org > Subject: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support >

RE: [RFC][PATCH] Remove bus dependency for iommu_domain_alloc.

2014-01-17 Thread Varun Sethi
Remove bus dependency for iommu_domain_alloc. > > On Sat, 2014-01-18 at 01:00 +0530, Varun Sethi wrote: > > This patch attempts to remove iommu_domain_alloc function's dependency > on the bus type. > > This dependency is quiet restrictive in case of vfio, where it

[RFC][PATCH] Remove bus dependency for iommu_domain_alloc.

2014-01-17 Thread Varun Sethi
that there is a single iommu for all bus types on the system. We maintain a list of bus types (for which iommu ops are registered). In the iommu_domain_alloc function we ensure that all bus types correspond to the same set of iommu operations. Signed-off-by: Varun Sethi --- arch/arm/mm/dma

RE: [PATCH v11] PPC: POWERNV: move iommu_add_device earlier

2013-12-15 Thread Varun Sethi
> -Original Message- > From: Linuxppc-dev [mailto:linuxppc-dev- > bounces+varun.sethi=freescale@lists.ozlabs.org] On Behalf Of Alexey > Kardashevskiy > Sent: Thursday, December 12, 2013 1:24 PM > To: linuxppc-...@lists.ozlabs.org > Cc: Alexey Kardashevskiy; Alex Graf; Bhushan Bharat-R

RE: [PATCH 2/3 v2] iommu/fsl: Enable default DMA window for PCIe devices

2013-12-03 Thread Varun Sethi
.org; Yoder Stuart-B08248; > Wood Scott-B07421; Bhushan Bharat-R65777 > Subject: Re: [PATCH 2/3 v2] iommu/fsl: Enable default DMA window for PCIe > devices > > On Wed, 2013-10-16 at 16:53 +0530, Varun Sethi wrote: > > Once the PCIe device assigned to a guest VM (via VFIO) gets d

[PATCH 0/3 v2] iommu/fsl: PAMU driver fixes.

2013-10-16 Thread Varun Sethi
The last patch adds the maintainer entry for the Freescale PAMU driver. Varun Sethi (3): iommu/fsl: Factor out PCI specific code. iommu/fsl: Enable default DMA window for PCIe devices once detached Add maintainers entry for the Freescale PAMU driver. MAINTAINERS |

[PATCH 1/3 v2] iommu/fsl: Factor out PCI specific code.

2013-10-16 Thread Varun Sethi
Factor out PCI specific code in the PAMU driver. Signed-off-by: Varun Sethi --- drivers/iommu/fsl_pamu_domain.c | 88 +++ 1 file changed, 43 insertions(+), 45 deletions(-) diff --git a/drivers/iommu/fsl_pamu_domain.c b/drivers/iommu/fsl_pamu_domain.c index

[PATCH 3/3] Add maintainers entry for the Freescale PAMU driver.

2013-10-16 Thread Varun Sethi
Add maintainers entry for Freescale PAMU driver. Signed-off-by: Varun Sethi --- MAINTAINERS |7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8a0cbf3..5b6ea5c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3511,6 +3511,13 @@ S: Maintained F

[PATCH 2/3 v2] iommu/fsl: Enable default DMA window for PCIe devices

2013-10-16 Thread Varun Sethi
indow corresponding to the device and subsequently enabling the PAMU table entry. Before we enable the entry, we ensure that the device's bus master capability is disabled (device quiesced). Signed-off-by: Varun Sethi --- drivers/iommu/fsl_pamu.c

[PATCH 3/3] Add maintainers entry for the Freescale PAMU driver.

2013-10-12 Thread Varun Sethi
Signed-off-by: Varun Sethi --- MAINTAINERS |7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8a0cbf3..5b6ea5c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3511,6 +3511,13 @@ S: Maintained F: drivers/net/ethernet/freescale/fs_enet/ F

[PATCH 2/3] iommu/fsl: Enable default DMA window for PCIe devices once detached

2013-10-12 Thread Varun Sethi
fault DMA window corresponding to the device and subsequently enabling the PAMU table entry. Before we enable the entry, we ensure that the device's bus master capability is disabled (device quiesced). Signed-off-by: Varun Sethi --- drivers/iommu/fsl_pamu.c

[PATCH 1/3] iommu/fsl: Factor out PCI specific code.

2013-10-12 Thread Varun Sethi
Factor out PCI specific code in the PAMU driver. Signed-off-by: Varun Sethi --- drivers/iommu/fsl_pamu_domain.c | 81 +++ 1 file changed, 40 insertions(+), 41 deletions(-) diff --git a/drivers/iommu/fsl_pamu_domain.c b/drivers/iommu/fsl_pamu_domain.c index

[PATCH 0/3] iommu/fsl: PAMU driver fixes.

2013-10-12 Thread Varun Sethi
The last patch adds the maintainer entry for the Freescale PAMU driver. Varun Sethi (3): iommu/fsl: Factor out PCI specific code. iommu/fsl: Enable default DMA window for PCIe devices once detached Add maintainers entry for the Freescale PAMU driver. MAINTAINERS |

[PATCH 2/2] iommu/fsl: Enable default DMA window for PCIe devices once detached

2013-10-09 Thread Varun Sethi
indow corresponding to the device and subsequently enabling the PAMU table entry. Before we enable the entry, we ensure that the device's bus master capability is disabled (device quiesced). Signed-off-by: Varun Sethi --- drivers/iommu/fsl_pamu.c

[PATCH 1/2] iommu/fsl: Factor out PCI specific code.

2013-10-09 Thread Varun Sethi
Factor out PCI specific code in the PAMU driver. Signed-off-by: Varun Sethi --- drivers/iommu/fsl_pamu_domain.c | 81 +++ 1 file changed, 40 insertions(+), 41 deletions(-) diff --git a/drivers/iommu/fsl_pamu_domain.c b/drivers/iommu/fsl_pamu_domain.c index

[PATCH 1/3] powerpc: Add iommu domain pointer to device archdata

2013-07-14 Thread Varun Sethi
Add an iommu domain pointer to device (powerpc) archdata. Devices are attached to iommu domains and this pointer provides a mechanism to correlate between a device and the associated iommu domain. This field is set when a device is attached to a domain. Signed-off-by: Varun Sethi Acked-by

[PATCH 2/3 v19] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-07-14 Thread Varun Sethi
check for PAMUV1 specific constraints. Signed-off-by: Varun Sethi --- v19: - rebased to 3.11-rc1 - no changes since v16 v16 changes: - rebased to 3.10-rc6 v15 changes: - Moved fsl_pamu_stash.h under arch/powerpc/include/asm. v14 changes: - Add FSL prefix to PAMU attributes. v13 changes: - created a

[PATCH 1/3 v11] powerpc: Add iommu domain pointer to device archdata

2013-06-20 Thread Varun Sethi
Add an iommu domain pointer to device (powerpc) archdata. Devices are attached to iommu domains and this pointer provides a mechanism to correlate between a device and the associated iommu domain. This field is set when a device is attached to a domain. Signed-off-by: Varun Sethi Acked-by

[PATCH 2/3 v16] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-06-20 Thread Varun Sethi
check for PAMUV1 specific constraints. Signed-off-by: Varun Sethi --- v16 changes: - rebased to 3.10-rc6 v15 changes: - Moved fsl_pamu_stash.h under arch/powerpc/include/asm. v14 changes: - Add FSL prefix to PAMU attributes. v13 changes: - created a new file include/linux/fsl_pamu_stash.h for stash

[PATCH 1/2 v15] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-04-24 Thread Varun Sethi
check for PAMUV1 specific constraints. Signed-off-by: Varun Sethi --- v15 changes: - Moved fsl_pamu_stash.h under arch/powerpc/include/asm. v14 changes: - Add FSL prefix to PAMU attributes. v13 changes: - created a new file include/linux/fsl_pamu_stash.h for stash attributes. v12 changes: - Moved

[PATCH 1/3 v2] iommu: Move swap_pci_ref function to pci.h.

2013-04-22 Thread Varun Sethi
implementation can be shared across various IOMMU drivers. Signed-off-by: Varun Sethi --- v2 changes: - created a new file drivers/iommu/pci.h. drivers/iommu/amd_iommu.c |7 +-- drivers/iommu/intel-iommu.c |7 +-- drivers/iommu/pci.h | 29 + 3 files

[PATCH 2/3 v14] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-04-22 Thread Varun Sethi
check for PAMUV1 specific constraints. Signed-off-by: Varun Sethi --- v14 changes: - Add FSL prefix to PAMU attributes. v13 changes: - created a new file include/linux/fsl_pamu_stash.h for stash attributes. v12 changes: - Moved PAMU specifc stash ids and structures to PAMU header file. - no change in

[PATCH 1/3 v2] iommu: Move swap_pci_ref function to pci.h.

2013-04-21 Thread Varun Sethi
implementation can be shared across various IOMMU drivers. Signed-off-by: Varun Sethi --- v2 changes: - created a new file drivers/iommu/pci.h. drivers/iommu/amd_iommu.c |7 +-- drivers/iommu/intel-iommu.c |7 +-- drivers/iommu/pci.h | 29 + 3 files

[PATCH 2/3 v13] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-04-21 Thread Varun Sethi
check for PAMUV1 specific constraints. Signed-off-by: Varun Sethi --- v13 changes: - created a new file include/linux/fsl_pamu_stash.h for stash attributes. v12 changes: - Moved PAMU specifc stash ids and structures to PAMU header file. - no change in v11. - no change in v10. include/linux

[PATCH 2/3 v12] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-04-14 Thread Varun Sethi
check for PAMUV1 specific constraints. Signed-off-by: Varun Sethi --- -v12 changes: - Moved PAMU specifc stash ids and structures to PAMU header file. - no change in v11. - no change in v10. include/linux/iommu.h | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git

[PATCH 1/3] iommu: Move swap_pci_ref function to pci.h.

2013-04-14 Thread Varun Sethi
various IOMMU drivers. Signed-off-by: Varun Sethi --- drivers/iommu/amd_iommu.c |6 -- drivers/iommu/intel-iommu.c |6 -- include/linux/pci.h |8 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu

[PATCH 1/5 v11] iommu/fsl: Make iova dma_addr_t in the iommu_iova_to_phys API.

2013-03-28 Thread Varun Sethi
This is required in case of PAMU, as it can support a window size of up to 64G (even on 32bit). Signed-off-by: Varun Sethi --- changes in v11: - Made iova dma_addr_t instead of u64. - no change in v10. drivers/iommu/amd_iommu.c |2 +- drivers/iommu/exynos-iommu.c |2 +- drivers

[PATCH 4/5 v11] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-03-28 Thread Varun Sethi
check for PAMUV1 specific constraints. Signed-off-by: Varun Sethi --- - no change in v11. - no change in v10. include/linux/iommu.h | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 2727810

[PATCH 2/5 v11] powerpc: Add iommu domain pointer to device archdata

2013-03-28 Thread Varun Sethi
Add an iommu domain pointer to device (powerpc) archdata. Devices are attached to iommu domains and this pointer provides a mechanism to correlate between a device and the associated iommu domain. This field is set when a device is attached to a domain. Signed-off-by: Varun Sethi --- - no

[PATCH 3/5 v11] iommu/fsl: Add the window permission flag as a parameter to iommu_window_enable API.

2013-03-28 Thread Varun Sethi
Each iommu window can have access permissions associated with it. Extended the window_enable API to incorporate window access permissions. In case of PAMU each window can have its specific set of permissions. Signed-off-by: Varun Sethi --- - no change in v11. - no change in v10. drivers/iommu

[PATCH 0/5 v11] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2013-03-28 Thread Varun Sethi
attributes for FSL PAMU driver. 5. PAMU driver and IOMMU API implementation. This patch set is based on the next branch Joerg's iommu git tree. Varun Sethi (5): Make iova dma_addr_t in the iommu_iova_to_phys API. Add iommu domain pointer to device archdata Add the window permission flag

[PATCH 3/5 v10] iommu/fsl: Add the window permission flag as a parameter to iommu_window_enable API.

2013-03-22 Thread Varun Sethi
Each iommu window can have access permissions associated with it. Extended the window_enable API to incorporate window access permissions. In case of PAMU each window can have its specific set of permissions. Signed-off-by: Varun Sethi --- - no change in v10. drivers/iommu/iommu.c |5

[PATCH 4/5 v10] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-03-22 Thread Varun Sethi
check for PAMUV1 specific constraints. Signed-off-by: Varun Sethi --- - no change in v10. include/linux/iommu.h | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 02ac111..1db9fd3 100644

[PATCH 1/5 v10] iommu/fsl: Make iova u64 in the iommu_iova_to_phys API.

2013-03-22 Thread Varun Sethi
This is required in case of PAMU, as it can support a window size of up to 64G (even on 32bit). Signed-off-by: Varun Sethi --- - no change in v10. drivers/iommu/amd_iommu.c |2 +- drivers/iommu/exynos-iommu.c |2 +- drivers/iommu/intel-iommu.c|2 +- drivers/iommu/iommu.c

[PATCH 2/5 v10] powerpc: Add iommu domain pointer to device archdata

2013-03-22 Thread Varun Sethi
Add an iommu domain pointer to device (powerpc) archdata. Devices are attached to iommu domains and this pointer provides a mechanism to correlate between a device and the associated iommu domain. This field is set when a device is attached to a domain. Signed-off-by: Varun Sethi --- - no

[PATCH 0/5 v10] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2013-03-22 Thread Varun Sethi
for FSL PAMU driver. 5. PAMU driver and IOMMU API implementation. This patch set is based on the master branch (3.9-rc2) of Linus Torvald's git tree. Varun Sethi (5): Make iova u64 in the iommu_iova_to_phys API. Add iommu domain pointer to device archdata Add the window permission flag

[PATCH 4/5 v9] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-03-13 Thread Varun Sethi
check for PAMUV1 specific constraints. Signed-off-by: Varun Sethi --- include/linux/iommu.h | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 02ac111..1db9fd3 100644 --- a/include/linux

[PATCH 3/5 v9] iommu/fsl: Add the window permission flag as a parameter to iommu_window_enable API.

2013-03-13 Thread Varun Sethi
Each iommu window can have access permissions associated with it. Extended the window_enable API to incorporate window access permissions. In case of PAMU each window can have its specific set of permissions. Signed-off-by: Varun Sethi --- drivers/iommu/iommu.c |5 +++-- include/linux

[PATCH 2/5 v9] powerpc: Add iommu domain pointer to device archdata

2013-03-13 Thread Varun Sethi
Add an iommu domain pointer to device (powerpc) archdata. Devices are attached to iommu domains and this pointer provides a mechanism to correlate between a device and the associated iommu domain. This field is set when a device is attached to a domain. Signed-off-by: Varun Sethi --- arch

[PATCH 1/5 v9] iommu/fsl: Make iova u64 in the iommu_iova_to_phys API.

2013-03-13 Thread Varun Sethi
This is required in case of PAMU, as it can support a window size of up to 64G (even on 32bit). Signed-off-by: Varun Sethi --- drivers/iommu/amd_iommu.c |2 +- drivers/iommu/exynos-iommu.c |2 +- drivers/iommu/intel-iommu.c|2 +- drivers/iommu/iommu.c |3

[PATCH 0/5 v9] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2013-03-13 Thread Varun Sethi
for FSL PAMU driver. 5. PAMU driver and IOMMU API implementation. This patch set is based on the master branch (3.9-rc2) of Linus Torvald's git tree. Varun Sethi (5): Make iova u64 in the iommu_iova_to_phys API. Add iommu domain pointer to device archdata Add the window permission flag

[PATCH 2/6] powerpc/fsl_pci: Store the platform device information corresponding to the pci controller.

2013-02-18 Thread Varun Sethi
fsl pci controller. For the case where the pci devices can't be paritioned, they would fall under the same device group as the pci controller. This patch stores the platform device information in the pci controller structure during initialization. Signed-off-by: Varun Sethi --- arch/po

[PATCH 3/6] powerpc/fsl_pci: Added defines for the FSL PCI controller BRR1 register.

2013-02-18 Thread Varun Sethi
Macros for checking FSL PCI controller version. Signed-off-by: Varun Sethi --- arch/powerpc/include/asm/pci-bridge.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/pci-bridge.h b/arch/powerpc/include/asm/pci-bridge.h index 025a130..c12ed78

[PATCH 5/6 v8] iommu/fsl: Add addtional attributes specific to the PAMU driver.

2013-02-18 Thread Varun Sethi
check for PAMUV1 specific constraints. Signed-off-by: Varun Sethi --- include/linux/iommu.h | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 529987c..c44e38b 100644 --- a/include/linux

[PATCH 4/6] iommu/fsl: Add window permission flags for iommu_domain_window_enable API.

2013-02-18 Thread Varun Sethi
Each iommu window can have access permissions associated with it. Extended the window_enable API to incorporate window access permissions. Signed-off-by: Varun Sethi --- drivers/iommu/iommu.c |5 +++-- include/linux/iommu.h |7 --- 2 files changed, 7 insertions(+), 5 deletions

[PATCH 0/6 v8] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2013-02-18 Thread Varun Sethi
tree maintained by Joerg. Varun Sethi (6): Store iommu domain information in the device structure. Store the platform device information corresponding to the pci controller. Added defines for the FSL PCI controller BRR1 register. Add window permission flags for iommu_domain_window_enable

[PATCH 1/6 v8] iommu/fsl: Store iommu domain information pointer in archdata.

2013-02-18 Thread Varun Sethi
Add a new field in the device (powerpc) archdata structure for storing iommu domain information pointer. This pointer is stored when the device is attached to a particular domain. Signed-off-by: Varun Sethi --- - no change. arch/powerpc/include/asm/device.h |4 1 files changed, 4

[PATCH 2/4] iommu/fsl: Add PAMU bypass enable register to ccsr_guts structure.

2012-12-14 Thread Varun Sethi
PAMU bypass enable register added to the ccsr_guts structure. (This patch has already been applied by Kumar Gala in the linuxppc tree next branch) Signed-off-by: Timur Tabi Signed-off-by: Varun Sethi --- arch/powerpc/include/asm/fsl_guts.h |4 +++- 1 files changed, 3 insertions(+), 1

[PATCH 0/4] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2012-12-14 Thread Varun Sethi
. Addition of domain attributes required by the PAMU driver IOMMU API. 4. PAMU driver and IOMMU API implementation. This patch set is based on the next branch of the iommu git tree maintained by Joerg. Varun Sethi (4): store iommu domain info in device arch data. add pamu bypass enable

[PATCH 3/4 v7] iommu/fsl: Add iommu domain attributes required by fsl PAMU driver.

2012-12-14 Thread Varun Sethi
DMA to a particular memory window. 4. Added max_subwindows field to the geometry attribute. This is used to determine the maximum number sub windows available for the geometry. Signed-off-by: Varun Sethi --- changes in v7: - Added max_subwindows field to the geometry attribute. changes in

[PATCH 1/4 v7] iommu/fsl: Store iommu domain information pointer in archdata.

2012-12-14 Thread Varun Sethi
Add a new field in the device (powerpc) archdata structure for storing iommu domain information pointer. This pointer is stored when the device is attached to a particular domain. Signed-off-by: Varun Sethi --- - no change in this version arch/powerpc/include/asm/device.h |4 1 files

[PATCH 3/4 v5] iommu/fsl: Add iommu domain attributes required by fsl PAMU driver.

2012-11-20 Thread Varun Sethi
DMA to a particular memory window. Signed-off-by: Varun Sethi --- changes in v5: - Updated description of the subwindows field. changes in v4: - Updated comment explaining subwindows(as mentioned by Scott). change in v3: -renamed the stash attribute targets include/linux/iommu.h | 43

[PATCH 2/4] iommu/fsl: Add PAMU bypass enable register to ccsr_guts structure.

2012-11-20 Thread Varun Sethi
PAMU bypass enable register added to the ccsr_guts structure. Signed-off-by: Timur Tabi Signed-off-by: Varun Sethi --- arch/powerpc/include/asm/fsl_guts.h |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/include/asm/fsl_guts.h b/arch/powerpc/include/asm

[PATCH 1/4 v2] iommu/fsl: Store iommu domain information pointer in archdata.

2012-11-20 Thread Varun Sethi
Add a new field in the device (powerpc) archdata structure for storing iommu domain information pointer. This pointer is stored when the device is attached to a particular domain. Signed-off-by: Varun Sethi --- arch/powerpc/include/asm/device.h |4 1 files changed, 4 insertions(+), 0

[PATCH 0/4] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2012-11-20 Thread Varun Sethi
. Addition of domain attributes required by the PAMU driver IOMMU API. 4. PAMU driver and IOMMU API implementation. This patch set is based on the next branch of the iommu git tree maintained by Joerg. Varun Sethi (4): store iommu domain pointer in device archdata structure. Add PAMU bypass

[PATCH 3/4 v4] iommu/fsl: Add iommu domain attributes required by fsl PAMU driver.

2012-11-05 Thread Varun Sethi
DMA to a particular memory window. Signed-off-by: Varun Sethi --- changes in v4: - Updated comment explaining subwindows(as mentioned by Scott). change in v3: -renamed the stash attribute targets include/linux/iommu.h | 36 1 files changed, 36 insertions

[PATCH 0/4] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2012-11-05 Thread Varun Sethi
. Addition of domain attributes required by the PAMU driver IOMMU API. 4. PAMU driver and IOMMU API implementation. This patch set is based on the next branch of the iommu git tree maintained by Joerg. Varun Sethi (4): store iommu domain pointer in device archdata structure. Add PAMU bypass

[PATCH 1/4 v2] iommu/fsl: Store iommu domain information pointer in archdata.

2012-11-05 Thread Varun Sethi
Add a new field in the device (powerpc) archdata structure for storing iommu domain information pointer. This pointer is stored when the device is attached to a particular domain. Signed-off-by: Varun Sethi --- arch/powerpc/include/asm/device.h |4 1 files changed, 4 insertions(+), 0

[PATCH 1/3 v2] iommu/fsl: Store iommu domain information pointer in archdata.

2012-10-17 Thread Varun Sethi
Add a new field in the device (powerpc) archdata structure for storing iommu domain information pointer. This pointer is stored when the device is attached to a particular domain. Signed-off-by: Varun Sethi --- arch/powerpc/include/asm/device.h |4 1 files changed, 4 insertions(+), 0

[PATCH 2/3 v3] iommu/fsl: Add iommu domain attributes required by fsl PAMU driver.

2012-10-17 Thread Varun Sethi
DMA to a particular memory window. Signed-off-by: Varun Sethi --- change in v3: -renamed the stash attribute targets include/linux/iommu.h | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/include/linux/iommu.h b/include/linux/iommu.h

[PATCH 0/3] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2012-10-17 Thread Varun Sethi
IOMMU API. 3. PAMU driver and IOMMU API implementation. This patch set is based on the next branch of the iommu git tree maintained by Joerg. Varun Sethi (3): Store iommu domain information pointer in archdata. Add iommu domain attributes required by fsl PAMU driver. FSL PAMU driver and IOMMU