[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 varun.se...@freescale.com --- arch/powerpc/include/asm/device.h |4 1 files

[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 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 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

[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

[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 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

[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 varun.se...@freescale.com --- arch/powerpc/include/asm/device.h |4 1 files

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

2013-04-21 Thread Varun Sethi
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

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

2013-04-21 Thread Varun Sethi
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

[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 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

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

2013-04-14 Thread Varun Sethi
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

[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 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 varun.se

[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 varun.se...@freescale.com --- - no change in v11

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

2013-03-28 Thread Varun Sethi
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

[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 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

[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 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 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

[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 varun.se

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

2013-03-22 Thread Varun Sethi
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

[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 varun.se...@freescale.com --- - no change in v10. drivers

[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 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 varun.se...@freescale.com --- drivers/iommu/amd_iommu.c |2 +- drivers/iommu/exynos-iommu.c |2 +- drivers/iommu/intel-iommu.c|2 +- drivers/iommu

[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 varun.se

[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 varun.se...@freescale.com --- drivers/iommu/iommu.c |5

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

2013-03-13 Thread Varun Sethi
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

[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 varun.se...@freescale.com --- - no change. arch/powerpc/include/asm/device.h |4

[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 varun.se...@freescale.com --- drivers/iommu/iommu.c |5 +++-- include/linux/iommu.h |7 --- 2 files changed, 7

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

2013-02-18 Thread Varun Sethi
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

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

2013-02-18 Thread Varun Sethi
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

[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 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

[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 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 varun.se...@freescale.com --- arch/powerpc/include/asm/device.h |4 1 files

[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 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

[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 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

[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 varun.se...@freescale.com --- - no change in this version arch/powerpc/include/asm

[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 varun.se...@freescale.com --- changes in v7: - Added max_subwindows field

[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 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 ti...@freescale.com Signed-off-by: Varun Sethi varun.se...@freescale.com --- arch/powerpc/include/asm/fsl_guts.h |4

[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 varun.se

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

2013-07-14 Thread Varun Sethi
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

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

2013-06-20 Thread Varun Sethi
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

[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 varun.se

[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 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

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

2013-10-16 Thread Varun Sethi
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

[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 |7

[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 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

[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 |7

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

2013-10-12 Thread Varun Sethi
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

[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 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

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

2013-10-12 Thread Varun Sethi
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

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

2013-12-03 Thread Varun Sethi
; 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

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

2014-03-18 Thread Varun Sethi
...@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

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-

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

2013-04-22 Thread Varun Sethi
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

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

2013-04-22 Thread Varun Sethi
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

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

2013-04-24 Thread Varun Sethi
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

[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 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

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

2013-10-09 Thread Varun Sethi
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

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.org

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-

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

2014-05-21 Thread Varun Sethi
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

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

2014-05-30 Thread Varun Sethi
-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

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; Stephen

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

2014-06-17 Thread Varun Sethi
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

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 RFC:

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

2014-01-20 Thread Varun Sethi
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

[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 varun.se...@freescale.com --- arch

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

2014-01-17 Thread Varun Sethi
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

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

2014-01-27 Thread Varun Sethi
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

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-R65777;

[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

[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 varun.se...@freescale.com --- drivers

[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 varun.se...@freescale.com --- drivers/iommu/fsl_pamu_domain.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions

[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/

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

2014-06-29 Thread Varun Sethi
) * 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

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

2014-07-07 Thread Varun Sethi
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

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

2014-07-02 Thread Varun Sethi
...@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

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 Bergmann;

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;

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

2014-07-04 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 Bergmann;

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

2014-07-04 Thread Varun Sethi
/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

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

2014-07-04 Thread Varun Sethi
/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

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

2014-10-04 Thread Varun Sethi
. -- 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

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

2014-09-09 Thread Varun Sethi
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

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

2014-09-04 Thread Varun Sethi
] [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

2014-09-04 Thread Varun Sethi
: 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

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

2014-09-04 Thread Varun Sethi
] [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 15/16] iommu/fsl: Make use of domain_alloc and domain_free

2015-04-12 Thread Varun Sethi
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

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

2015-08-08 Thread Varun Sethi
...@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

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:

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]

[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

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

2013-07-14 Thread Varun Sethi
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

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

2013-06-20 Thread Varun Sethi
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

[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

[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
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

[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 |7

[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

  1   2   >