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 varun.se...@freescale.com
---
arch/powerpc/include/asm/device.h |4
1 files
. 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 varun.se...@freescale.com
---
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
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
DMA to a particular
memory window.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
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 varun.se...@freescale.com
---
arch/powerpc/include/asm/device.h |4
1 files
that the
implementation can be shared across various IOMMU drivers.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
to check for PAMUV1 specific constraints.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
various IOMMU drivers.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
to check for PAMUV1 specific constraints.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
-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
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
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 varun.se
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 varun.se...@freescale.com
---
- no change in v11
to check for PAMUV1 specific constraints.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
- 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
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 varun.se...@freescale.com
---
changes in v11:
- Made iova dma_addr_t instead of u64.
- no change in v10.
drivers/iommu/amd_iommu.c |2 +-
drivers/iommu/exynos
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
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 varun.se...@freescale.com
---
- no change in v10.
drivers/iommu/amd_iommu.c |2 +-
drivers/iommu/exynos-iommu.c |2 +-
drivers/iommu/intel-iommu.c|2
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 varun.se
to check for PAMUV1 specific constraints.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
- 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
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 varun.se...@freescale.com
---
- no change in v10.
drivers
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
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 varun.se...@freescale.com
---
drivers/iommu/amd_iommu.c |2 +-
drivers/iommu/exynos-iommu.c |2 +-
drivers/iommu/intel-iommu.c|2 +-
drivers/iommu
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 varun.se
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 varun.se...@freescale.com
---
drivers/iommu/iommu.c |5
to check for PAMUV1 specific constraints.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
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 varun.se...@freescale.com
---
- no change.
arch/powerpc/include/asm/device.h |4
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 varun.se...@freescale.com
---
drivers/iommu/iommu.c |5 +++--
include/linux/iommu.h |7 ---
2 files changed, 7
to check for PAMUV1 specific constraints.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
to the 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 varun.se
Macros for checking FSL PCI controller version.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
. 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 varun.se...@freescale.com
---
arch/powerpc/include/asm/device.h |4
1 files
PAMU bypass enable register added to the ccsr_guts structure.
Signed-off-by: Timur Tabi ti...@freescale.com
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
arch/powerpc/include/asm/fsl_guts.h |4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc
DMA to a particular
memory window.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
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 varun.se...@freescale.com
---
- no change in this version
arch/powerpc/include/asm
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 varun.se...@freescale.com
---
changes in v7:
- Added max_subwindows field
. 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
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 ti...@freescale.com
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
arch/powerpc/include/asm/fsl_guts.h |4
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 varun.se
to check for PAMUV1 specific constraints.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
to check for PAMUV1 specific constraints.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
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 varun.se
Add maintainers entry for Freescale PAMU driver.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
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 varun.se...@freescale.com
---
drivers/iommu/fsl_pamu.c| 43
.
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 |7
Factor out PCI specific code in the PAMU driver.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
.
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 |7
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 varun.se...@freescale.com
---
drivers/iommu/fsl_pamu.c| 43
Factor out PCI specific code in the PAMU driver.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
;
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 detached
from the iommu domain (when guest terminates
...@redhat.com
Cc: Varun Sethi varun.se...@freescale.com
---
drivers/vfio/vfio_iommu_type1.c | 637 +
--
include/uapi/linux/vfio.h |1
2 files changed, 336 insertions(+), 302 deletions(-)
diff --git a/drivers/vfio/vfio_iommu_type1.c
b/drivers/vfio
-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-
that the
implementation can be shared across various IOMMU drivers.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
to check for PAMUV1 specific constraints.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
to check for PAMUV1 specific constraints.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
Factor out PCI specific code in the PAMU driver.
Signed-off-by: Varun Sethi varun.se...@freescale.com
---
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
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 varun.se...@freescale.com
---
drivers/iommu/fsl_pamu.c| 43
-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.org
-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-
rickard_strandqv...@spectrumdigital.se
Reviewed-by: Bharat Bhushan bharat.bhus...@freescale.com
Acknowledged-by: Varun Sethi varun.se...@freescale.com
---
drivers/iommu/fsl_pamu.c |3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/iommu/fsl_pamu.c b/drivers/iommu
-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 alex.william...@redhat.com
Cc: Varun Sethi varun.se...@freescale.com
---
drivers
-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; Stephen
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:
-u-boot/bootloader makes any static streamID allocation if needed,
sets
-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
RFC:
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 Varun-B16395
Cc: io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org
Subject: [RFC
, 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 varun.se...@freescale.com
---
arch
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's
possible to bind multiple iommu groups (from different bus types
support
On Tue, Jan 21, 2014 at 2:30 AM, Varun Sethi varun.se...@freescale.com
wrote:
-Original Message-
From: Alex Williamson [mailto:alex.william...@redhat.com]
Sent: Monday, January 20, 2014 9:51 PM
To: Sethi Varun-B16395
Cc: io...@lists.linux-foundation.org; linux-kernel
-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-R65777;
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
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 varun.se...@freescale.com
---
drivers
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 varun.se...@freescale.com
---
drivers/iommu/fsl_pamu_domain.c |7 +--
1 file changed, 5 insertions(+), 2 deletions
--
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/
) *
w_count, GFP_ATOMIC);
if (!dma_domain-win_arr) {
Acked-by: Varun Sethi varun.se...@freescale.com
--
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
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):
Fix PAMU window size check.
Fix the device domain attach condition
...@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.
__ffs also expects an unsigned long parameter thus
-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 Bergmann;
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;
-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 Bergmann;
/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 looks bogus, why do you replace ffs (find-first-bit) by fls (find-
last
/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 (old_domain_info old_domain_info-domain != dma_domain
.
--
From: Varun Sethi varun.se...@freescale.com
commit 5a9137a66b521d667236e95c307b92af532fe600 upstream.
iommu_group_get_for_dev determines the iommu group for the PCI device
and adds the device to the group.
In the PAMU driver we were again adding the device to the same
From: Joerg Roedel jroe...@suse.de
Cc: Varun Sethi varun.se...@freescale.com
Signed-off-by: Joerg Roedel jroe...@suse.de
---
drivers/iommu/fsl_pamu_domain.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/iommu/fsl_pamu_domain.c
b/drivers/iommu
] [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-by: Varun
: 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);
iommu_group_put(group);
return ret;
Doesn't
] [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-by: Varun
domain_lock;
};
Acked-by: Varun Sethi varun.se...@freescale.com
--
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
...@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.
Regards
Varun
-Original Message-
From: iommu-boun...@lists.linux
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:
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]
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
to 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
to 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
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
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
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| 43
.
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 |7
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
1 - 100 of 184 matches
Mail list logo