Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5055357imu; Tue, 29 Jan 2019 12:00:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN6n2dTaNF8B1pJ2ZKYwBtOgaFEWJWVogXiho7MkgOCMS5DDnPIJ4dpjhNRwxC+eKvSA0bGo X-Received: by 2002:a62:3541:: with SMTP id c62mr27394926pfa.19.1548792057420; Tue, 29 Jan 2019 12:00:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548792057; cv=none; d=google.com; s=arc-20160816; b=lrn39fo3K4VNkSPCOF8UCdmQZ84w/z9RzPTSXqwHtKyN8zcIWQir2Ag6/rhFgBsN2t /vivHYIvscl+912vcD9SZPd6CJWxmnyJ5v3mrQFSHPvM0Np9SwQfrzyB04TgVj0eNb9k aBK7rBT5+TnQI5iBXN9F8+9SW/1W4gmdxxJeFftV6dEOi4IXcHjlWqYezfO2J05pw5Dm K5fwRCYXTIMeTh+FM972DgaptqFx28ljtt3jd1WnBYDzQTO/BajfpUoAzAkS9XVfn3GM VBKakZB3Qoty5BPNZoRqEq5vksLsH4/4AVWyRGjPKIqf64Tm4iaEW6gtXp+XATZyFF70 CUsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=LwWLg6bgs2iH8R66wtBVdrUx6rgGVOVpL4fXsziSVD8=; b=OPNK5K6mm+E0g+MrBwbiKg/JY8wdyEyGU1iD/BKJqo6PGKNxLIZ/25R2kKTndtuHBU Ot9xxV6JorFLqwIhpTgWz7/2HeOJUlYEUwMBx3kdpwZ70HNO0YNhgq2B1Bkc9flZOsBy rx+7mbtfKMMs6oqzmMmjkmBqvHld/uiAvMQvL+7NlhpigZjpMPfFVKGJkS2l8puiAS11 rVWX5KpcOiqM+5BWsf2mc7OVFVxqdF/H13GAsCEY8hiQhRvyWWaIFxfx9AH1T6ti67Eo DgLjNmxY87Iz0Yy7eOe//nltcec1uBJthwxRYk5Mcq1fIMIdtF79DGKjvFaqFg+RNF12 lfcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si21859506plo.108.2019.01.29.12.00.41; Tue, 29 Jan 2019 12:00:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729184AbfA2UAg (ORCPT + 99 others); Tue, 29 Jan 2019 15:00:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47440 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727763AbfA2UAg (ORCPT ); Tue, 29 Jan 2019 15:00:36 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9EFEB811D8; Tue, 29 Jan 2019 20:00:35 +0000 (UTC) Received: from redhat.com (ovpn-122-2.rdu2.redhat.com [10.10.122.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 618B45C239; Tue, 29 Jan 2019 20:00:33 +0000 (UTC) Date: Tue, 29 Jan 2019 15:00:31 -0500 From: Jerome Glisse To: Alex Deucher Cc: linux-mm , Joerg Roedel , "Rafael J . Wysocki" , Greg Kroah-Hartman , Felix Kuehling , LKML , Maling list - DRI developers , Christoph Hellwig , iommu@lists.linux-foundation.org, Jason Gunthorpe , Linux PCI , Bjorn Helgaas , Robin Murphy , Logan Gunthorpe , Christian Koenig , Marek Szyprowski Subject: Re: [RFC PATCH 1/5] pci/p2p: add a function to test peer to peer capability Message-ID: <20190129200031.GL3176@redhat.com> References: <20190129174728.6430-1-jglisse@redhat.com> <20190129174728.6430-2-jglisse@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 29 Jan 2019 20:00:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 29, 2019 at 02:56:38PM -0500, 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. Yes it would be better, i forgot about those. I can include them next time i post. Thank you for reminding me about those :) Cheers, J?r?me