RE: [PATCH 4/5] iommu: Add domain window handling functions

2013-02-06 Thread Sethi Varun-B16395
Thanks Joerg. > -Original Message- > From: Joerg Roedel [mailto:j...@8bytes.org] > Sent: Wednesday, February 06, 2013 3:56 PM > To: Stuart Yoder > Cc: Sethi Varun-B16395; io...@lists.linux-foundation.org; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH 4/5] iom

Re: [PATCH 4/5] iommu: Add domain window handling functions

2013-02-06 Thread Joerg Roedel
On Mon, Feb 04, 2013 at 05:31:51PM -0600, Stuart Yoder wrote: > On Mon, Feb 4, 2013 at 12:56 PM, Joerg Roedel wrote: > > Okay. So if your architecture supports sizes over 2^32 then size_t > > probably is already 64bits, right? > > No, on a 32-bit platform size_t would generally be 32-bits. But

Re: [PATCH 4/5] iommu: Add domain window handling functions

2013-02-06 Thread Joerg Roedel
On Mon, Feb 04, 2013 at 05:31:51PM -0600, Stuart Yoder wrote: On Mon, Feb 4, 2013 at 12:56 PM, Joerg Roedel j...@8bytes.org wrote: Okay. So if your architecture supports sizes over 2^32 then size_t probably is already 64bits, right? No, on a 32-bit platform size_t would generally be

RE: [PATCH 4/5] iommu: Add domain window handling functions

2013-02-06 Thread Sethi Varun-B16395
Thanks Joerg. -Original Message- From: Joerg Roedel [mailto:j...@8bytes.org] Sent: Wednesday, February 06, 2013 3:56 PM To: Stuart Yoder Cc: Sethi Varun-B16395; io...@lists.linux-foundation.org; linux- ker...@vger.kernel.org Subject: Re: [PATCH 4/5] iommu: Add domain window

Re: [PATCH 4/5] iommu: Add domain window handling functions

2013-02-05 Thread Joerg Roedel
On Mon, Feb 04, 2013 at 05:31:51PM -0600, Stuart Yoder wrote: > On Mon, Feb 4, 2013 at 12:56 PM, Joerg Roedel wrote: > > On Mon, Feb 04, 2013 at 12:10:51PM -0600, Stuart Yoder wrote: > >> On Mon, Feb 4, 2013 at 7:18 AM, Joerg Roedel wrote: > >> > +static inline int

Re: [PATCH 4/5] iommu: Add domain window handling functions

2013-02-05 Thread Joerg Roedel
On Mon, Feb 04, 2013 at 05:31:51PM -0600, Stuart Yoder wrote: On Mon, Feb 4, 2013 at 12:56 PM, Joerg Roedel j...@8bytes.org wrote: On Mon, Feb 04, 2013 at 12:10:51PM -0600, Stuart Yoder wrote: On Mon, Feb 4, 2013 at 7:18 AM, Joerg Roedel j...@8bytes.org wrote: +static inline int

Re: [PATCH 4/5] iommu: Add domain window handling functions

2013-02-04 Thread Stuart Yoder
On Mon, Feb 4, 2013 at 12:56 PM, Joerg Roedel wrote: > On Mon, Feb 04, 2013 at 12:10:51PM -0600, Stuart Yoder wrote: >> On Mon, Feb 4, 2013 at 7:18 AM, Joerg Roedel wrote: >> > +static inline int iommu_domain_window_enable(struct iommu_domain *domain, >> > +

Re: [PATCH 4/5] iommu: Add domain window handling functions

2013-02-04 Thread Joerg Roedel
On Mon, Feb 04, 2013 at 12:10:51PM -0600, Stuart Yoder wrote: > On Mon, Feb 4, 2013 at 7:18 AM, Joerg Roedel wrote: > > +static inline int iommu_domain_window_enable(struct iommu_domain *domain, > > +u32 wnd_nr, phys_addr_t paddr, > > +

Re: [PATCH 4/5] iommu: Add domain window handling functions

2013-02-04 Thread Stuart Yoder
On Mon, Feb 4, 2013 at 7:18 AM, Joerg Roedel wrote: > Add the iommu_domain_window_enable() and iommu_domain_window_disable() > functions to the IOMMU-API. These functions will be used to setup > domains that are based on subwindows and not on paging. > > Signed-off-by: Joerg Roedel > --- >

[PATCH 4/5] iommu: Add domain window handling functions

2013-02-04 Thread Joerg Roedel
Add the iommu_domain_window_enable() and iommu_domain_window_disable() functions to the IOMMU-API. These functions will be used to setup domains that are based on subwindows and not on paging. Signed-off-by: Joerg Roedel --- drivers/iommu/iommu.c | 20

[PATCH 4/5] iommu: Add domain window handling functions

2013-02-04 Thread Joerg Roedel
Add the iommu_domain_window_enable() and iommu_domain_window_disable() functions to the IOMMU-API. These functions will be used to setup domains that are based on subwindows and not on paging. Signed-off-by: Joerg Roedel j...@8bytes.org --- drivers/iommu/iommu.c | 20

Re: [PATCH 4/5] iommu: Add domain window handling functions

2013-02-04 Thread Stuart Yoder
On Mon, Feb 4, 2013 at 7:18 AM, Joerg Roedel j...@8bytes.org wrote: Add the iommu_domain_window_enable() and iommu_domain_window_disable() functions to the IOMMU-API. These functions will be used to setup domains that are based on subwindows and not on paging. Signed-off-by: Joerg Roedel

Re: [PATCH 4/5] iommu: Add domain window handling functions

2013-02-04 Thread Joerg Roedel
On Mon, Feb 04, 2013 at 12:10:51PM -0600, Stuart Yoder wrote: On Mon, Feb 4, 2013 at 7:18 AM, Joerg Roedel j...@8bytes.org wrote: +static inline int iommu_domain_window_enable(struct iommu_domain *domain, +u32 wnd_nr, phys_addr_t paddr, +

Re: [PATCH 4/5] iommu: Add domain window handling functions

2013-02-04 Thread Stuart Yoder
On Mon, Feb 4, 2013 at 12:56 PM, Joerg Roedel j...@8bytes.org wrote: On Mon, Feb 04, 2013 at 12:10:51PM -0600, Stuart Yoder wrote: On Mon, Feb 4, 2013 at 7:18 AM, Joerg Roedel j...@8bytes.org wrote: +static inline int iommu_domain_window_enable(struct iommu_domain *domain, +