Received: by 10.223.185.116 with SMTP id b49csp7260260wrg; Thu, 1 Mar 2018 02:34:59 -0800 (PST) X-Google-Smtp-Source: AG47ELuzi9zDdcxI2+1MEl0i4TTbTCNErFZOPvzsdhaJ+R60DO7DlSsaSoKI7q2g617Yy3aa918g X-Received: by 10.99.96.206 with SMTP id u197mr1115532pgb.261.1519900499281; Thu, 01 Mar 2018 02:34:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519900499; cv=none; d=google.com; s=arc-20160816; b=KdQpzyCQUgMBqDoY/WWEzMhb+3CrrngEdjvQpvhr/rOfa+vs7IW77eeIGgpp41otRV 5NjB/lPTYGqaDCUra5YWAbQ+vkB20S0jWOPbhQONMvdyyiA+d9b3jt/bmD3UapRO8z5S UmrCJkA6kMOBzyEpJpUO//l7ovB6X0rYydBowhOMs3WtbTpjRD3f2laKn3jIkt75ERuT N6KV/3jvPxZ3TUhrYidNkxem9viIj0FJun1NlLtSF/o35Pg/0MXr0XQGkZXmJkYq8TWi mBB5TL9U9hXuYecV0vV7QraotvdoNv30n01ozYbPmSi9vndjZuXnPxG3bV8zG0Ad5Q8U H3vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=VJSOVOFcsAX6yuXWImn3wnq3BP98RHwXaayDmNYUbF0=; b=PzIazzOnQidqep+cjaMp/tPEQlRvJxU2pt8pVa5rhIIExGKRJfnRRwxOrVP43gqkaU LGNjemVryCpHS53uG0V8kJNooCFtvazVyJgifjgh2jNollR7iBJVGdUxQ0A/jLv3/5Te LGQxCaUlQlO7mq81Sn3PzNBS7BDuygamJerhe8nuUMbM/0WLyUztnlp5h/OKyy2C4MaL T/lLBGcSfnld3Vo/jJSqyOWyncDDTH9oFNBnpXpoApOsRemk0+W3WVb3XfXhbjL3srQI bCwEQsJhkvkHkBRNELDXBxgfIWjua1nweYSp0O83aZZSfu0l9upp+ul//l2lLZUqrA0X Yxfg== 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 i2si2300825pgf.145.2018.03.01.02.34.44; Thu, 01 Mar 2018 02:34:59 -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 S966892AbeCAKcB (ORCPT + 99 others); Thu, 1 Mar 2018 05:32:01 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:33817 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935717AbeCAKb6 (ORCPT ); Thu, 1 Mar 2018 05:31:58 -0500 Received: by mail-wr0-f196.google.com with SMTP id m5so5541722wrg.1; Thu, 01 Mar 2018 02:31:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VJSOVOFcsAX6yuXWImn3wnq3BP98RHwXaayDmNYUbF0=; b=GI8S5IX5REeibxSpfjvhOcS0HylFinwCXj8yhYu1zk9ed3KmbywTjxmFB3Rz6zsK2s pfer9bwCyM9KTyr6avr3a0xmCtOwAqnqgbFbzbIo4bAFFxzA873Jmbo7+jWo5b931Gu5 QIDTvsbbSJl6dQS8tDE77IJPIQCWezL5dkrsUodfcX7XjnHVEWaNPP8RXE4gDbzMByrr fvP+6lHwS6ROwgX2cHd5Ki+L1UOkIfau2nvEe15cVpNYIFmayeHNT7YveOGsEJFjuJ5N WgGMozohUBrcAA0O0Wm/wMkLR6JWPvDIWgVle45wBsmosrbJUWzY/8//FgIoI+t5Bc2t XQhw== X-Gm-Message-State: APf1xPAA10ljOSL2oRorHDSNp6s2E3RR7yIQYfWv7mgkK5jBTB5pAneg JDCtLBfC2TihNBNUoqXU60Y= X-Received: by 10.223.161.144 with SMTP id u16mr1309575wru.137.1519900316913; Thu, 01 Mar 2018 02:31:56 -0800 (PST) Received: from [192.168.64.110] (bzq-219-42-90.isdn.bezeqint.net. [62.219.42.90]) by smtp.gmail.com with ESMTPSA id 78sm3458917wmb.25.2018.03.01.02.31.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Mar 2018 02:31:56 -0800 (PST) Subject: Re: [PATCH v2 00/10] Copy Offload in NVMe Fabrics with P2P PCI Memory To: Logan Gunthorpe , 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 References: <20180228234006.21093-1-logang@deltatee.com> From: Sagi Grimberg Message-ID: <90b658d9-da8a-af36-ad8f-a72ef0c6e3c1@grimberg.me> Date: Thu, 1 Mar 2018 12:31:53 +0200 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: <20180228234006.21093-1-logang@deltatee.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Hi Everyone, Hi Logan, > Here's v2 of our series to introduce P2P based copy offload to NVMe > fabrics. This version has been rebased onto v4.16-rc3 which already > includes Christoph's devpagemap work the previous version was based > off as well as a couple of the cleanup patches that were in v1. > > Additionally, we've made the following changes based on feedback: > > * Renamed everything to 'p2pdma' per the suggestion from Bjorn as well > as a bunch of cleanup and spelling fixes he pointed out in the last > series. > > * To address Alex's ACS concerns, we change to a simpler method of > just disabling ACS behind switches for any kernel that has > CONFIG_PCI_P2PDMA. > > * We also reject using devices that employ 'dma_virt_ops' which should > fairly simply handle Jason's concerns that this work might break with > the HFI, QIB and rxe drivers that use the virtual ops to implement > their own special DMA operations. That's good, but what would happen for these devices? simply fail the mapping causing the ulp to fail its rdma operation? I would think that we need a capability flag for devices that support it.