RE: [PATCH] iommu/dma: limit the IOVA allocated to dma-ranges region

2017-09-08 Thread Krishna Reddy
>OK, so that's really just another variant of the existing problem we have with >certain PCI root complexes with restrictive inbound windows. >The appropriate way to handle that is to reserve the unusable areas of the >IOVA space up-front. > Since the support for the ACPI equivalent of

RE: [PATCH] iommu/dma: limit the IOVA allocated to dma-ranges region

2017-09-08 Thread Krishna Reddy
>OK, so that's really just another variant of the existing problem we have with >certain PCI root complexes with restrictive inbound windows. >The appropriate way to handle that is to reserve the unusable areas of the >IOVA space up-front. > Since the support for the ACPI equivalent of

Re: [PATCH] iommu/dma: limit the IOVA allocated to dma-ranges region

2017-09-08 Thread Robin Murphy
ay, September 1, 2017 2:43 AM > To: Joerg Roedel <j...@8bytes.org>; Krishna Reddy <vdu...@nvidia.com> > Cc: io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] iommu/dma: limit the IOVA allocated to dma-ranges region > > On 01/

Re: [PATCH] iommu/dma: limit the IOVA allocated to dma-ranges region

2017-09-08 Thread Robin Murphy
HW? Can IOVA code look for dma-ranges on its own and limit the iova top to > lowest of mask and dma-ranges, if it is present? or any other ways you can > think of? > > -KR > > -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: Friday,

RE: [PATCH] iommu/dma: limit the IOVA allocated to dma-ranges region

2017-09-05 Thread Krishna Reddy
AM To: Joerg Roedel <j...@8bytes.org>; Krishna Reddy <vdu...@nvidia.com> Cc: io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org Subject: Re: [PATCH] iommu/dma: limit the IOVA allocated to dma-ranges region On 01/09/17 10:26, Joerg Roedel wrote: > Adding Robin for review. > >

RE: [PATCH] iommu/dma: limit the IOVA allocated to dma-ranges region

2017-09-05 Thread Krishna Reddy
Joerg Roedel ; Krishna Reddy Cc: io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org Subject: Re: [PATCH] iommu/dma: limit the IOVA allocated to dma-ranges region On 01/09/17 10:26, Joerg Roedel wrote: > Adding Robin for review. > > On Thu, Aug 31, 2017 at 03:08:21PM -0700, Kri

Re: [PATCH] iommu/dma: limit the IOVA allocated to dma-ranges region

2017-09-01 Thread Robin Murphy
On 01/09/17 10:26, Joerg Roedel wrote: > Adding Robin for review. > > On Thu, Aug 31, 2017 at 03:08:21PM -0700, Krishna Reddy wrote: >> Limit the IOVA allocated to dma-ranges specified for the device. >> This is necessary to ensure that IOVA allocated is addressable >> by device. Why? IOVA

Re: [PATCH] iommu/dma: limit the IOVA allocated to dma-ranges region

2017-09-01 Thread Robin Murphy
On 01/09/17 10:26, Joerg Roedel wrote: > Adding Robin for review. > > On Thu, Aug 31, 2017 at 03:08:21PM -0700, Krishna Reddy wrote: >> Limit the IOVA allocated to dma-ranges specified for the device. >> This is necessary to ensure that IOVA allocated is addressable >> by device. Why? IOVA

Re: [PATCH] iommu/dma: limit the IOVA allocated to dma-ranges region

2017-09-01 Thread Joerg Roedel
Adding Robin for review. On Thu, Aug 31, 2017 at 03:08:21PM -0700, Krishna Reddy wrote: > Limit the IOVA allocated to dma-ranges specified for the device. > This is necessary to ensure that IOVA allocated is addressable > by device. > > Signed-off-by: Krishna Reddy > --- >

Re: [PATCH] iommu/dma: limit the IOVA allocated to dma-ranges region

2017-09-01 Thread Joerg Roedel
Adding Robin for review. On Thu, Aug 31, 2017 at 03:08:21PM -0700, Krishna Reddy wrote: > Limit the IOVA allocated to dma-ranges specified for the device. > This is necessary to ensure that IOVA allocated is addressable > by device. > > Signed-off-by: Krishna Reddy > --- >