[PATCH] arm64/dma-mapping: Fix sizes in __iommu_{alloc,free}_attrs

Joerg Roedel joro at 8bytes.org
Thu Nov 26 04:30:02 PST 2015

On Wed, Nov 04, 2015 at 01:23:52PM +0000, Robin Murphy wrote:
> The iommu-dma layer does its own size-alignment for coherent DMA
> allocations based on IOMMU page sizes, but we still need to consider
> CPU page sizes for the cases where a non-cacheable CPU mapping is
> created. Whilst everything on the alloc/map path seems to implicitly
> align things enough to make it work, some functions used by the
> corresponding unmap/free path do not, which leads to problems freeing
> odd-sized allocations. Either way it's something we really should be
> handling explicitly, so do that to make both paths suitably robust.
> Reported-by: Yong Wu <yong.wu at mediatek.com>
> Signed-off-by: Robin Murphy <robin.murphy at arm.com>

Has this been merged through the arm tree or should I submit it as a fix
for 4.4?


More information about the linux-arm-kernel mailing list