Re: [RFC PATCH 1/5] pci/p2p: add a function to test peer to peer capability

From: Logan Gunthorpe
Date: Tue Jan 29 2019 - 15:25:01 EST

On 2019-01-29 12:56 p.m., Alex Deucher wrote:
> On Tue, Jan 29, 2019 at 12:47 PM <jglisse@xxxxxxxxxx> wrote:
>> From: JÃrÃme Glisse <jglisse@xxxxxxxxxx>
>> 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:
> 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.