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

2013-04-24 Thread Joerg Roedel
On Tue, Apr 23, 2013 at 02:10:25PM +, Sethi Varun-B16395 wrote:
 I think it's fine to have the header under linux, actually I also the
 intel-iommu header under linux.

Yes, the difference is that VT-d runs on x86 and on ia64. So there is no
single arch where the header could be placed. The amd-iommu.h file on
the other hand is x86 only and should also be moved to asm/, as I just
found out :)

And as long as PAMU is only needed on a single architecture the header
should also be arch-specific. If that changes someday the header can be
moved to a generic place.


Joerg


___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


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

2013-04-24 Thread Sethi Varun-B16395


 -Original Message-
 From: Joerg Roedel [mailto:j...@8bytes.org]
 Sent: Wednesday, April 24, 2013 4:21 PM
 To: Sethi Varun-B16395
 Cc: io...@lists.linux-foundation.org; linuxppc-dev@lists.ozlabs.org;
 linux-ker...@vger.kernel.org; ga...@kernel.crashing.org;
 b...@kernel.crashing.org; Yoder Stuart-B08248; Wood Scott-B07421
 Subject: Re: [PATCH 2/3 v14] iommu/fsl: Add additional iommu attributes
 required by the PAMU driver.
 
 On Tue, Apr 23, 2013 at 02:10:25PM +, Sethi Varun-B16395 wrote:
  I think it's fine to have the header under linux, actually I also the
  intel-iommu header under linux.
 
 Yes, the difference is that VT-d runs on x86 and on ia64. So there is no
 single arch where the header could be placed. The amd-iommu.h file on the
 other hand is x86 only and should also be moved to asm/, as I just found
 out :)
 
 And as long as PAMU is only needed on a single architecture the header
 should also be arch-specific. If that changes someday the header can be
 moved to a generic place.
 
Ok, I will post the next version of the patch set.

-Varun


___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


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

2013-04-23 Thread Joerg Roedel
On Tue, Apr 23, 2013 at 10:05:25AM +0530, Varun Sethi wrote:
 Added the following domain attributes for the FSL PAMU driver:
 1. Added new iommu stash attribute, which allows setting of the
LIODN specific stash id parameter through IOMMU API.
 2. Added an attribute for enabling/disabling DMA to a particular
memory window.
 3. Added domain attribute 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 header file.
 - no change in v11.
 - no change in v10.
  include/linux/fsl_pamu_stash.h |   39 +++

Isn't asm/ for your architecture a better place for that header?


Joerg


___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


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

2013-04-23 Thread Sethi Varun-B16395


 -Original Message-
 From: Joerg Roedel [mailto:j...@8bytes.org]
 Sent: Tuesday, April 23, 2013 7:09 PM
 To: Sethi Varun-B16395
 Cc: io...@lists.linux-foundation.org; linuxppc-dev@lists.ozlabs.org;
 linux-ker...@vger.kernel.org; ga...@kernel.crashing.org;
 b...@kernel.crashing.org; Yoder Stuart-B08248; Wood Scott-B07421
 Subject: Re: [PATCH 2/3 v14] iommu/fsl: Add additional iommu attributes
 required by the PAMU driver.
 
 On Tue, Apr 23, 2013 at 10:05:25AM +0530, Varun Sethi wrote:
  Added the following domain attributes for the FSL PAMU driver:
  1. Added new iommu stash attribute, which allows setting of the
 LIODN specific stash id parameter through IOMMU API.
  2. Added an attribute for enabling/disabling DMA to a particular
 memory window.
  3. Added domain attribute 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 header file.
  - no change in v11.
  - no change in v10.
   include/linux/fsl_pamu_stash.h |   39
 +++
 
 Isn't asm/ for your architecture a better place for that header?
 
I think it's fine to have the header under linux, actually I also the 
intel-iommu header under linux.

-Varun


___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


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

2013-04-23 Thread Yoder Stuart-B08248


 -Original Message-
 From: Joerg Roedel [mailto:j...@8bytes.org]
 Sent: Tuesday, April 23, 2013 8:39 AM
 To: Sethi Varun-B16395
 Cc: io...@lists.linux-foundation.org; linuxppc-dev@lists.ozlabs.org; 
 linux-ker...@vger.kernel.org;
 ga...@kernel.crashing.org; b...@kernel.crashing.org; Yoder Stuart-B08248; 
 Wood Scott-B07421
 Subject: Re: [PATCH 2/3 v14] iommu/fsl: Add additional iommu attributes 
 required by the PAMU driver.
 
 On Tue, Apr 23, 2013 at 10:05:25AM +0530, Varun Sethi wrote:
  Added the following domain attributes for the FSL PAMU driver:
  1. Added new iommu stash attribute, which allows setting of the
 LIODN specific stash id parameter through IOMMU API.
  2. Added an attribute for enabling/disabling DMA to a particular
 memory window.
  3. Added domain attribute 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 header file.
  - no change in v11.
  - no change in v10.
   include/linux/fsl_pamu_stash.h |   39 
  +++
 
 Isn't asm/ for your architecture a better place for that header?

The PAMU isn't strictly tied to Power architecture, although
that is where it is implemented now.  It could be implemented
on ARM for example.

Stuart


___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev