🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26840

Re: [PATCH v3 03/24] dma-buf: Add the SGT DMA mapping type

#26840
From: Christoph Hellwig
Date: Fri, 04 Dec 2026 09:14
26 lines
9824 bytes
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.
Technical Details
Message-ID: <20261204091419.GA21065@lst.de>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377209-linux-kernel-netdev=dewy.ru
References: <20f5fb10-b71a-40f9-bbb2-f99b4002bf08@amd.com> <aw6MunWRlt-_MIke@nvdebian.thelocal> <53a32383-4cf6-42ac-bbd5-476e69a3be5f@amd.com> <CAPM=9txYvRT=bdSk5D56W9Wu5+UnfcGz-8Msj+wOns-XNXw1Ww@mail.gmail.com> <20261202013043.GC351887@ziepe.ca> <CAPM=9tzBhoM0cdGVZ-d1T8Dgxtmh6K-zXGLqz9JcswXtQ66EDQ@mail.gmail.com> <aw-FM7FiJvl3R0El@nvdebian.thelocal> <20261202132810.GE351887@ziepe.ca> <bc502015-2ed3-4093-b52f-d16973cd53fa@amd.com> <axKDZhWtBYRzXJ1P@gsse-cloud1.jf.intel.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377209-linux-kernel-netdev=dewy.ru
From: hch@lst.de (Christoph Hellwig)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v3 03/24] dma-buf: Add the SGT DMA mapping type
Date: Fri, 4 Dec 2026 10:14:19 +0100
Organization: Usenet Network
Message-ID: <20261204091419.GA21065@lst.de>
References: <20f5fb10-b71a-40f9-bbb2-f99b4002bf08@amd.com> <aw6MunWRlt-_MIke@nvdebian.thelocal> <53a32383-4cf6-42ac-bbd5-476e69a3be5f@amd.com> <CAPM=9txYvRT=bdSk5D56W9Wu5+UnfcGz-8Msj+wOns-XNXw1Ww@mail.gmail.com> <20261202013043.GC351887@ziepe.ca> <CAPM=9tzBhoM0cdGVZ-d1T8Dgxtmh6K-zXGLqz9JcswXtQ66EDQ@mail.gmail.com> <aw-FM7FiJvl3R0El@nvdebian.thelocal> <20261202132810.GE351887@ziepe.ca> <bc502015-2ed3-4093-b52f-d16973cd53fa@amd.com> <axKDZhWtBYRzXJ1P@gsse-cloud1.jf.intel.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2724628"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:eFPljnr+x/Fr/l0/5FWlG7zqHek= sha256:nnbEzKz3pFWfyRI8iLNfVxc3NA8PDzLVctyfjI+9a1g=
	sha1:AN+odyEfcj/+cf/OYlqiZiVL504= sha256:7KvXUH1EgtnvR6KvUdLdMqoUD0jO480Y48Zm1xzjBT4=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 1591D117B75; Fri,  4 Dec 2026 12:14:46 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.199
X-Spam-Status: No, score=-2.199 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id RnYGrVf1dUF6;
	Fri,  4 Dec 2026 12:14:43 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-377209-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lst.de
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 08170117B4D; Fri,  4 Dec 2026 12:14:37 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id E3A0A29300; Fri,  4 Dec 2026 09:14:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796375674;
	b=Wtp45HNFtBGDWzTw/KU7fKOWrKLEPB2CWNXPe+fCCxL9zG8nAP6wGgHHJ1t3saV6kSws
	 JrlazyqXVPeQXy4SxcZE1z3/xhF/ZetjyncnIHk6+mvyJpsc/hpy1LhEggw5eXZpVtepo
	 bgn97vSrnJGf/gh/5Iya8EIaoGHiu7ciLZ/4wZh6Tg705btilnTtpKCiKWSKpTAIgdc7n
	 S2wT5lyuViXn+r6hVqFBV696O4k9jhsaBVZDKZD0EkI2YCX5bFi4m9MB68hhMWmZAJF7u
	 +fR18WV+OQ61LvugzaXLhMx4WQsoolBRFsMZfS1v8Qr8W6sXPfMEJ4qnpn+SKAbdwiw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796375674;
	h=X-Original-To:Received:DMARC-Filter:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To:User-Agent;
	bh=m5HN83YvKdm/4vns5YYVJrxvzUJXsXwwA8VZTRoiufY=;
	b=Z90mhyfNbMhDlIfJVG1km94yfnrEOvVKPdjmRyYrBe7CVEfSTVs3FWbhOZdp6Ny5fSCE
	 D/KFkI5JuYEgBSEMVUpGG87jevnKs4niJgzl/7HoA3u2zrBqF4VHaPVRtYJHHCM3fRI2i
	 ziGCXfEqBlkderPOGqmwlt8QQWRxdbtL+UITRQgrVcWguRjQ12OoTjDZNXi8lq7xuBlKG
	 B2brXKoF5mNi2Hw9zFCxk9zdHhklAPFuUjkc6wfMZe6emDk+7yvnBydhIHnB0zZ4l2AAT
	 v5R7TUPiK7YpM9JrETnIgzHEz2mwh0Y6Pp+9qTK5/iQJzR19EWJiPhr1dMFaki/tuPQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lst.de;
	spf=pass smtp.mailfrom=lst.de;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 86105606A332;
	Fri,  4 Dec 2026 09:14:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.95.11.211
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796375668;
	b=CIZkhHqkqk6pIE01ZnQy06EXjwdTMeFFWv076qA1DYGrwMl9/dSMv/rxhpPacg42d2ID
	 vLURHoARXI+w4Oernwj2tbyrht4vKBuPJeH6KPmY63PQZOvYZMAsurJGboJuXXDNANGoL
	 +Efo94pdk2++OVHyY9xqJr28fidFH7BFuxnF+DzSYcrwMiu2TVtHAOAx0WEp06qUcPL3O
	 wycjfIi76i4jLS0qm8m+8Sjk6y3xOhdvqWvYMDFryOk5IbfSb5P9d4gp3kn418BVNKJCV
	 w8So4AAyiw+6cOAIxBY4QNqXzy4z31GKbW11gXuaTRXLelwYdgNHHlBZ7ROAhtuYnzg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796375668;
	h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent;
	bh=m5HN83YvKdm/4vns5YYVJrxvzUJXsXwwA8VZTRoiufY=;
	b=3XlkyoGUpeWyOwNxv5mPEyyia5cp6TrtlCHmVWaqwPdnKTYls98+yr3F0kLB6Byr2+oR
	 iL/9HCkN8lfQFnYKLKCPCUCfqkHI72p3KsvGlNfFvhc23dm2/qa3a2PjvNXi0+lfv8ZZl
	 DyChmwv0r2d4w+5/nA/Qr8bvu6FaUPRO1czLOZAxaHQ7TtnUi7yHQs5WF3ERgO4maufhC
	 MvOTvKDKBfCvDjdtIgQ+iWf6ksVEG86rtv4mio0oLsD2w1fudAhB0B+S6LXVh29158k3u
	 W+QrrmjoVXTkgS14TkSsHBQVT3bCmjfpqlfBGGrO98lZ74SMzHO+aEdyGWZtiIrB4Hg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lst.de;
	spf=pass smtp.mailfrom=lst.de;
	arc=none smtp.remote-ip=213.95.11.211
X-Received: from verein.lst.de (verein.lst.de [213.95.11.211])
	(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 76A4E606A32D;
	Fri,  4 Dec 2026 09:14:28 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 76A4E606A32D
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de
X-Received: by verein.lst.de (Postfix, from userid 2407)
	id 1DE2B68C7B; Fri,  4 Dec 2026 10:14:20 +0100 (CET)
X-Cc: Christian König <christian.koenig@amd.com>,
	Jason Gunthorpe <jgg@ziepe.ca>,
	Alistair Popple <apopple@nvidia.com>,
	Dave Airlie <airlied@gmail.com>,
	Sumit Semwal <sumit.semwal@linaro.org>,
	Thomas Hellström <thomas.hellstrom@linux.intel.com>,
	Simona Vetter <simona.vetter@ffwll.ch>,
	Vivek Kasireddy <vivek.kasireddy@intel.com>,
	Dongwon Kim <dongwon.kim@intel.com>,
	Kevin Tian <kevin.tian@intel.com>,
	Xu Yilun <yilun.xu@linux.intel.com>,
	Karl Mehltretter <kmehltretter@gmail.com>,
	Baolu Lu <baolu.lu@linux.intel.com>,
	Felix Kuehling <felix.kuehling@amd.com>,
	Alex Deucher <alexander.deucher@amd.com>,
	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 <kbusch@kernel.org>, Jens Axboe <axboe@kernel.dk>,
	Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>,
	linux-nvme@lists.infradead.org,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	Mina Almasry <almasrymina@google.com>, netdev@vger.kernel.org,
	Alexey Kardashevskiy <aik@amd.com>, zhipingz@meta.com,
	treding@nvidia.com, jhubbard@nvidia.com, chaitanyak@nvidia.com,
	Leon Romanovsky <leon@kernel.org>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <axKDZhWtBYRzXJ1P@gsse-cloud1.jf.intel.com>
X-User-Agent: Mutt/1.5.17 (2007-11-01)