Re: [RFC] switch nds32 to use the generic remapping DMA allocator

2019-06-16 Thread Greentime Hu
Christoph Hellwig 於 2019年6月14日 週五 下午8:22寫道: > > On Fri, Jun 14, 2019 at 07:35:29PM +0800, Greentime Hu wrote: > > It looks good to me. I just verified in nds32 platform and it works fine. > > Should I put it in my next-tree or you will pick it up in your tree? :) > > Eith

Re: [RFC] switch nds32 to use the generic remapping DMA allocator

2019-06-14 Thread Greentime Hu
verified in nds32 platform and it works fine. Should I put it in my next-tree or you will pick it up in your tree? :) Tested-by: Greentime Hu Reviewed-by: Greentime Hu ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoun

Re: [PATCH 2/3] nds32: implement the unmap_sg DMA operation

2018-05-29 Thread Greentime Hu
+ nds32_dma_sync_single_for_cpu(dev, sg_dma_address(sg), > + sg->length, dir); > + } > } > > struct dma_map_ops nds32_dma_ops = { Acked-by: Greentime Hu Tested-by: Greentime Hu ___ iommu

Re: [PATCH 1/3] nds32: consolidate DMA cache maintainance routines

2018-05-29 Thread Greentime Hu
int nents, enum dma_data_direction dir) > +static int nds32_dma_map_sg(struct device *dev, struct scatterlist *sg, > + int nents, enum dma_data_direction dir, > + unsigned long attrs) > { > int i

Re: [PATCH 3/3] nds32: use generic dma_noncoherent_ops

2018-05-29 Thread Greentime Hu
int nhwentries, enum dma_data_direction dir, > - unsigned long attrs) > -{ > - int i; > - > - for (i = 0; i < nhwentries; i++, sg++) { > - nds32_dma_sync_single_for_cpu(dev, sg_dma_address(sg), > -