Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp250857imm; Sat, 1 Sep 2018 01:25:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbzGo+aqIKIwsqwkMsJQ4G6UwYvEUARVTixU+Ul1M8EYtlV2NlyAC2YWn1OdxRoc76IMPRL X-Received: by 2002:a63:1316:: with SMTP id i22-v6mr17430237pgl.86.1535790326074; Sat, 01 Sep 2018 01:25:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535790326; cv=none; d=google.com; s=arc-20160816; b=sXmc03CTgsWJcazByd/DQhzdFkI6R19cNfHWy/4JZuUiDd2C7aN3hNuVAGbuWdlZrU UgRvM9OhR5qCA8ZSap6QjKtFSt+2vQvj7C3Rac3aTEp9Lf7y03UaDuJmq+iubSCTgo23 kWibDt3qJiHpNl4x1EeOAm2EBjrg7qSRkg2ecDYK6cCevU3sLPGUXNwabSgwpGhUrhj7 svPzzHrXrgzaD80CtF/8xSHo90pnFpUZdT4yhWKpHVH5T11ttVYsNv34fvzodkdBws55 SkQ95VFxwcdLpJnfLmfDJlYNAhwyrEWnaBq71b7e7qic6uC10TRdinmI8lkUZXoAZSlD hXnA== 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 :arc-authentication-results; bh=FTOKEjhvubcPTxxSSB2LvboTXbQqAyFMnzlm9I7PlSk=; b=ZhIBJck0Np65ZEkwHAF2+lgJXvf2/PYzsS1KQXCxL1GHAmYFyL3X6ZYvqywrmkdwPk u6SGC1iY/8PMwu248uf6++53tjyGqaTj5jj0djdyFqfop+kZHfIPlB8mklipe4bW4/uE h1g472bXJJ4g4fmFxIHQFVQPgksVhxBe3q+WhWDXrq9tKsxCRd9paoz1/Ut3cawmWLIc FMhsF5FodUH93i0f9uxBkTeXjcilJGunnlj6hNSuvuoLzfPOjg2z/coBpx6rrcVHtst9 TraeEGl5eqs4L9+2y4aacVyJQEK4+XViktbeRuTjx/4Wwi9SqUcVQJIptk6uEghIhUDj KCIg== 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 s3-v6si12944433plb.270.2018.09.01.01.25.09; Sat, 01 Sep 2018 01:25:26 -0700 (PDT) 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 S1727360AbeIAMfO (ORCPT + 99 others); Sat, 1 Sep 2018 08:35:14 -0400 Received: from verein.lst.de ([213.95.11.211]:56595 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbeIAMfN (ORCPT ); Sat, 1 Sep 2018 08:35:13 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id D010668D00; Sat, 1 Sep 2018 10:27:03 +0200 (CEST) Date: Sat, 1 Sep 2018 10:27:03 +0200 From: Christoph Hellwig To: Logan Gunthorpe Cc: Christian =?iso-8859-1?Q?K=F6nig?= , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-nvme@lists.infradead.org, linux-rdma@vger.kernel.org, linux-nvdimm@lists.01.org, linux-block@vger.kernel.org, Stephen Bates , Christoph Hellwig , Keith Busch , Sagi Grimberg , Bjorn Helgaas , Jason Gunthorpe , Max Gurtovoy , Dan Williams , =?iso-8859-1?B?Suly9G1l?= Glisse , Benjamin Herrenschmidt , Alex Williamson Subject: Re: [PATCH v5 01/13] PCI/P2PDMA: Support peer-to-peer memory Message-ID: <20180901082703.GA670@lst.de> References: <20180830185352.3369-1-logang@deltatee.com> <20180830185352.3369-2-logang@deltatee.com> <2711b3a7-f582-0dda-8ac2-530be7bda1bb@amd.com> <439181bb-6cd6-0ab2-bca6-fc820845166e@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <439181bb-6cd6-0ab2-bca6-fc820845166e@deltatee.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 31, 2018 at 09:48:40AM -0600, Logan Gunthorpe wrote: > Pretty easy. P2P detection is pretty much just pci_p2pdma_distance() , > which has nothing to do with the ZONE_DEVICE support. > > (And the distance function makes use of a number of static functions > which could be combined into a simpler interface, should we need it.) I'd ѕay lets get things merged as-is, so that we can review the non-ZONE_DEVICE users. I'm a little curious how that is going to work, so having it as a full series would be useful.