RE: [RFC 1/2] iommu/dma: Restrict IOVAs to physical memory layout

2016-07-01 Thread Stuart Yoder
> -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: Friday, July 01, 2016 12:40 PM > To: Stuart Yoder > Cc: iommu@lists.linux-foundation.org; linux-arm-ker...@lists.infradead.org > Subject: Re: [RFC 1/2] iommu/dma: Restrict IOVAs to phys

Re: [RFC 1/2] iommu/dma: Restrict IOVAs to physical memory layout

2016-07-01 Thread Robin Murphy
On 01/07/16 17:15, Robin Murphy wrote: > On 01/07/16 17:03, Stuart Yoder wrote: >> >> >>> -Original Message- >>> From: Robin Murphy >>> Date: Tue, Jun 28, 2016 at 11:18 AM >>> Subject: [RFC 1/2] iommu/dma: Restrict IOVAs to physical mem

Re: [RFC 1/2] iommu/dma: Restrict IOVAs to physical memory layout

2016-07-01 Thread Robin Murphy
On 01/07/16 17:03, Stuart Yoder wrote: > > >> -Original Message- >> From: Robin Murphy >> Date: Tue, Jun 28, 2016 at 11:18 AM >> Subject: [RFC 1/2] iommu/dma: Restrict IOVAs to physical memory layout >> To: iommu@lists.linux-foundation.org,

RE: [RFC 1/2] iommu/dma: Restrict IOVAs to physical memory layout

2016-07-01 Thread Stuart Yoder
> -Original Message- > From: Robin Murphy > Date: Tue, Jun 28, 2016 at 11:18 AM > Subject: [RFC 1/2] iommu/dma: Restrict IOVAs to physical memory layout > To: iommu@lists.linux-foundation.org, linux-arm-ker...@lists.infradead.org > > > Certain peripher

[RFC 1/2] iommu/dma: Restrict IOVAs to physical memory layout

2016-06-28 Thread Robin Murphy
Certain peripherals may be bestowed with knowledge of the physical memory map of the system in which they live, and refuse to handle addresses that they do not think are memory, which causes issues when remapping to arbitrary IOVAs. Sidestep the issue by restricting IOVA domains to only allocate ad