Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4965553imu; Tue, 29 Jan 2019 10:27:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN6ImMDlPFRtRDaL1GVxzFOiOkb9w2BvxuFZ+GauE226CZqvRQSyOR+f5G3VVjW02/acDYSc X-Received: by 2002:a17:902:4081:: with SMTP id c1mr27501925pld.87.1548786421301; Tue, 29 Jan 2019 10:27:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548786421; cv=none; d=google.com; s=arc-20160816; b=afSAf7oSTREQUvstFWLcmAA3fOBCJ+riQhBF7bQ4LmI46RKxTee/MjHC/c00Aetvk/ FDQMyoNHOO8NvHxf68QQHvra01kE/cVbY4+gVv6T+qqog+oaS6ufWsOxm3RL26L2e0nH jg6rI17XKIw7Y0Oqcx2nyMfznHgCkxFEw/h8eqfZLsqOUq9lhqd/OpWFbzGETqo5FQcw ei+TUSiNm1mkbqT38fNH6v/w3o8ZwYTlWQiICNKb2qSTmbCeVodCSFtdAL7LtqXIGezy ENtAUKqDzLz7uK9LDjvMH/ftMYPytP5mI9a9VxREeS0JnYIFbob1dioqN1EmtwwGQJWo 5HoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to; bh=axl1zznr0w9UZiVfAcrbtJhjHOz7hPohZklvkARJjLc=; b=AGr7B3f53NK6it+MsaDe97XA2E6zRHneT9lKQahZm1I3gypc/UDFDzNPnnQDqJwDfT 8+4qCp6enIgceWb7KhtAZmgGhT94eM+ISjLm+y1fyVi5qX3NVRdSw2xXxZKiLuXaqtLh fbDhQpkTvEVJ3SGiVmNJj+fuObAJErNwM+FytBz3lcs4OhSMJxfaN4u3Ak30G4zc7nzY vYJobNrlIvnmlAIYY6sLwgWz3LK/DDBSWOzyWL2waksppEyslUOxEhuHB32/DS5JRrjg ljQBebFTBfgD1uGu+gw3iSnxklsvj9+a3S9krOX3sP7E0grj7rM/LyWRtjD1LvVzCFte A/uw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3si35368533plk.199.2019.01.29.10.26.45; Tue, 29 Jan 2019 10:27:01 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728998AbfA2S0Q (ORCPT + 99 others); Tue, 29 Jan 2019 13:26:16 -0500 Received: from ale.deltatee.com ([207.54.116.67]:58764 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728905AbfA2S0O (ORCPT ); Tue, 29 Jan 2019 13:26:14 -0500 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1goY5B-00053B-Qg; Tue, 29 Jan 2019 11:26:02 -0700 To: jglisse@redhat.com, linux-mm@kvack.org Cc: 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 References: <20190129174728.6430-1-jglisse@redhat.com> <20190129174728.6430-3-jglisse@redhat.com> From: Logan Gunthorpe Message-ID: <98d345af-7928-2a50-7bc4-582916dfac80@deltatee.com> Date: Tue, 29 Jan 2019 11:26:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190129174728.6430-3-jglisse@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: iommu@lists.linux-foundation.org, jroedel@suse.de, robin.murphy@arm.com, m.szyprowski@samsung.com, hch@lst.de, dri-devel@lists.freedesktop.org, linux-pci@vger.kernel.org, jgg@mellanox.com, Felix.Kuehling@amd.com, christian.koenig@amd.com, bhelgaas@google.com, rafael@kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, jglisse@redhat.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [RFC PATCH 2/5] drivers/base: add a function to test peer to peer capability X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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... Logan