From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0511FC072B5 for ; Fri, 24 May 2019 16:18:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CEB3A2070D for ; Fri, 24 May 2019 16:18:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390163AbfEXQSr (ORCPT ); Fri, 24 May 2019 12:18:47 -0400 Received: from ale.deltatee.com ([207.54.116.67]:56422 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389588AbfEXQSr (ORCPT ); Fri, 24 May 2019 12:18:47 -0400 Received: from s01061831bf6ec98c.cg.shawcable.net ([68.147.80.180] helo=[192.168.6.141]) by ale.deltatee.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hUCu5-0007Vc-Jm; Fri, 24 May 2019 10:18:46 -0600 To: Christoph Hellwig , "Koenig, Christian" Cc: "linux-pci@vger.kernel.org" , Bjorn Helgaas References: <97aa52fc-f062-acf1-0e0c-5a4d1d505777@deltatee.com> <20190523094322.GA14986@lst.de> <20190523095057.GA15185@lst.de> <252313a9-9af4-14bd-1bfa-1c2327baf2b2@deltatee.com> <20190523155922.GA21552@lst.de> <20190524141215.GB23514@lst.de> From: Logan Gunthorpe Message-ID: <8aedfd92-a5a4-485a-42c3-8e26ac87c3ba@deltatee.com> Date: Fri, 24 May 2019 10:18:44 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190524141215.GB23514@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 68.147.80.180 X-SA-Exim-Rcpt-To: bhelgaas@google.com, linux-pci@vger.kernel.org, Christian.Koenig@amd.com, hch@lst.de X-SA-Exim-Mail-From: logang@deltatee.com Subject: Re: [PATCH] PCI/P2PDMA: Root complex whitelist should not apply when an IOMMU is present 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-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On 2019-05-24 8:12 a.m., Christoph Hellwig wrote: > I think we've got two escalation levels here: > > (1) fix the NVMe/RDMA p2p breakage for 5.2-rc - for that we just need > the above fix in the p2p map_sg routine (and add an unmap_sg > routine there) Yes, fixing the p2p_map_sg routine or add the check if the iommu is present (as I did in the patch that started this discussion) until we can get the map stuff sorted out. Logan