Re: remove dma_virt_ops v2

Mike Marciniszyn
2020-11-17T14:33:07Z

>> Fixes: 551199aca1c3 ("lib/dma-virt: Add dma_virt_ops")
>
> Note that the drivers had open coded versions of this earlier. I think
> this goes back to the addition of the qib driver which is now gone
> or the addition of the hfi1 or rxe drivers for something that still
> matters

Christoph,Jason

I built a branch using the following recipe:
https://patchwork.kernel.org/project/linux-rdma/patch/:
20201106181941.1878556-11-hch@lst.de/ dma-mapping: remove dma_virt_ops
20201106181941.1878556-10-hch@lst.de/ PCI/P2PDMA: Cleanup
__pci_p2pdma_map_sg a bit
20201106181941.1878556-9-hch@lst.de/ PCI/P2PDMA: Remove the
DMA_VIRT_OPS hacks
20201106181941.1878556-8-hch@lst.de/ RDMA/core: remove use of dma_virt_ops
20201106181941.1878556-7-hch@lst.de/ RDMA/core: remove
ib_dma_{alloc,free}_coherent
20201106181941.1878556-6-hch@lst.de/ rds: stop using dmapool
20201106181941.1878556-5-hch@lst.de/ nvme-rdma: use ibdev_to_node
instead of dereferencing ->dma_device
20201106181941.1878556-4-hch@lst.de/ RDMA: lift ibdev_to_node from rds
to common code
20201106181941.1878556-3-hch@lst.de/ RDMA/umem: use ib_dma_max_seg_size
instead of dma_get_max_seg_size
rdma/for-rc dabbd6abcdbe which has RMDA/sw: don't allow drivers using
dma_virt_ops on highmem configs

All of our rdmavt/hfi1 tests passed.

So I can at least vouch for "RDMA/core: remove use of dma_virt_ops"

Mike
Tested-by: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>