From: =?UTF-8?Q?Christian_K=c3=b6nig?= Subject: Re: [RFC PATCH 1/5] pci/p2p: add a function to test peer to peer capability Date: Wed, 30 Jan 2019 11:25:33 +0100 Message-ID: <6739544c-0122-ad8c-d3cf-86a4d8a1d7a2@gmail.com> References: <20190129174728.6430-1-jglisse@redhat.com> <20190129174728.6430-2-jglisse@redhat.com> <83acb590-25a5-f8ae-1616-bdb8b069fa0f@deltatee.com> Reply-To: christian.koenig@amd.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <83acb590-25a5-f8ae-1616-bdb8b069fa0f@deltatee.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Logan Gunthorpe , Alex Deucher , Jerome Glisse Cc: Joerg Roedel , "Rafael J . Wysocki" , Greg Kroah-Hartman , Felix Kuehling , LKML , Maling list - DRI developers , Christian Koenig , linux-mm , iommu@lists.linux-foundation.org, Jason Gunthorpe , Linux PCI , Bjorn Helgaas , Robin Murphy , Christoph Hellwig , Marek Szyprowski List-Id: dri-devel@lists.freedesktop.org Am 29.01.19 um 21:24 schrieb Logan Gunthorpe: > > On 2019-01-29 12:56 p.m., Alex Deucher wrote: >> On Tue, Jan 29, 2019 at 12:47 PM wrote: >>> From: Jérôme Glisse >>> >>> 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. Yeah, well that's what I was suggesting for the very beginning :) But completely agree the existing functions should be improved instead of adding new ones, Christian. > > Logan > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel