On 2021-09-28 1:43 p.m., Jason Gunthorpe wrote: > On Thu, Sep 16, 2021 at 05:40:52PM -0600, Logan Gunthorpe wrote: >> dma_map_sg() now supports the use of P2PDMA pages so pci_p2pdma_map_sg() >> is no longer necessary and may be dropped. >> >> Switch to the dma_map_sgtable() interface which will allow for better >> error reporting if the P2PDMA pages are unsupported. >> >> The change to sgtable also appears to fix a couple subtle error path >> bugs: >> >> - In rdma_rw_ctx_init(), dma_unmap would be called with an sg >> that could have been incremented from the original call, as >> well as an nents that was not the original number of nents >> called when mapped. >> - Similarly in rdma_rw_ctx_signature_init, both sg and prot_sg >> were unmapped with the incorrect number of nents. > > Those bugs should definately get fixed.. I might extract the sgtable > conversion into a stand alone patch to do it. Yes. I can try to split it off myself and send a patch later this week. Logan _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
- Re: [PATCH v3 4/20] PCI/P2PDMA: ... Jason Gunthorpe via iommu
- Re: [PATCH v3 4/20] PCI/P2PD... Logan Gunthorpe
- Re: [PATCH v3 4/20] PCI... Jason Gunthorpe via iommu
- [PATCH v3 11/20] RDMA/core: introduce ib_dma_... Logan Gunthorpe
- Re: [PATCH v3 11/20] RDMA/core: introduc... Jason Gunthorpe
- [PATCH v3 16/20] block: set FOLL_PCI_P2PDMA i... Logan Gunthorpe
- [PATCH v3 07/20] dma-mapping: add flags to dm... Logan Gunthorpe
- Re: [PATCH v3 07/20] dma-mapping: add fl... Jason Gunthorpe
- [PATCH v3 12/20] RDMA/rw: use dma_map_sgtable... Logan Gunthorpe
- Re: [PATCH v3 12/20] RDMA/rw: use dma_ma... Jason Gunthorpe
- Re: [PATCH v3 12/20] RDMA/rw: use dm... Logan Gunthorpe
- Re: [PATCH v3 12/20] RDMA/rw: use dm... Max Gurtovoy via iommu
- [PATCH v3 06/20] dma-direct: support PCI P2PD... Logan Gunthorpe
- Re: [PATCH v3 06/20] dma-direct: support... Jason Gunthorpe
- [PATCH v3 05/20] dma-mapping: allow EREMOTEIO... Logan Gunthorpe
- Re: [PATCH v3 05/20] dma-mapping: allow ... Jason Gunthorpe
- [PATCH v3 10/20] nvme-pci: convert to using d... Logan Gunthorpe
- Re: [PATCH v3 10/20] nvme-pci: convert t... Max Gurtovoy via iommu
- [PATCH v3 09/20] nvme-pci: check DMA ops when... Logan Gunthorpe
- Re: [PATCH v3 09/20] nvme-pci: check DMA... Chaitanya Kulkarni via iommu
- Re: [PATCH v3 09/20] nvme-pci: check... Logan Gunthorpe
