Thread (5 messages) 5 messages, 3 authors, 2021-05-03

Re: [PATCH 05/16] dma-mapping: Introduce dma_map_sg_p2pdma()

From: Christoph Hellwig <hch@lst.de>
Date: 2021-05-03 18:28:21
Also in: linux-block, linux-iommu, linux-nvme, linux-pci, lkml

On Tue, Apr 27, 2021 at 08:01:13PM -0300, Jason Gunthorpe wrote:
At a high level I'm OK with it. dma_map_sg_attrs() is the extra
extended version of dma_map_sg(), it already has a different
signature, a different return code is not out of the question.

dma_map_sg() is just the simple easy to use interface that can't do
advanced stuff.
quoted
I'm not that opposed to this. But it will make this series a fair bit
longer to change the 8 map_sg_attrs() usages.
Yes, but the result seems much nicer to not grow the DMA API further.
We already have a mapping function that can return errors:
dma_map_sgtable.

I think it might make more sense to piggy back on that, as the sg_table
abstraction is pretty useful basically everywhere that we deal with
scatterlists anyway.

In the hopefully no too long run I plan to get rid of scatterlists in
at least NVMe and other high performance devices anyway.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help