From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F01DC2C0F63; Mon, 3 Nov 2025 08:05:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762157127; cv=none; b=P76Z9moxFAwTsJTIF1/fy1YWuw6n56Yw1tE3c/8ftjoMChhhycaKhPeAWMdQbuOJ3+4TZgUqZooYK9yPZGENZYhRSpn6nvNFSLyewVF/7otaqBDaMmbzfwFd5ZzHYactkQc6df9l+qu4uoFMG5zTALaHSvjqhgXzif+kDChPLSc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762157127; c=relaxed/simple; bh=/Z00hsFx0kFKgS/fH2fkWOXPCRXDBSY3j5PVFskPLtY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=d/y0xbp5LMVt+pDAUSF0YqPeaOUJTU1A8tuh0c5vCsf6lUhpFHYi9p07usY6fhYOt/5jp/PlPbVxXvRQm3NsZMAOc61OtyVr2BRvr/479QW4549K3GpqE/vrrA7piieEIj92lR/lQe8kgnGQ+w5jthJVzLfyCEbxE2qdfZ0gXdI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YNIMhHK+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YNIMhHK+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDBE8C4CEE7; Mon, 3 Nov 2025 08:05:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1762157126; bh=/Z00hsFx0kFKgS/fH2fkWOXPCRXDBSY3j5PVFskPLtY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YNIMhHK+TIAw9S8epUQRLJ0hHWrXGrX021AASru7kQYHYuMFC6zo5jxbc7KUmJ0L3 YNEe1nE+4ae3JtQxcTTez3gXWgSy2u2msyRHFv6Ufnrx2bt2n0+8KYqma3OyMomdHy Und0omT0toRmHQSOMJHh8FIiBDSXmNrLx8mv1uScrl9HdFKsXLarM713jjbRgR+/v4 7/jTF678ISrptDm6AzMN9ALIVAtiWOrlbYsGz2TuzZPwPoiteJ/wA8NnfdkaDlmCac R8sanushWpLqk/uQd051eoYlDOALHHRNHhGhWZBT9cBCKpSLGzr/fRIrMBO19/jAvs SiEU4tXpMsS3Q== Date: Mon, 3 Nov 2025 10:05:18 +0200 From: Leon Romanovsky To: Randy Dunlap Cc: Bjorn Helgaas , Logan Gunthorpe , Jens Axboe , Robin Murphy , Joerg Roedel , Will Deacon , Marek Szyprowski , Jason Gunthorpe , Andrew Morton , Jonathan Corbet , Sumit Semwal , Christian =?iso-8859-1?Q?K=F6nig?= , Alex Williamson , Kees Cook , "Gustavo A. R. Silva" , Ankit Agrawal , Yishai Hadas , Shameer Kolothum , Kevin Tian , Krishnakant Jaju , Matt Ochs , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, iommu@lists.linux.dev, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, kvm@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH v6 05/11] PCI/P2PDMA: Document DMABUF model Message-ID: <20251103080518.GB50752@unreal> References: <20251102-dmabuf-vfio-v6-0-d773cff0db9f@nvidia.com> <20251102-dmabuf-vfio-v6-5-d773cff0db9f@nvidia.com> <86383031-807e-43d9-976e-dd955d79dc52@infradead.org> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86383031-807e-43d9-976e-dd955d79dc52@infradead.org> On Sun, Nov 02, 2025 at 10:16:59AM -0800, Randy Dunlap wrote: > > > On 11/2/25 1:00 AM, Leon Romanovsky wrote: > > From: Jason Gunthorpe > > > > Reflect latest changes in p2p implementation to support DMABUF lifecycle. > > > > Signed-off-by: Leon Romanovsky > > Signed-off-by: Jason Gunthorpe > > --- > > Documentation/driver-api/pci/p2pdma.rst | 95 +++++++++++++++++++++++++-------- > > 1 file changed, 72 insertions(+), 23 deletions(-) <...> > > +guarentee that the consuming driver has stopped using the MMIO during a removal > > guarantee <...> > > +if are used with mmap() must create special PTEs. As such there are very few > > if used <...> > > +pggmap of MEMORY_DEVICE_PCI_P2PDMA to create struct pages. The lifecylce of > > pgmap ? lifecycle <...> > > +architectures, others will experiance corruption or just crash in the kernel. > > experience <...> > > +In this case the initator and target pci_devices are known and the P2P subsystem > > initiator <...> > > +exporting driver has destroyed it's p2p_provider. > its Thanks a lot, fixed. > > -- > ~Randy > >