Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6187202imu; Wed, 30 Jan 2019 10:14:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN4CD6yxioKb2J55zj+o3M8EjY8VTcOJkgYCQ7haR+281O1nu7PJBvtQQ5Vmye4TyQh5H0Ft X-Received: by 2002:a63:7e5b:: with SMTP id o27mr28305227pgn.214.1548872089480; Wed, 30 Jan 2019 10:14:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548872089; cv=none; d=google.com; s=arc-20160816; b=iCzRC5K0DoC7LGVv71wB5+e17YeE781fWU0kQG6Mn+IjqL+B2gOVWrArvOT33a2zxa rU6nuSBhmZ5/v7YpqiJpO7PSMqHxAOXWVJed6yIgXb15VieUVcSIU/Bw5DAZlWNObrEI yTm/4GELIrzpQUFlHhOLsX2fH2J1eHFcPAc3A1boZPrTMsQfAKLOsiS3Q+dnnHoUjp7F kjpJKVHizN/ihDCA3oB7M/DElmbx0iHbmkjK6D17rDLkT0hzCK4L4ArYtzIhObNNONw0 tAE6+jIAyg5LMTZeA4hjHDmISzI04KSP+iJh3PrYDdmlePbL16HMSkEWmyzVn8IhvqWl HnmA== 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=tbPMNGt3rbr9kB68jl16lEBm3Q+tLFUQ270bqirHpk0=; b=nJCMA5AlA0qnNRDzGViY5lJHfBLSXg1C6iyE0y5j8KcCPy+00WFS35EqWTs9yw/DC+ WTGOsdWIF5zcYLST5nTcj2qrsKff7Aez8dFBL5JrtFmWmTYdqqHsN9LLrMvik4If1G0r UjyXnLk9O7M2hNKA6Wr6ZbXL5kdFAMurRGgbeF4YsSl5eX8+hJIkiF/lki2wlQ1bR4HB QfPpH3cjCCwxTeltP0odVuqugY0YpBzq5GdbwhfF1LKMfG7QFRfdN6uzvlyXSc1xDgK0 ylZi4B6o2fohwfa6aB0Md6NJf00JWeFIJweH7yDZ+zpU3V/dvnWSHi7bAuHmiujWEqr7 16Bg== 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 g98si2184501plb.99.2019.01.30.10.14.32; Wed, 30 Jan 2019 10:14:49 -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 S1732882AbfA3SNZ (ORCPT + 99 others); Wed, 30 Jan 2019 13:13:25 -0500 Received: from ale.deltatee.com ([207.54.116.67]:40016 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727473AbfA3SNZ (ORCPT ); Wed, 30 Jan 2019 13:13:25 -0500 Received: from s01061831bf6ec98c.cg.shawcable.net ([68.147.80.180] helo=[192.168.6.205]) by ale.deltatee.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1gouMO-0007KC-FJ; Wed, 30 Jan 2019 11:13:17 -0700 To: Jason Gunthorpe , Christoph Hellwig Cc: Jerome Glisse , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Greg Kroah-Hartman , "Rafael J . Wysocki" , Bjorn Helgaas , Christian Koenig , Felix Kuehling , "linux-pci@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , Marek Szyprowski , Robin Murphy , Joerg Roedel , "iommu@lists.linux-foundation.org" References: <20190129174728.6430-1-jglisse@redhat.com> <20190129174728.6430-4-jglisse@redhat.com> <20190129191120.GE3176@redhat.com> <20190129193250.GK10108@mellanox.com> <99c228c6-ef96-7594-cb43-78931966c75d@deltatee.com> <20190129205827.GM10108@mellanox.com> <20190130080208.GC29665@lst.de> <20190130174424.GA17080@mellanox.com> From: Logan Gunthorpe Message-ID: Date: Wed, 30 Jan 2019 11:13:11 -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: <20190130174424.GA17080@mellanox.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 68.147.80.180 X-SA-Exim-Rcpt-To: iommu@lists.linux-foundation.org, jroedel@suse.de, robin.murphy@arm.com, m.szyprowski@samsung.com, dri-devel@lists.freedesktop.org, linux-pci@vger.kernel.org, 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, hch@lst.de, jgg@mellanox.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 3/5] mm/vma: add support for peer to peer to device vma 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-30 10:44 a.m., Jason Gunthorpe wrote: > I don't see why a special case with a VMA is really that different. Well one *really* big difference is the VMA changes necessarily expose specialized new functionality to userspace which has to be supported forever and may be difficult to change. The p2pdma code is largely in-kernel and we can rework and change the interfaces all we want as we improve our struct page infrastructure. I'd also argue that p2pdma isn't nearly as specialized as this VMA thing and can be used pretty generically to do other things. Though, the other ideas we've talked about doing are pretty far off and may have other challenges. Logan