Re: [PATCH v4 1/4] iommu/iova: Avoid over-allocating when size-aligned

2015-07-28 Thread David Woodhouse
On Thu, 2015-07-16 at 19:40 +0100, Robin Murphy wrote: > Currently, allocating a size-aligned IOVA region quietly adjusts the > actual allocation size in the process, returning a rounded-up > power-of-two-sized allocation. This results in mismatched behaviour in > the IOMMU driver if the original s

[PATCH v4 1/4] iommu/iova: Avoid over-allocating when size-aligned

2015-07-16 Thread Robin Murphy
Currently, allocating a size-aligned IOVA region quietly adjusts the actual allocation size in the process, returning a rounded-up power-of-two-sized allocation. This results in mismatched behaviour in the IOMMU driver if the original size was not a power of two, where the original size is mapped,