From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1473B606A332 for ; Fri, 4 Dec 2026 09:14:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D4274112D8D; Fri, 4 Dec 2026 09:14:29 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3EFB0112D8D; Fri, 4 Dec 2026 09:14:27 +0000 (UTC) Received: by verein.lst.de (Postfix, from userid 2407) id 1DE2B68C7B; Fri, 4 Dec 2026 10:14:20 +0100 (CET) Date: Fri, 4 Dec 2026 10:14:19 +0100 From: Christoph Hellwig To: Matthew Brost Cc: Christian =?iso-8859-1?Q?K=F6nig?= , Jason Gunthorpe , Alistair Popple , Dave Airlie , Sumit Semwal , Thomas =?iso-8859-1?Q?Hellstr=F6m?= , Simona Vetter , Vivek Kasireddy , Dongwon Kim , Kevin Tian , Xu Yilun , Karl Mehltretter , Baolu Lu , Felix Kuehling , Alex Deucher , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, intel-xe@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, linux-rdma@vger.kernel.org, iommu@lists.linux.dev, Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Mina Almasry , netdev@vger.kernel.org, Alexey Kardashevskiy , zhipingz@meta.com, treding@nvidia.com, jhubbard@nvidia.com, chaitanyak@nvidia.com, Leon Romanovsky Subject: Re: [PATCH v3 03/24] dma-buf: Add the SGT DMA mapping type Message-ID: <20261204091419.GA21065@lst.de> References: <20f5fb10-b71a-40f9-bbb2-f99b4002bf08@amd.com> <53a32383-4cf6-42ac-bbd5-476e69a3be5f@amd.com> <20261202013043.GC351887@ziepe.ca> <20261202132810.GE351887@ziepe.ca> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Intel-xe" X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Fri, Dec 04, 2026 at 01:09:58AM -0800, Matthew Brost wrote: > Yes, but that isn't how it works when exporting hands off a physical > address. For example, this is how scale-up fabrics operate unless you > want translation on fabric ingress, a TLB miss, and network > backpressure, none of which is desirable. > > In the case of a physical address, the exporter literally cannot revoke > it unless the importer behaves according to our cross-driver contract. > > Given that, I'm really unsure what this entire thread has devolved > into - I don't have solution but I will say: > > The repeated "I'll nack this" responses, are beyond disappointing and, > in my opinion, not how a reasonable maintainer should behave. FYI, the way we solved that for pNFS scsi/block layouts is that the exporter-equivalent gets a big hammer to fence the importer-equivalent. In the PCIe P2P case this would be using PCIe FLRs or similar reset mechanisms to cut the importer off. I've kinda been out of these, by the whole idea of trying to export anything but physical addresses seems pretty bonkers to me. That is literally the only universally understood description of memory ranges. Everything else depends on the access method and can vary wildly.