Received: by 10.223.185.116 with SMTP id b49csp7795507wrg; Thu, 1 Mar 2018 11:12:53 -0800 (PST) X-Google-Smtp-Source: AG47ELv+nWWG0KloxyrhJwtBn+lbRRXa+BlnC37YvGF91sU+i3msp/AbCfrrFnv42jkB8rN+KYES X-Received: by 2002:a17:902:8d81:: with SMTP id v1-v6mr2825658plo.430.1519931573569; Thu, 01 Mar 2018 11:12:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519931573; cv=none; d=google.com; s=arc-20160816; b=xwAOrs3kzVYhrpRfCAW8yuHeIwHmdYF2CRJYdkd50Lr/BGe4GHeHCa0kq7o010WVI9 ktXvm3+VwWKjd41aUFHwfepwDoA69LC9leYtSDUMVX66c/J3JniX059DcN8DHP+SKnYm qLljYd7Kyi6JqIz3o7TlQi5A68lpjpmTtTS1mD8KpBrktIY2P2Ia/iRE8lfkM2A+1M9D nrZS+GSvRWBHIBLvgsS4ZEhm/b1tQplkiHobqKaRx/pHdES5lcABaM1+lUpYM7k9osST 2hq3XdSFlago9cauwqCIiu92qho4YwAHiJWwGiZOc54cwjsM2/os6eYuqVQx4LF1Hi2h +6lg== 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:arc-authentication-results; bh=GzhaMMrXocRwZCi+M7PfBXz54Lu9+U/wL6Rwy1Pb/m4=; b=zeLG7ulfmldU1+usQMjK83AiJWsJvmgxPCGvl0XOA6Yoz1Cdn8L/qufKVfQzTkV8bm 2rQb2GlMBZgAT2qRxfBK5TU5rLZx6ptZBisIgDieSOb8X6kdRJE9SeUG52qKtJ7+KK3I sCTUxobDz9Eqix3x/hp9m3E/WGZ2UTcco8phpVNVbyAn7DB9qOGqj93i+vyZmMePTwHN Wko4g6H1OzLWbpQAENF7tnV6bi6x7oMoKAYC9+90MKpejZtbQ4+SknrC7PBkiT/RB4by hMfacO8MHChGAAFbKqhsmG3QEOmMCxy2nCNiIy1V7MIUzp6Egi8d0RyMZn60V/sPmxPG iarQ== 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 d8si312840pgt.246.2018.03.01.11.12.38; Thu, 01 Mar 2018 11:12:53 -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 S1161195AbeCATKb (ORCPT + 99 others); Thu, 1 Mar 2018 14:10:31 -0500 Received: from ale.deltatee.com ([207.54.116.67]:37524 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161124AbeCATKZ (ORCPT ); Thu, 1 Mar 2018 14:10:25 -0500 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1erTap-00008z-6Y; Thu, 01 Mar 2018 12:10:15 -0700 To: Sagi Grimberg , 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 Cc: Stephen Bates , Christoph Hellwig , Jens Axboe , Keith Busch , Bjorn Helgaas , Jason Gunthorpe , Max Gurtovoy , Dan Williams , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Benjamin Herrenschmidt , Alex Williamson , Steve Wise References: <20180228234006.21093-1-logang@deltatee.com> <20180228234006.21093-11-logang@deltatee.com> <749e3752-4349-0bdf-5243-3d510c2b26db@grimberg.me> <40d69074-31a8-d06a-ade9-90de7712c553@deltatee.com> <5649098f-b775-815b-8b9a-f34628873ff4@grimberg.me> From: Logan Gunthorpe Message-ID: <7163af93-2f37-a8b6-986a-3cb2e62bee29@deltatee.com> Date: Thu, 1 Mar 2018 12:10:12 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <5649098f-b775-815b-8b9a-f34628873ff4@grimberg.me> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: swise@opengridcomputing.com, alex.williamson@redhat.com, benh@kernel.crashing.org, jglisse@redhat.com, dan.j.williams@intel.com, maxg@mellanox.com, jgg@mellanox.com, bhelgaas@google.com, keith.busch@intel.com, axboe@kernel.dk, hch@lst.de, sbates@raithlin.com, linux-block@vger.kernel.org, linux-nvdimm@lists.01.org, linux-rdma@vger.kernel.org, linux-nvme@lists.infradead.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, sagi@grimberg.me X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: [PATCH v2 10/10] nvmet: Optionally use PCI P2P memory 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 > Wouldn't it all be simpler if the p2p_dev resolution would be private > to the namespace? > > So is adding some all the namespaces in a subsystem must comply to > using p2p? Seems a little bit harsh if its not absolutely needed. Would > be nice to export a subsystems between two ports (on two HCAs, across > NUMA nodes) where the home node (primary path) would use p2p and > failover would use host memory... > > Can you help me understand why this is absolutely not feasible? Yes, it would simplify things. However, as best as I can tell, when we allocate memory we don't know what namespace it will be used for. If there is a way, I could probably rework it so there's a P2P device per namespace. Can you show me how we'd know the namespace to use in nvmet_rdma_map_sgl_keyed()? Thanks, Logan