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
.@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.
>
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
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/
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
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
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
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
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
.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):
> >
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
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
> -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
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...@
> -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
.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.
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
--
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/
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
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
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
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:
>
> -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
> -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
> -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.
@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
> ---
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
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_
> -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
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
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
> -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
>
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
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
> -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
.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
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 |
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
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
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
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
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
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
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 |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
. 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
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
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
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
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
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
. 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
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
. 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
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
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
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
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
92 matches
Mail list logo