Re: [PATCH 1/2] iommu: Support dynamic pgsize_bitmap

2016-04-07 Thread Mitchel Humpherys
On Thu, Apr 07 2016 at 12:29:59 PM, Mitchel Humpherys wrote: >> I'll clean up what I have and try to get it posted this afternoon so >> we can compare. > > Cool, I have some comments that I'll leave over there. Never mind, my comments weren't relevant. I'll try to test your series out soon...

Re: [PATCH 1/2] iommu: Support dynamic pgsize_bitmap

2016-04-07 Thread Mitchel Humpherys
On Wed, Apr 06 2016 at 11:47:19 AM, Robin Murphy wrote: > How would you handle said restriction of page sizes under this scheme? I have a custom io-pgtable implementation that gets wired up based on an IOMMU domain attribute, which is set by yet another custom DMA mapper. My main goal is to give

Re: [PATCH 1/2] iommu: Support dynamic pgsize_bitmap

2016-04-07 Thread Joerg Roedel
On Tue, Apr 05, 2016 at 02:01:29PM -0700, Mitchel Humpherys wrote: > Currently we use a single pgsize_bitmap per IOMMU driver. However, some > IOMMU drivers might service different IOMMUs with different supported > page sizes. Some drivers might also want to restrict page sizes for > different us

Re: [PATCH 1/2] iommu: Support dynamic pgsize_bitmap

2016-04-06 Thread Robin Murphy
Hi Mitch, On 05/04/16 22:01, Mitchel Humpherys wrote: Currently we use a single pgsize_bitmap per IOMMU driver. However, some IOMMU drivers might service different IOMMUs with different supported page sizes. Some drivers might also want to restrict page sizes for different use cases. Support