Re: [PATCH v3 4/5] PCI: vmd: Stop overriding dma_map_ops

2020-01-17 Thread Derrick, Jonathan
On Tue, 2020-01-14 at 09:54 +0100, Christoph Hellwig wrote: > On Fri, Jan 10, 2020 at 10:21:12AM -0700, Jon Derrick wrote: > > Devices on the VMD domain use the VMD endpoint's requester ID and have > > been relying on the VMD endpoint's DMA operations. The problem with this > > was that VMD domain

Re: [PATCH v3 4/5] PCI: vmd: Stop overriding dma_map_ops

2020-01-14 Thread Christoph Hellwig
On Fri, Jan 10, 2020 at 10:21:12AM -0700, Jon Derrick wrote: > Devices on the VMD domain use the VMD endpoint's requester ID and have > been relying on the VMD endpoint's DMA operations. The problem with this > was that VMD domain devices would use the VMD endpoint's attributes when > doing DMA and

[PATCH v3 4/5] PCI: vmd: Stop overriding dma_map_ops

2020-01-10 Thread Jon Derrick
Devices on the VMD domain use the VMD endpoint's requester ID and have been relying on the VMD endpoint's DMA operations. The problem with this was that VMD domain devices would use the VMD endpoint's attributes when doing DMA and IOMMU mapping. We can be smarter about this by only using the VMD en