Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751451AbcLDMNo (ORCPT ); Sun, 4 Dec 2016 07:13:44 -0500 Received: from mail-he1eur01on0076.outbound.protection.outlook.com ([104.47.0.76]:26274 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751230AbcLDMNh (ORCPT ); Sun, 4 Dec 2016 07:13:37 -0500 X-Greylist: delayed 9838 seconds by postgrey-1.27 at vger.kernel.org; Sun, 04 Dec 2016 07:13:36 EST Authentication-Results: spf=pass (sender IP is 193.47.165.134) smtp.mailfrom=mellanox.com; amd.com; dkim=none (message not signed) header.d=none;amd.com; dmarc=pass action=none header.from=mellanox.com;amd.com; dkim=none (message not signed) header.d=none; X-IncomingTopHeaderMarker: OriginalChecksum:;UpperCasedChecksum:;SizeAsReceived:2668;Count:17 Subject: Re: Enabling peer to peer device transactions for PCIe devices To: Logan Gunthorpe , Jason Gunthorpe References: <20161123215510.GA16311@obsidianresearch.com> <91d28749-bc64-622f-56a1-26c00e6b462a@deltatee.com> <20161124164249.GD20818@obsidianresearch.com> <3f2d2db3-fb75-2422-2a18-a8497fd5d70e@amd.com> <20161125193252.GC16504@obsidianresearch.com> <20161128165751.GB28381@obsidianresearch.com> <1480357179.19407.13.camel@mellanox.com> <20161128190244.GA21975@obsidianresearch.com> <20161130162353.GA24639@obsidianresearch.com> <5f5b7989-84f5-737e-47c8-831f752d6280@deltatee.com> CC: "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" , "linux-nvdimm@ml01.01.org" , "christian.koenig@amd.com" , "Suravee.Suthikulpanit@amd.com" , "John.Bridgman@amd.com" , "Alexander.Deucher@amd.com" , "Linux-media@vger.kernel.org" , "dan.j.williams@intel.com" , "dri-devel@lists.freedesktop.org" , Max Gurtovoy , "linux-pci@vger.kernel.org" , "serguei.sagalovitch@amd.com" , "Paul.Blinzer@amd.com" , "Felix.Kuehling@amd.com" , "ben.sander@amd.com" From: Haggai Eran Message-ID: Date: Sun, 4 Dec 2016 09:42:22 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <5f5b7989-84f5-737e-47c8-831f752d6280@deltatee.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.0.52.254] X-IncomingHeaderCount: 17 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:193.47.165.134;IPV:NLI;CTRY:IL;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(377454003)(24454002)(189002)(199003)(5660300001)(7736002)(93886004)(65826007)(47776003)(7846002)(2906002)(3846002)(39410400001)(356003)(54356999)(50986999)(31696002)(33646002)(6116002)(4326007)(38730400001)(7416002)(106466001)(77096006)(305945005)(36756003)(65956001)(2950100002)(76176999)(230700001)(626004)(31686004)(65806001)(86362001)(50466002)(8676002)(5001770100001)(189998001)(4001350100001)(81166006)(8936002)(8666005)(64126003)(39450400002)(92566002)(23746002)(81156014)(83506001)(229853002)(7059030)(3940600001);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR05MB1899;H:mtlcas13.mtl.com;FPR:;SPF:Pass;PTR:mail13.mellanox.com;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;DB3FFO11FD006;1:58CI8bBT+rrHKu+CzY+1GNaSpar7qkVeWnBSA8aqZIbOwNBjDv9Jc4XAkAGB5I6uo39dYnz18tEhp7YTueXd/c99R+yvSUiPbdV6GzuREHhHDfmjyQatwd8bT/d9wh7Gz/loph62FSUpMuEceg0z2xls4gu6HTrQOq6FFnIUiyqjOIgBW7/9gAQsMBijAcpraHv13x/+25ReDsrF9v95AnCQbDkhqIJxsH5lMeNGj4eGO7NqTGLET8PURiso4KvSdJMW/VSW4kO9kHo6LYAD21ZsAlRV5oEbMU5wvwbk8dez5v8rfELFgikWJ0qsluIkSPZNJILn2aGIXDAp9airDN7UvcTcIKpldFPqwQG+JdSl8bBmmft8uo19d4aZtXrbsxOno/QSQHy72lFXqWiY/hLA3jtGLrygd38PpF8fW9XW/2QtFTEpAe2Ymaes2vcX/46Si9/PxtjsBHAEYD2aPS5LQ1y4B0odHETFa4waH7UQKwS709MBwIvQMbN2jAhvTY3osmgKKOxVm3SbqcQdSS1Jrrh6JO5CNDJVOvvomt0k7V61OEtvsVRjYZpqiQ8DiLy3FAlvlZx5yKhF3knjlTY7FSIMRj9gMXc5deyXqF0= X-Microsoft-Exchange-Diagnostics: 1;HE1PR05MB1899;2:ElpBxU5llXIgqhyqjw7uyeBIoHAmbMceodkPLQEwDtf0lx39F4iZkoJPJ8TzDIEvJBtvqCIvu9hLqn26MNfJ3HnWgZPEZJjlcIvmBUGtfjDuJ8vR1RoTXk8MozEmzZoqKmIAGq0hGYgtK09gjRkJjn0PJz+fkm/HoyZyJoCPJ70=;3:wTnii47Y6INFBq2jjdxyTeJxgRWbXKD9vWeLA50xGoXwIy7nJPBnqb2cys1vh8X93ZKMJwL6+ccGv2qjZ87ny/yzjCouPivckbkes5pJpHcprrN9OcVVXwQb+78YsKHrqQcjkco6BQf8/inyidnVyUeaPyagjGr2m4QuX7ztPZvAsLfCGQbBFAeClNAIbNhMndpiYnDc3SkySK8GO/lESsDAjnOi1wEhj655QzOWiAezf5HmmiPsBaZCIh9Fo8EVPQA6kfzETb9ibQXpn2aSbS5nuA08ADkiO++JhYjAS3w= X-MS-Office365-Filtering-Correlation-Id: 77a4f9b1-4bc4-4ed9-ebf9-08d41c193b1d X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(8251501002);SRVR:HE1PR05MB1899; X-Microsoft-Exchange-Diagnostics: 1;HE1PR05MB1899;25:Jvs8PPY5rcqWeHXMajrgv3+8HoR/zw7nn8ZEGyP8IS55v1ZUlxNya41gJMQytl7X/2jAVT+DSYA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ZF2Q58X3wy1aIHZJiq4UEdrrsclrh4ExQ3LXMwhAc//Q3J90O+g7ErUNGxNNHjgnDJuglabgak8mMkJXwaSIv0MPCh8zDxNPXVBa5pMcu6FXDcD5hfDYPNgEy1tQnu3pxtAzXhgYK468J14P9lFpwtxT4irPMRuqtygPOTwO X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(13018025)(5005006)(13016025)(8121501046)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(6072148);SRVR:HE1PR05MB1899;BCL:0;PCL:0;RULEID:;SRVR:HE1PR05MB1899; X-Microsoft-Exchange-Diagnostics: 1;HE1PR05MB1899;4:RxiRN1S5U5RsfiFr/DevsVtiF5wOYF2CcazB3VNbqO/x+IzjoIrUV8XxlaHkHbcaFNAbKKM1yVrkj+4Z2jd5Bt3Zs121gYlCHs9ZrBbKPf5aWybMO8PK1miIojry01EtbJa+HAnpZ/cFaVUZ0Mqb9gEatSaWyBceUGFnXIupOVWq+uSodNSiEhs9vjjD0NRKTKOygzJ0g8EXwJ5Xbf3RdtBcLWW0crOifKsHyxSqBVE0zgtdBFoqLIHUsRIep/4SWwIgOMaAgXCyfIBb5SMfZT1wLNAa5fIHlOjNteuqgL+TCJwC2o9+6LZQ675cBl7KSieMRFImwzBw5IjWttX8sZY8TbtEseqstsPmvm0XUQ2n8PX9ydcRnNRbVu69maDnnaSmE444Zz1hfR+A4GmWpcY8K4nAeLT9ltsUxZu3XnzmibgFa+dZ4aB//BviqfMEg8qYeB9sUgxmulq96t5g9tv/4z10EdvFlQJn4phYg3cMPlkoCXWHGzDfC/SatdlyI2uYpn/4asct493vDsHnW9lFT8885MX7EQcnq5MoGN3707CZfd8YvWlhYCZ+dFuxry5Cwi1YbeRUeLiFeZTv6HrpmSWbp1x3MSyRTiXh0qsPXm6vbEQepPKtsJFQEX2t X-Forefront-PRVS: 014617085B X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;HE1PR05MB1899;23:WaasZpGven0QnqHLw7CNvk93V4i/0fbBEkNsj?= =?Windows-1252?Q?VzOk5jB/ITEQgPbhdC2d5RAj5XQRQcSB4F1IsZ2zCXugBFTjbWY0+RuM?= =?Windows-1252?Q?NSGvmUUcRLMkxNrDnqvq4r220TqCpDCtnqtkQIpeXctDvYNM8FLqZ5Xj?= =?Windows-1252?Q?nvbyORvy8aCgH+zbJ2qhyijwBq2JZWPeR0OUbSkrNqUPiCKzIudAnMIo?= =?Windows-1252?Q?sodKpXD1crtc1IYMU4hII7apgj71vKw+Z5cUaHddO9DPze5BZPpaQe8S?= =?Windows-1252?Q?jz7m8gX0YWhyOfG0iKpBunULvZgKKHfIUPE22Wb7aYcDBvLCGAeP66af?= =?Windows-1252?Q?gVvH4Dq1jF+Gg2PEnooJzHFrjfAbu5NC02Ux3rj32oFoAMnXNvv9rKBz?= =?Windows-1252?Q?NVi+x0aYHF7vaZp8krIp2m78GzqLxe04Hq4dgUpihEFeJvXlBOQTU9UY?= =?Windows-1252?Q?fjACK/2iYhdKbgn1KsDND+7UFis03kY8ToycMaMbpsrrNNve5x1e63gB?= =?Windows-1252?Q?nUCqQAPASOjT1Sj+R99t/TYlGINpofZ/Ix9p7/tOLTdJMVcJZXX6rmPj?= =?Windows-1252?Q?hJych3Z+NHQDqGNPew3TF5RUxu5PJR4rMY30WWn9kSj7xn5cUTAI/Zc1?= =?Windows-1252?Q?oWai5VnKSW8kzJ+1xI8A0Cg873hNWie1DJbdKS23yyGnJD/MhO3nuJsH?= =?Windows-1252?Q?DUpX3FYYbQVLxIT41sDQOwVKiRwS0IlbV9tWXmN+6zyywEMY/pdXKJwb?= =?Windows-1252?Q?5X+1N55BfLCku+PQZygDAnSYFYkpHno0N39MeeIIbxEpgP5JK1k+pBDN?= =?Windows-1252?Q?E3/641FCfEQUoe9kakbGKCN3btAPn8W+82KlzZI+Aig/+Zm5owaQqkQ3?= =?Windows-1252?Q?pjuE0p450L56ky+mwppRG1viQutXwf99zpP/O1mcomeKCx3YXSW5G0u1?= =?Windows-1252?Q?fcsdj69UJZG3mEKry3L34vRzKK7hi0zp0TI8hYw4SNaIJrN07Wcb2QCG?= =?Windows-1252?Q?307WRVvP70XRmFAGMjsTvyaVLCLjS5wGFPK39rWUpsRB15iJR8zRCuWZ?= =?Windows-1252?Q?lKHTC6H0oTiagmWoH0fEYkwvvDFVsBWjHoTXYVs1Ytx4Bxa0WSgovtpo?= =?Windows-1252?Q?kE33M+LbkPb0EXqO3aqg//CguzHNBmn1B8kBJVzTxzYXgaNe+anYWEgl?= =?Windows-1252?Q?05HoXKKzekRrd7cRpOw3yv3oqxlmtpiMEamm/dni4eOHtDSsYeJvyaWo?= =?Windows-1252?Q?hFQIDzTr+pr8O8p4gR+oGhAECT/m2ykX5su35OYKRlONbBHns/Phyror?= =?Windows-1252?Q?aTI8I9dwwftM85lOiKRtSPxMcXDe8u82qYb1PN9RtiKOgxlVLVQp//45?= =?Windows-1252?Q?CUOKcZMKKJzFvkHufStTfsd0499ejOz2FsROIV9vhRrxQ08NhK/p9Bja?= =?Windows-1252?Q?m5UZk2A4g+O9hh6ZKSCQakrG8iKFId3zUFTzCyqhw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;HE1PR05MB1899;6:O5b5I87twUzLD+VIHm7cZ5vLUbOk+XYmY8o/tIQisH3g29jOXMg8fdT5gdtClKi2dIIeEiVmxpbSEmt63QXEuCiXljdy17ToC2UIX05D8CGu/jUd/CHTB7gbTCMasOxOYv36CiB23rb9umSCFIP3n+xYpLfkNnLuJJn+pWrzFUpEkae5sHLOvyftpw2PbtTDil/Oe11whOc21t0TRrej92N9iwZonnWiqMXVNvoFhH1KoYWR2XTsYVPQC7F3ZzWX6/0T0moj6Jp3xahwdQ6e0F0t8xO6Qtsrqa9PH1eZbHpu4t7xidU3nFuhLiFa2YfoJ93Z7k+wMVuRk+7CmpjsgsT3xAluq39cycJxw9HWYJhLMmnqRlgKMv7+icCAA6OP;5:dYv/bqQYpLMK/zbU8hNBeftGMs5Ni/SaNEIf10YoO+qtP1OywODkQ8Ihe+KMNBTj6T3TOhJH8ymoY7QhaO1NV2+lhMW4SHzjCebDOu5pyrDtvbxCB7QCg/pttSJRKj+DT8Rn3ZkcwfPJ3nxJN/hbyQ==;24:kzqrNGfEis+PlgqKPfyq5iGtBIoJ0/Bmf4HkMIhlPeFUWH35bgLP8xjSnDjxFkIPDb0WP2eoaFH6nIHlo7h60UKuhdvAG/0Tjtai4WCIt2A= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;HE1PR05MB1899;7:OLeoKKINv/SBETQEbAYs61ms3zKEDmOUix9FRDewtFrXMm0Zxmncsao7y8dha+uinAyTTJz+4NW5kRV5qgaGGGJzGMUQQJO+PgwiAmOLh4Dl8J2YEuqX2NCZUenY39ea0jGO4iYqop+lCOClnZxgCXdkfL9WWct9K1ioQwKDP0/P/mszgnsXpV6u9JCD6pwSw8GjfeWMbC+rwNOvsV9/yETKkIejckWgHCCn5FyTpGagE/t5de/xvzaWism4u7zzR88DuBdzNyBpx+dJunNC4NuMuMh8tEA0Sul/3DEFCRI5UzTETE2hoZf1FvALxORUAlMYNEJC/bNyaqo6gE/4eICWaeJqb19HrGAn3ErTVc8= X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2016 07:43:25.5475 (UTC) X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a652971c-7d2e-4d9b-a6a4-d149256f461b;Ip=[193.47.165.134];Helo=[mtlcas13.mtl.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR05MB1899 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 743 Lines: 18 On 11/30/2016 8:01 PM, Logan Gunthorpe wrote: > > > On 30/11/16 09:23 AM, Jason Gunthorpe wrote: >>> Two cases I can think of are RDMA access to an NVMe device's controller >>> memory buffer, >> >> I'm not sure on the use model there.. > > The NVMe fabrics stuff could probably make use of this. It's an > in-kernel system to allow remote access to an NVMe device over RDMA. So > they ought to be able to optimize their transfers by DMAing directly to > the NVMe's CMB -- no userspace interface would be required but there > would need some kernel infrastructure. Yes, that's what I was thinking. The NVMe/f driver needs to map the CMB for RDMA. I guess if it used ZONE_DEVICE like in the iopmem patches it would be relatively easy to do.