Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6249322imu; Wed, 30 Jan 2019 11:20:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN4m401XUxZLHddfujpEtFnjgtIDiIH2/o6F/KF7V3J0zuFB5FkgwA5954TtjzkcFKIP4EUR X-Received: by 2002:a62:5dd1:: with SMTP id n78mr31245794pfj.58.1548876019977; Wed, 30 Jan 2019 11:20:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548876019; cv=none; d=google.com; s=arc-20160816; b=i/8LW4kFfed/smIx1+74fXfx4l7Tc0+eOcS2OP4kU1ERC87ZpNCmu2Hy/Twi53zi7K BH3PWjsPZRI3Sh7hur1X8S6V1paQzIuWjA6hbOYP6K4sCG62JlDemeAPKwPDgLcDNCQq HqBeDWS6agRLTmWaniKWHA2cd0IvAn8jU20I2EQrpRbarfJTGl+JDe38NbX1stZKSAPK SfnO0TYRVmSm1108SJfiPo6/GXRXUKmP48DN5+4NcWmbHa8dnfQh/e7G9R6ByoQPc05m ubTvdiy2VisuM7OD0NlHfTLOJxcRMrt/rvGcnYdF/pwtOGcv4CfkZio8K/JBCe2QpxeU Rq2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=1Gazb6Jp6B360Dq+MkPlp8a64vElOV9HlssPVSOq7PI=; b=OsM7jZ8haFGbpaD/yfrurFtlzs6R8xfxkkrU3/H9K6ZuEaGzLrhcp2D7P5DGlO/s54 rmHfuycKcjBmgt3Ih1kyzTTTQzQQNTGFcpGK7SUoWBI7ZvFe9K7EowpH0Z+ivSkNWAMv FfsjZNVJzKuTgxno1kv+DucSyxsHKYzUXWFcdkYq4+Pl2iuMa8E8NciefEwjRRlZxVY7 YUa9XcbC/QK1JF61lGpoQ5hhBe3MCwsmdA1mO26DXha/fPCJ8cEk+Tfc7cvaYzRf6QKX jCne0Caf/UM7ZsmE7w2y4SF6WmbJi2OOrnTwzXaRct/ANBgLNe2gil2G0yohtydVe2Zu iOlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=UzX6sHRR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y29si2033195pgk.376.2019.01.30.11.20.04; Wed, 30 Jan 2019 11:20:19 -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; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=UzX6sHRR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387518AbfA3TT6 (ORCPT + 99 others); Wed, 30 Jan 2019 14:19:58 -0500 Received: from mail-eopbgr130077.outbound.protection.outlook.com ([40.107.13.77]:52977 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728197AbfA3TT6 (ORCPT ); Wed, 30 Jan 2019 14:19:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1Gazb6Jp6B360Dq+MkPlp8a64vElOV9HlssPVSOq7PI=; b=UzX6sHRR56qy4HbKSErrFp0EcAChEVbY8N3BvrW9CePVEyW4vY+fpOg4QDe8VHDBBt5OBBuTZiGjJizPcNLUMnlotIiYO8iGAwlVBazrNyqdX9rYYOBJg4MOXFs06OsiWPWNeMApeoVn7ph52XRTWDS+ZxAgnsGIwSghnx4xzNA= Received: from DBBPR05MB6426.eurprd05.prod.outlook.com (20.179.42.80) by DBBPR05MB6395.eurprd05.prod.outlook.com (20.179.41.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1580.16; Wed, 30 Jan 2019 19:19:52 +0000 Received: from DBBPR05MB6426.eurprd05.prod.outlook.com ([fe80::24c2:321d:8b27:ae59]) by DBBPR05MB6426.eurprd05.prod.outlook.com ([fe80::24c2:321d:8b27:ae59%5]) with mapi id 15.20.1580.017; Wed, 30 Jan 2019 19:19:52 +0000 From: Jason Gunthorpe To: Logan Gunthorpe CC: Christoph Hellwig , 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" Subject: Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma Thread-Topic: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma Thread-Index: AQHUt/rA/dLikqWEmEaIytHIBNLPlqXGkyOAgAAJwICAAAX+AIAAEreAgAAFNYCAALluAIAAoq8AgAAIC4CAABKaAA== Date: Wed, 30 Jan 2019 19:19:52 +0000 Message-ID: <20190130191946.GD17080@mellanox.com> 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> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: CO2PR04CA0185.namprd04.prod.outlook.com (2603:10b6:104:5::15) To DBBPR05MB6426.eurprd05.prod.outlook.com (2603:10a6:10:c9::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=jgg@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [174.3.196.123] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DBBPR05MB6395;6:/EUG6rN1Pl0LhGz+YLBfOhGglyVXmjKrFuRN+IvaFnbSOe68/O6+nK72Cm6QcD7d0TSvLFJUAKBpA6bJUnI1FuDWcOvtUehF1tj+zhv0iK43AGAf0usyGG5J+PaO1uX3AFNNc3wGApQ3B6Dhy1LY9g+TjT1mH42dYeWEnXWaxyh7sqlLJdwzVQvPULfsZuWaNgXL+g255UwHb4t3feNg+Bd3l3sw2CalhRiDJvancL21/OOAJi+v8u6biUPdERh6gDySgJPOTqZboa5et7QHdyyVkjXPgllhiY9+FsXK0IKNNyHJMUunwa88Th8LAPGRtFrGBbvPrCn3Y5kbMOKgp7kfcmoTy83TPNEiLOxVo/jdmX5h+Bl+9P/kESw0GETfp3mz5S/lZFHykVMvNdHnt/vpZb7Z1y0opqIlP72tJ6T3iqQnpvSFamcI9SmIXjvBdPmSahkEEWIoc5rt3WZRFQ==;5:Crbz8a9BZD54YXFZevGAFLMvdcWZa7qezxOdj19uIrgLDz8xpGwotVj556Qa/XfI3d8rZSpzrPxQDqj25ILs8GOiyMfQumCcDMvwyarlLEpc9fHo7gPGI7XIp+2ErYoOHhWdFfq53cvB8XZ2pUmVi/KLgaGoJAuuCNUhyqtebpfDqFfExMLLrPEWtPRpVJ6z4ZohVdySHhLWERuOr8Xgqg==;7:8j6QfQXfIbjgtF1JWbSGx/TDa/PqeDpiB9Dv9g+Vyh89Ky8eMRYnssf9rBAoRHzsV4JhMUDdd7/ZetNe5SUtPVhetlPATm2m9cptMYVpfRnOsyS22InngAFQklCJLKcRiH8TaV2OBRP9A8aoSxfwVQ== x-ms-office365-filtering-correlation-id: 141dbce2-fcb6-438c-3fab-08d686e7e8e6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020);SRVR:DBBPR05MB6395; x-ms-traffictypediagnostic: DBBPR05MB6395: x-microsoft-antispam-prvs: x-forefront-prvs: 0933E9FD8D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(396003)(346002)(376002)(136003)(199004)(189003)(54906003)(316002)(6246003)(68736007)(105586002)(446003)(2906002)(25786009)(53936002)(97736004)(4326008)(36756003)(76176011)(2616005)(476003)(11346002)(106356001)(33656002)(53546011)(6506007)(486006)(256004)(217873002)(52116002)(26005)(99286004)(186003)(386003)(102836004)(6116002)(6916009)(3846002)(66066001)(4744005)(1076003)(6436002)(6512007)(8676002)(81166006)(305945005)(7736002)(71190400001)(6486002)(229853002)(8936002)(478600001)(81156014)(93886005)(7416002)(14454004)(71200400001)(86362001);DIR:OUT;SFP:1101;SCL:1;SRVR:DBBPR05MB6395;H:DBBPR05MB6426.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: uZltpbhLDx/I/aSUk9bXd8dUSVjJoSxhzqz+W/18RtNysqS/wJ4mPoHP7JdgoAtsnUekdTPo/8qwYi+dogonykLMJ1Pd/2rGSRZoEf8c3xKpQ0QR+JwvdTI3+PcXk+S5aOS8flwScOXfAlrKdYdMiBiUxnhTXM5MWYKW6DCe82M34QwzLox92rry6x7I0XoIdut7dOTe7jm4L7z3TBd2gKD7/aRITwT8AEv9EMjU7t4a4wyQK+/NvqXaucg5XBshGoXZie0Fl3FJvCInwLy8i9H1ojviDjdieAytVAAz83CNLzFb1o75DuV7AaEbQQAw1tTSO//erXE20cygsJmUSWYloEDMen3fsNCzfaTMKON48DYZ/7zf3TWYIuBzBY7e3qsVAlxr/YBl4yWs17Ewht9WRm+WOIOERRsSd1gadK0= Content-Type: text/plain; charset="us-ascii" Content-ID: <2608ADBADE66244CAF93015265B4523A@eurprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 141dbce2-fcb6-438c-3fab-08d686e7e8e6 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jan 2019 19:19:52.2454 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR05MB6395 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 30, 2019 at 11:13:11AM -0700, Logan Gunthorpe wrote: >=20 >=20 > 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. >=20 > 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.=20 The only user change here is that more things will succeed when creating RDMA MRs (and vice versa to GPU). I don't think this restricts the kernel implementation at all, unless we intend to remove P2P entirely.. Jason