On 2016-11-28 01:20 PM, Logan Gunthorpe wrote: > > On 28/11/16 09:57 AM, Jason Gunthorpe wrote: >>> On PeerDirect, we have some kind of a middle-ground solution for pinning >>> GPU memory. We create a non-ODP MR pointing to VRAM but rely on >>> user-space and the GPU not to migrate it. If they do, the MR gets >>> destroyed immediately. >> That sounds horrible. How can that possibly work? What if the MR is >> being used when the GPU decides to migrate? I would not support that >> upstream without a lot more explanation.. > Yup, this was our experience when playing around with PeerDirect. There > was nothing we could do if the GPU decided to invalidate the P2P > mapping. As soon as PeerDirect mapping is called then GPU must not "move" the such memory. It is by PeerDirect design. It is similar how it is works with system memory and RDMA MR: when "get_user_pages" is called then the memory is pinned.
- Enabling peer to peer device... Stephen Bates
- Enabling peer to peer device... Jason Gunthorpe
- Enabling peer to peer device... Logan Gunthorpe
- Enabling peer to peer device... Jason Gunthorpe
- Enabling peer to peer device... Logan Gunthorpe
- Enabling peer to peer device... Dan Williams
- Enabling peer to peer device... Christoph Hellwig
- Enabling peer to peer device... Haggai Eran
- Enabling peer to peer device... Deucher, Alexander
- Enabling peer to peer device... Logan Gunthorpe
- Enabling peer to peer device... Serguei Sagalovitch
- Enabling peer to peer device... Logan Gunthorpe
- Enabling peer to peer device... Serguei Sagalovitch
- Enabling peer to peer device... Jason Gunthorpe
- Enabling peer to peer device transactions for PCIe dev... Jerome Glisse
- Enabling peer to peer device transactions for PCI... Jason Gunthorpe
- Enabling peer to peer device transactions for... Jerome Glisse
- Enabling peer to peer device transactions... Jason Gunthorpe
- Enabling peer to peer device transact... Jerome Glisse
- Enabling peer to peer device tra... Jason Gunthorpe
- Enabling peer to peer device... Jerome Glisse