[PATCH] drm: etnaviv: avoid DMA API warning when importing buffers

Christoph Hellwig hch at lst.de
Wed Mar 13 18:42:19 UTC 2019


>  	drm->dev_private = priv;
>  
> +	dev->dma_parms = &priv->dma_parms;
> +	dma_set_max_seg_size(dev, SZ_2G);

Hmm, the dma_params really should be set by the bus allocation
the device (or merged into struct device, given how many issues
we have with it).

But I think the other problem is that dma_get_max_seg_size defaults
to 64K, which is rather odd.  I would expect us to not have any
limit below sizeof(unsigned int) unless the driver asks for a
particular restriction, but that ship might have sailed a long time
ago..


More information about the etnaviv mailing list