Received: by 10.192.165.148 with SMTP id m20csp66628imm; Wed, 9 May 2018 08:53:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZprrzNk00kxajAmaXYXdnI26uYZG4A/rmw/1SyGnj0F2hEfFnU3gU4KV3pBwa8J/BEbW00b X-Received: by 10.98.11.3 with SMTP id t3mr44601758pfi.32.1525881239672; Wed, 09 May 2018 08:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525881239; cv=none; d=google.com; s=arc-20160816; b=YHoDmL3ihcOLmAxav5gJYChPEs5R3QllsFEJDv4+p1eUv4hK05qGZFAEm1w6fjBypB lHDCSz5QzZzOwL80hFHLLJbmjMcOS/gHFhLFmvVbx5I44b8Jn+aZeNbiLiLm/cg6sqBo q22SflNOwDjbRjHLpAslQpBRi5VItkxn8gxhS0qLL45JKW6fZcNSfW8g2o3lZOR+qVMb LDqXJoMdG6jCUQlmOULqhRkxBMo/qdLJd1VEFRtszSy1k68eyrd/seVywOlFaeZ8v2gc pxnislogoCYokzc2AGhuXMH+5msqOUdaYdCHXg22JQIyLa1KhQor1x0fwM/8PLfh0gKt NKwQ== 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=LFZAm6Hkzuh+5YNVrwf2sPnvhi0oS8UDA+Z/6CPU+vY=; b=spZFZXGZ8Enha5f/Q0Y4auMxvnr93EiMI3je0nQlX5kLJoffmNgAUjcuMLhuw2GWgc qt+RfjIPGhWEQYXiqdft/pSae+d5+TWbnIoLarN2cai1HKHllqzEMwDlSHn6+hZQgSyJ 6U7dHjR77yz+WfYa7/zVMJpI+yUaYqR143/Iu57wV1KGwuMm/qb/2TGOzGUtaoJ6l0u+ 4q1mmG92KXwOcb/wTsL0fkbeFfhbFOu4rKO0uFS5g6LjU5foTVStemSs5sVwUGiCsy+P SeGdP5tB70Ta09x4FW2BNs3rJf3DeOzl+D8SZ/7VcDm25qz90h49ZWpzwfg+t1087C1d /QZg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l18si27103713pfe.299.2018.05.09.08.53.42; Wed, 09 May 2018 08:53:59 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965139AbeEIPxZ (ORCPT + 99 others); Wed, 9 May 2018 11:53:25 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43342 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935399AbeEIPxX (ORCPT ); Wed, 9 May 2018 11:53:23 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CC6C240200A0; Wed, 9 May 2018 15:53:22 +0000 (UTC) Received: from [10.18.17.89] (dhcp-17-89.bos.redhat.com [10.18.17.89]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6E634D74B3; Wed, 9 May 2018 15:53:19 +0000 (UTC) Subject: Re: [PATCH v4 04/14] PCI/P2PDMA: Clear ACS P2P flags for all devices behind switches To: Stephen Bates , Dan Williams , Logan Gunthorpe Cc: Linux Kernel Mailing List , "linux-pci@vger.kernel.org" , "linux-nvme@lists.infradead.org" , linux-rdma , linux-nvdimm , "linux-block@vger.kernel.org" , Christoph Hellwig , Jens Axboe , Keith Busch , Sagi Grimberg , Bjorn Helgaas , Jason Gunthorpe , Max Gurtovoy , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Benjamin Herrenschmidt , Alex Williamson , =?UTF-8?Q?Christian_K=c3=b6nig?= References: <20180423233046.21476-1-logang@deltatee.com> <20180423233046.21476-5-logang@deltatee.com> <64C231F5-DE36-415F-B308-3A423B0BBACB@raithlin.com> <15433946-f7f5-f610-4e80-380fb59920e5@redhat.com> <3C9FB262-A93C-4C8F-B1E0-85C6D6F78BC2@raithlin.com> From: Don Dutile Message-ID: <9c85f5a1-a6dc-4a59-4162-03749088a87d@redhat.com> Date: Wed, 9 May 2018 11:53:19 -0400 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: <3C9FB262-A93C-4C8F-B1E0-85C6D6F78BC2@raithlin.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Wed, 09 May 2018 15:53:22 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Wed, 09 May 2018 15:53:22 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'ddutile@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/08/2018 05:27 PM, Stephen Bates wrote: > Hi Don > >> Well, p2p DMA is a function of a cooperating 'agent' somewhere above the two devices. >> That agent should 'request' to the kernel that ACS be removed/circumvented (p2p enabled) btwn two endpoints. >> I recommend doing so via a sysfs method. > > Yes we looked at something like this in the past but it does hit the IOMMU grouping issue I discussed earlier today which is not acceptable right now. In the long term, once we get IOMMU grouping callbacks to VMs we can look at extending p2pdma in this way. But I don't think this is viable for the initial series. > > >> So I don't understand the comments why VMs should need to know. > > As I understand it VMs need to know because VFIO passes IOMMU grouping up into the VMs. So if a IOMMU grouping changes the VM's view of its PCIe topology changes. I think we even have to be cognizant of the fact the OS running on the VM may not even support hot-plug of PCI devices. > >> Is there a thread I need to read up to explain /clear-up the thoughts above? > > If you search for p2pdma you should find the previous discussions. Thanks for the input! > under linux-pci I'm assuming... you cc'd a number of upstream lists; I picked this thread up via rdma-list. > Stephen > > >