Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1175175imu; Wed, 9 Jan 2019 13:04:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN7ksODhHW5xSz2s/3S1mOCCjFvZG6qsMPmVbYPtaJHshD5ODUi5j1VRihHBU6v3D47lhax2 X-Received: by 2002:a63:b34f:: with SMTP id x15mr6912492pgt.243.1547067880926; Wed, 09 Jan 2019 13:04:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547067880; cv=none; d=google.com; s=arc-20160816; b=QVgxXHVDEuca7kv0pFoEQZtFanretvbMO6zs2TaiKUssbKlmwXakE1MNNQZ9EAWra5 XRDHjLd28+V3OdBrp/uYk2sF31U4Ug2pphCSSbg2N/v8vmCrx3qJ3pIVHBld9yuzCnwn dp3K47slEPhJ/YYGc3XlpO6zHEPAf2M9+7R/3c110Kk5jnWafW8IgeNjRxjhFQSNEupy tnMRq/UiOkUtysE071pcu+P7GMKeDXTTMJpodgWzXTWHHz7Eu2RjtSFn9lg+KH4GrDk8 pS2BwVoSwYdN3GixXoGUD1QGPWAfpHjP/Xn3GGzqtrjiEdP+POYXRiW33PnhDXOae6k/ +0tA== 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; bh=8n7V4l1VJnOq2LduDQ75qhGCT6oSFJjAWSL7SjoksWc=; b=TaChJLvS6jbjI4IefzGO+BFrJYBH5/jMSx/Y8EuK1bsVVxBqqsjDEP2JAfC+NOFEG+ ONGIxALRpfvlHOMh6yl+IGr/L36NkYzsD90lWTHzgJveaPptAC9qdImD9ptvg2NXwlLY zaskE6E4t/lBGmjrnelGsbwxD9D6mJy9Ab6oNl9Bzir92cCTOr1MBM83V6L0g85s+PXV zHhHWLtx2mkFy/0A9ecEUMfrWWAYx+HVLNiIEAXkXcqW9PZ5K9OCyfIMZYHLQGRxH1ws 48JUV2YX96mil6rE0LOgDxyjUKF2I+rGVo5GnuB5ebp3A0T055Gc8VJVb4ZhWEUHi73w gcqw== 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 l33si8415337pld.142.2019.01.09.13.04.25; Wed, 09 Jan 2019 13:04:40 -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 S1728272AbfAITdk (ORCPT + 99 others); Wed, 9 Jan 2019 14:33:40 -0500 Received: from ale.deltatee.com ([207.54.116.67]:59898 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726614AbfAITdk (ORCPT ); Wed, 9 Jan 2019 14:33:40 -0500 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1ghJbd-0005Bg-NP; Wed, 09 Jan 2019 12:33:38 -0700 To: Dave Jiang , linux-kernel@vger.kernel.org, linux-ntb@googlegroups.com, Jon Mason Cc: Allen Hubbe , Serge Semin References: <20190109192233.5752-1-logang@deltatee.com> <57aae0aa-fb12-b686-9835-b5dc60d97878@intel.com> From: Logan Gunthorpe Message-ID: Date: Wed, 9 Jan 2019 12:33:37 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <57aae0aa-fb12-b686-9835-b5dc60d97878@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: fancer.lancer@gmail.com, allenbh@gmail.com, jdmason@kudzu.us, linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org, dave.jiang@intel.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH v3 0/8] Fix breakage caused by the NTB multi-port patchset 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 On 2019-01-09 12:32 p.m., Dave Jiang wrote: >> I'm resending this because I've recently found out that the change we >> made to use the NTB struct device in DMA allocations is wrong and >> needs to be reverted. Turns out that, when running with an IOMMU, >> dma_alloc_coherent() will always fail if you pass it the NTB struct >> device. This is because the device has not been assigned an IOMMU >> group and the Intel IOMMU at least expect the devices to be on the PCI >> bus and be able to find a proper bus-dev-fn number through a struct >> pci device. Therefore, we must revert the change and I've changed >> patch 2 to do this and remove the no longer necessary DMA mask >> adjustments. > > For the revert, I think we should cc stable as well. I agree it should go into stable too. But I thought the fixes tag would make that happen... Logan