Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 642C8C4332F for ; Tue, 11 Jan 2022 23:02:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346729AbiAKXCw (ORCPT ); Tue, 11 Jan 2022 18:02:52 -0500 Received: from ale.deltatee.com ([204.191.154.188]:50520 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346722AbiAKXCu (ORCPT ); Tue, 11 Jan 2022 18:02:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:content-disposition; bh=JGlaIoL3JiUKm69gr69makSNy4JbMH4jchaLUqVIQxs=; b=NM2fx5bsTE7zC6hwXw0Pgx4Buo YnfVscCdiluO/KndLwpHCA5V85udbr7MzWgEb1jg38WkJSJ8fL3OyoqyyqL4jqzpO8Pla/mmcgX9W VJ7W4VkXNJiQARYHA3wa32V1flSLWj92lPbrgdvrnpN3B7d/ng3u6q7Izch764pw8iqYH7LVLwavR 9DYYHGpHiwJy0jdCORXgA+Mo7xeugu7AqTrSBASKABIReHfGXjUj6rWyn+3zZe7NXnGeToD2PVPbh 9LKn87e0XzYUAwW/Ryxeab2v22Vg57Ssl+z8R3d88jdSx39zEXB+uAT7iAZZTtXcR3vfLHVYnyNhp 88IglYGA==; Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1n7QA9-009o9j-CV; Tue, 11 Jan 2022 16:02:46 -0700 To: Jason Gunthorpe Cc: Matthew Wilcox , linux-kernel@vger.kernel.org, Christoph Hellwig , Joao Martins , John Hubbard , Ming Lei , linux-block@vger.kernel.org, netdev@vger.kernel.org, linux-mm@kvack.org, linux-rdma@vger.kernel.org, dri-devel@lists.freedesktop.org, nvdimm@lists.linux.dev References: <20220111004126.GJ2328285@nvidia.com> <20220111150142.GL2328285@nvidia.com> <20220111202159.GO2328285@nvidia.com> <20220111225713.GS2328285@nvidia.com> From: Logan Gunthorpe Message-ID: Date: Tue, 11 Jan 2022 16:02:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20220111225713.GS2328285@nvidia.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: nvdimm@lists.linux.dev, dri-devel@lists.freedesktop.org, linux-rdma@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-block@vger.kernel.org, ming.lei@redhat.com, jhubbard@nvidia.com, joao.m.martins@oracle.com, hch@lst.de, linux-kernel@vger.kernel.org, willy@infradead.org, jgg@nvidia.com X-SA-Exim-Mail-From: logang@deltatee.com Subject: Re: Phyr Starter X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-01-11 3:57 p.m., Jason Gunthorpe wrote: > On Tue, Jan 11, 2022 at 03:09:13PM -0700, Logan Gunthorpe wrote: > >> Either that, or we need a wrapper that allocates an appropriately >> sized SGL to pass to any dma_map implementation that doesn't support >> the new structures. > > This is what I think we should do. If we start with RDMA then we can > motivate the 4 main server IOMMU drivers to get updated ASAP, then it > can acceptably start to spread to other users. I suspect the preferred path forward is for the IOMMU drivers that don't use dma-iommu should be converted to use it. Then anything we do to dma-iommu will be applicable to the IOMMU drivers. Better than expecting them to implement a bunch of new functionality themselves. Logan