On 04/09/18 09:16 AM, Jason Gunthorpe wrote:
>> if (iod->nents) {
>> - dma_unmap_sg(dev->dev, iod->sg, iod->nents, dma_dir);
>> + /* P2PDMA requests do not need to be unmapped */
>> + if (!is_pci_p2pdma_page(sg_page(iod->sg)))
>> + dma_unmap_sg(dev->dev, iod->sg, iod->nents, dma_dir);
>
> This seems like a poor direction, if we add IOMMU hairpin support we
> will need unmapping.
It can always be added later. In any case, you'll have to convince
Christoph who requested the change; I'm not that invested in this decision.
Logan
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm
- Re: [PATCH v5 12/13] nvmet: Introduce helper functi... Sagi Grimberg
- [PATCH v5 07/13] block: Add PCI P2P flag for request que... Logan Gunthorpe
- Re: [PATCH v5 07/13] block: Add PCI P2P flag for re... Jens Axboe
- Re: [PATCH v5 07/13] block: Add PCI P2P flag fo... Logan Gunthorpe
- Re: [PATCH v5 07/13] block: Add PCI P2P flag fo... Christoph Hellwig
- Re: [PATCH v5 07/13] block: Add PCI P2P fla... Logan Gunthorpe
- [PATCH v5 11/13] nvme-pci: Add a quirk for a pseudo CMB Logan Gunthorpe
- [PATCH v5 10/13] nvme-pci: Add support for P2P memory in... Logan Gunthorpe
- Re: [PATCH v5 10/13] nvme-pci: Add support for P2P ... Jason Gunthorpe
- Re: [PATCH v5 10/13] nvme-pci: Add support for ... Logan Gunthorpe
- Re: [PATCH v5 10/13] nvme-pci: Add support ... Christoph Hellwig
- [PATCH v5 08/13] IB/core: Ensure we map P2P memory corre... Logan Gunthorpe
- Re: [PATCH v5 08/13] IB/core: Ensure we map P2P mem... Sagi Grimberg
- [PATCH v5 13/13] nvmet: Optionally use PCI P2P memory Logan Gunthorpe
- Re: [PATCH v5 13/13] nvmet: Optionally use PCI P2P ... Sagi Grimberg
- Re: [PATCH v5 13/13] nvmet: Optionally use PCI ... Logan Gunthorpe
- [PATCH v5 04/13] PCI/P2PDMA: Introduce configfs/sysfs en... Logan Gunthorpe
- [PATCH v5 01/13] PCI/P2PDMA: Support peer-to-peer memory Logan Gunthorpe
- Re: [PATCH v5 01/13] PCI/P2PDMA: Support peer-to-pe... Christian König
- Re: [PATCH v5 01/13] PCI/P2PDMA: Support peer-t... Logan Gunthorpe
