Re: [PATCH v3 10/20] nvme-pci: convert to using dma_map_sgtable()

2021-10-05 Thread Max Gurtovoy via iommu
Logan, On 9/17/2021 2:40 AM, Logan Gunthorpe wrote: The dma_map operations now support P2PDMA pages directly. So remove the calls to pci_p2pdma_[un]map_sg_attrs() and replace them with calls to dma_map_sgtable(). dma_map_sgtable() returns more complete error codes than dma_map_sg() and allows

[PATCH v3 10/20] nvme-pci: convert to using dma_map_sgtable()

2021-09-16 Thread Logan Gunthorpe
The dma_map operations now support P2PDMA pages directly. So remove the calls to pci_p2pdma_[un]map_sg_attrs() and replace them with calls to dma_map_sgtable(). dma_map_sgtable() returns more complete error codes than dma_map_sg() and allows differentiating EREMOTEIO errors in case an unsupported