On 2019-01-29 12:56 p.m., Alex Deucher wrote: > On Tue, Jan 29, 2019 at 12:47 PM <jgli...@redhat.com> wrote: >> >> From: Jérôme Glisse <jgli...@redhat.com> >> >> device_test_p2p() return true if two devices can peer to peer to >> each other. We add a generic function as different inter-connect >> can support peer to peer and we want to genericaly test this no >> matter what the inter-connect might be. However this version only >> support PCIE for now. >> > > What about something like these patches: > https://cgit.freedesktop.org/~deathsimple/linux/commit/?h=p2p&id=4fab9ff69cb968183f717551441b475fabce6c1c > https://cgit.freedesktop.org/~deathsimple/linux/commit/?h=p2p&id=f90b12d41c277335d08c9dab62433f27c0fadbe5 > They are a bit more thorough. Those new functions seem to have a lot of overlap with the code that is already upstream in p2pdma.... Perhaps you should be improving the p2pdma functions if they aren't suitable for what you want already instead of creating new ones. Logan
- [RFC PATCH 0/5] Device peer to peer (p2p) through vma jglisse
- [RFC PATCH 1/5] pci/p2p: add a function to test pe... jglisse
- Re: [RFC PATCH 1/5] pci/p2p: add a function to... Logan Gunthorpe
- Re: [RFC PATCH 1/5] pci/p2p: add a functio... Greg Kroah-Hartman
- Re: [RFC PATCH 1/5] pci/p2p: add a fun... Jerome Glisse
- Re: [RFC PATCH 1/5] pci/p2p: add a fun... Logan Gunthorpe
- Re: [RFC PATCH 1/5] pci/p2p: add ... Jerome Glisse
- Re: [RFC PATCH 1/5] pci/p2p: add a function to... Alex Deucher
- Re: [RFC PATCH 1/5] pci/p2p: add a functio... Jerome Glisse
- Re: [RFC PATCH 1/5] pci/p2p: add a functio... Logan Gunthorpe
- Re: [RFC PATCH 1/5] pci/p2p: add a fun... Alex Deucher
- Re: [RFC PATCH 1/5] pci/p2p: add a fun... Christian König
- [RFC PATCH 2/5] drivers/base: add a function to te... jglisse
- Re: [RFC PATCH 2/5] drivers/base: add a functi... Logan Gunthorpe
- Re: [RFC PATCH 2/5] drivers/base: add a fu... Jerome Glisse
- Re: [RFC PATCH 2/5] drivers/base: add a functi... Greg Kroah-Hartman
- Re: [RFC PATCH 2/5] drivers/base: add a fu... Jerome Glisse
- [RFC PATCH 3/5] mm/vma: add support for peer to pe... jglisse
- Re: [RFC PATCH 3/5] mm/vma: add support for pe... Logan Gunthorpe
- Re: [RFC PATCH 3/5] mm/vma: add support fo... Jerome Glisse