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
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
+ 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
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
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),
> -