RE: [PATCH 8/8] WIP: add a dma_alloc_contiguous API

From: David Laight
Date: Wed Oct 14 2020 - 11:03:41 EST


> On Wed, Sep 30, 2020 at 6:09 PM Christoph Hellwig <hch@xxxxxx> wrote:
> >
> > Add a new API that returns a virtually non-contigous array of pages
> > and dma address. This API is only implemented for dma-iommu and will
> > not be implemented for non-iommu DMA API instances that have to allocate
> > contiguous memory. It is up to the caller to check if the API is
> > available.

Isn't there already a flag that is only implemented for ARM
systems with iommu that forces pages to actually be physically
contiguous?

So isn't this some kind of strange opposite?

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)