Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6155074imu; Wed, 30 Jan 2019 09:41:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN5L2jNcFx1xxRNJjBE20FT9Gv4zYa4/Cho8bXfqirsA+DUrfamgTrh5pyMJ2xV9+TTGjnM9 X-Received: by 2002:a63:193:: with SMTP id 141mr28562245pgb.136.1548870097179; Wed, 30 Jan 2019 09:41:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548870097; cv=none; d=google.com; s=arc-20160816; b=mWG30mUsSbCLmlLOxElWzvEqLHYAU8KeF6W6mkhC3MvrZfzVp6ru9TZXY8BxXHXCKd +Jfkzf8gPxmIqOKVF26JlUPEqhPfuBJcU2T0sGVBuQcqDIaSMe1lixcBLAwRTA/Yysh/ HdF+d7RInwNiOMnUnHe/qy86UWvCs7Y8AqqB8nsvYgW3bYdfc/0a33ZiiuXDjBuh+gTu Ll4BlJHtm0A68DbJe87AYpR43X4ZH5fvp8lyKZ4/2r56wAIvV2DlnzBtpkG5fjP4eAMH s2eZHHo6CXmD/GgZ5SZYZEmRU5iS3F5ZZQnPqC7kkNr6Vu1D7fp3MXcBr+hw5BAX2cBx iVyA== 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=HFBwZlA2zzCYNeNt7uJfqDsoesFpddqG96hIhNSMGQ4=; b=IGm/dv7y72SzuSACYeTY7CF7V7PBsT2jYWw6D1u8ZNVd/tF1DJXwN46tFvf5yhFkei 6Et+ZCIVCV4w4dYDo9vTEgu5SdJs+ByWrH77bAxwJ0qP4huerkJVH+q+VqAUTCLSz40n Xbv9IP6rq7GGyxSL7hrZ2SbvcnfYdZG0lVCSnhJZ4gxGTQTnrd9dRzwEtCmXOe7bUCsb 89EzJcSAlTAX+bWwBSyb/+aVVg5FJGQrsvIRjqw2knRbwBX32ci4rD+fmm3x6pbZA+AV CohMng25eWFOPQnM/SSXwm7mWa2JwA6vPu2wJDNHGZ68dFGqWGigqLxdlAWHSywfYqNp /xqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=okaDjsxS; 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 b128si2007874pfa.283.2019.01.30.09.41.19; Wed, 30 Jan 2019 09:41:37 -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=okaDjsxS; 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 S1732554AbfA3RjN (ORCPT + 99 others); Wed, 30 Jan 2019 12:39:13 -0500 Received: from mail-eopbgr10060.outbound.protection.outlook.com ([40.107.1.60]:26432 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732535AbfA3RjN (ORCPT ); Wed, 30 Jan 2019 12:39:13 -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=HFBwZlA2zzCYNeNt7uJfqDsoesFpddqG96hIhNSMGQ4=; b=okaDjsxSpeKecjLldjouoR/XYA+lS0F3IsyaPgqfhWR0PutAUtijM47Z34ep+9gVESHm2ysdfUFhNomf8lVSYbbnOwf7QJiTLJMZwzcstjbqMLJZqt1J7SK+4N9aX5LjwvpWDjE+f73KJZNckCBvNFIclU3/P8cTvgKEL0sU82s= Received: from DBBPR05MB6426.eurprd05.prod.outlook.com (20.179.42.80) by DBBPR05MB6281.eurprd05.prod.outlook.com (20.179.40.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1580.17; Wed, 30 Jan 2019 17:39:07 +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 17:39:07 +0000 From: Jason Gunthorpe To: Christoph Hellwig CC: Jerome Glisse , "Koenig, Christian" , Logan Gunthorpe , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Greg Kroah-Hartman , "Rafael J . Wysocki" , Bjorn Helgaas , "Kuehling, Felix" , "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+AIAAEreAgAAFNYCAALluAIAAKlaAgABZ/ICAABl4gIAAA2KA Date: Wed, 30 Jan 2019 17:39:07 +0000 Message-ID: <20190130173859.GA17915@mellanox.com> References: <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> <4e0637ba-0d7c-66a5-d3de-bc1e7dc7c0ef@amd.com> <20190130155543.GC3177@redhat.com> <20190130172653.GA6707@lst.de> In-Reply-To: <20190130172653.GA6707@lst.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR18CA0047.namprd18.prod.outlook.com (2603:10b6:320:31::33) 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;DBBPR05MB6281;6:i3Ddi6MlAPQ+2fGC0MjB8zJ2BrxePCDXP1bJgz14FBKuXzLSyqICg8fHgfIpLsg/AXWq9voOnF6zWCHonnSRpKTsUif51fJmlQP0pjp7DdwtRyvandWdW3jJWJAuZkd6l5Uro+mfeB7pGENXbeIrIr9uHxthbZjwFAr6jj8nDA+9bqM8uqWUOV7HUzB9jM16dG/XUfo/4xvxHBgqzm9RmM3g29wUcFEp2pi6DW95Bx95CAH2KLcZ/GmhxK4Eb+lEMT1kTtEq7bFr0zUpJXhzVJKAyz9QteIvJsk09hm3JcCNhCMMMPyY0cg8AeCnKjYLBHNkGF5Cp9w/68VRBgYZv4QryL8YNZ87L8wLKHYlmZ8unIcG+7Qvs2iNyb27TXE3n/airJrRF7tuBRPm+W3yCxT18K2jRzBGUk0qE5X2uTi08bYrqtDNj9LK9UFzW0COs7D+w+6OJ0GNpZ5/OyMtMw==;5:Eu69CSHFrP+uRWDH/Sq8b6X1IJxfnupRxcHpGepUc++XCwtVfCzqRzPAk3QZ25NATa8IQMoCr6YC6KzeJJKE1pN/qO+/T2eI1zG1crBt3MaH+/KswOQbGw/0ym9oddo+mBjyyVoVHB+XEr1ithV6eLwlaD+5RQIWqRwg4wSynnnZXaJzDnS+QpX87qf7EJ/IQuSysdyjBAjBpPJK4BITvQ==;7:P7YikNjitzseXWj2XC23fmhH8kMsOO6B4SYiTr4tkkCTowerkRz95qPMrpAu3RdKdN3WeB2KLKPuxWRuO0kUvB6VfR0QuPT6jVrMzey1AuL5L6qvvGm41SnnNokvcWyi1k7xWLSTF1wEl4Th8/IlUA== x-ms-office365-filtering-correlation-id: 249e8713-9439-4f8a-696a-08d686d9d5c9 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:DBBPR05MB6281; x-ms-traffictypediagnostic: DBBPR05MB6281: x-microsoft-antispam-prvs: x-forefront-prvs: 0933E9FD8D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(376002)(366004)(346002)(136003)(396003)(199004)(189003)(1076003)(53936002)(2906002)(229853002)(6486002)(4744005)(3846002)(6116002)(36756003)(68736007)(93886005)(6246003)(6512007)(11346002)(446003)(478600001)(33656002)(102836004)(26005)(186003)(476003)(52116002)(76176011)(14454004)(105586002)(106356001)(2616005)(7416002)(386003)(6436002)(6506007)(256004)(71190400001)(217873002)(4326008)(6916009)(86362001)(486006)(25786009)(97736004)(8676002)(81166006)(305945005)(66066001)(7736002)(54906003)(81156014)(99286004)(71200400001)(316002)(8936002);DIR:OUT;SFP:1101;SCL:1;SRVR:DBBPR05MB6281;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: 25TotRKO5RJFA61APu7tnxgk8w2lU8T8dWgCrap401DSik3vwYJuf9mLXnw0C3RGPFBJ1FcGOZCi2pPMKPszvIxGjnWEGnK0j2wDr+H+h2eFuv5QNhCUClMqPTQG8ZgrObwP7Ou0zfd09E1THhtHiXhfro7jC2m+kNC6Msi3++3xJ42ghvnMSBCwE6jgKplsyASOwLPkcZJgglDZwjNvHBBAceqTd/IEe4Hz71/+4V5xhDBE1+nnHbS95l4QtvIw5i8CH2pKc+w5Hkm5enLug/UolVdczHhbUqHFh9w+6xfQwsOOu4cQlOPLE/uqF1rPyzWejdLz/Qs0VJdbGDHOhR4GkoCXgRJ2oXTBJ61OmV2wyGj3tTahSv6ijGkUi0P7A9uii/v/vLrVcGMQkm6/fmer69QJGGZ2cSfiIOVodhs= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 249e8713-9439-4f8a-696a-08d686d9d5c9 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jan 2019 17:39:07.2255 (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: DBBPR05MB6281 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 06:26:53PM +0100, Christoph Hellwig wrote: > On Wed, Jan 30, 2019 at 10:55:43AM -0500, Jerome Glisse wrote: > > Even outside GPU driver, device driver like RDMA just want to share the= ir > > doorbell to other device and they do not want to see those doorbell pag= e > > use in direct I/O or anything similar AFAICT. >=20 > At least Mellanox HCA support and inline data feature where you > can copy data directly into the BAR. For something like a usrspace > NVMe target it might be very useful to do direct I/O straight into > the BAR for that. It doesn't really work like that.=20 The PCI-E TLP sequence to trigger this feature is very precise, and the data requires the right headers/etc. Mixing that with O_DIRECT seems very unlikely. Jason