Re: [PATCH] gpu: host1x: Use direct DMA with IOMMU API usage

2019-02-07 Thread Thierry Reding
On Wed, Feb 06, 2019 at 02:08:33PM -0800, Guenter Roeck wrote: > On Fri, Feb 01, 2019 at 02:28:26PM +0100, Thierry Reding wrote: > > If we use the IOMMU API directly to map buffers into host1x' IOVA space, > > we must make sure that the DMA API doesn't already set up a mapping, or > > else

Re: [PATCH] gpu: host1x: Use direct DMA with IOMMU API usage

2019-02-06 Thread Guenter Roeck
On Fri, Feb 01, 2019 at 02:28:26PM +0100, Thierry Reding wrote: > If we use the IOMMU API directly to map buffers into host1x' IOVA space, > we must make sure that the DMA API doesn't already set up a mapping, or > else translation will fail. > > The direct DMA API allows us to allocate memory