Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5050820imu; Tue, 29 Jan 2019 11:56:09 -0800 (PST) X-Google-Smtp-Source: ALg8bN6g4GjKt/T1wFrfn4BGxbLmzNL0wbIc3eOurj2GWqBcJ3QyQMxxNTVSWoAviRDkKOzZYPAn X-Received: by 2002:a17:902:b118:: with SMTP id q24mr27760977plr.209.1548791769396; Tue, 29 Jan 2019 11:56:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548791769; cv=none; d=google.com; s=arc-20160816; b=lhjUgFIK2zzEBBAJPLMwXl2NrX2oN2WtFViGXY2WXlvUeRVm0Rs8PRExVNOUMbM5Bv 619OX2F9nTJ6dw2LhSLxA81QgEMCLIDCsIJjZCunww29NYDVv0d5DhQgRpabtKYIB+tH 4D412PyUxEXWCvBhH4g4hPwxugkCUZAGgIr5L0dPcedtFC+sw/pU931bv5uXNHMlFH7d TEjn9MtDPR5O2fHUh4M15WLIMPeuo/m8k8crWW80k0+Fg32ZOyTJeFXbwagooEUICfN2 U4l7J79HbKdw3C6N4UoGB24rahsaQ9s+x0slChDC1n8kNZIo3uN1KakMFKOm06yng/vr Jgkg== 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=OM+pDS/9K2ZXGPk3uIIgj17R028y5yzodiRWNWiNb4Y=; b=hLlHbeSkZn1W0GFUJ4eEelfD1S89fm6KaTqGc3SIjWuPp7R2qWOROJkLWgBBzHNAZ+ zHUf1825csfYZabA8GwHoB3DovX040hkBPYEXE0EOSGeUygR6A8aG5XBhpEqMjoX28Z8 jLM73hmAs29aWtbSNM8rNa36V555zOMiSg6NJp6ZB0Ge5wVjGLyKkRq04LqEYB6PCHYA p8Xe4Yd/LAg/kh7R/HqUmn6WPEsgWUYhvA/P+C3wam3h8iaC6QL9ehwIGh0cky48mZ9n 1tru0N5CixQAEWTbfZDk3FUihy6J8pVsbWIXDehikInMQiGNNGqF/p2Af6wXrP19osNe 9fsg== 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.11.55.53; Tue, 29 Jan 2019 11:56:09 -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 S1729315AbfA2Ty3 (ORCPT + 99 others); Tue, 29 Jan 2019 14:54:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57726 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728682AbfA2Ty2 (ORCPT ); Tue, 29 Jan 2019 14:54:28 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 49AA689AC5; Tue, 29 Jan 2019 19:54:28 +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 537BF600CC; Tue, 29 Jan 2019 19:54:25 +0000 (UTC) Date: Tue, 29 Jan 2019 14:54:23 -0500 From: Jerome Glisse To: Logan Gunthorpe Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Rafael J . Wysocki" , Bjorn Helgaas , Christian Koenig , Felix Kuehling , Jason Gunthorpe , linux-pci@vger.kernel.org, dri-devel@lists.freedesktop.org, Christoph Hellwig , Marek Szyprowski , Robin Murphy , Joerg Roedel , iommu@lists.linux-foundation.org Subject: Re: [RFC PATCH 2/5] drivers/base: add a function to test peer to peer capability Message-ID: <20190129195421.GJ3176@redhat.com> References: <20190129174728.6430-1-jglisse@redhat.com> <20190129174728.6430-3-jglisse@redhat.com> <98d345af-7928-2a50-7bc4-582916dfac80@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <98d345af-7928-2a50-7bc4-582916dfac80@deltatee.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 29 Jan 2019 19:54:28 +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 11:26:01AM -0700, Logan Gunthorpe wrote: > > > On 2019-01-29 10:47 a.m., jglisse@redhat.com 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. > > This doesn't appear to be used in any of the further patches; so it's > very confusing. > > I'm not sure a struct device wrapper is really necessary... I wanted to allow other non pci device to join in the fun but yes right now i have only be doing this on pci devices. J?r?me